6161 utils .UnlockedAccountFlag ,
6262 utils .PasswordFileFlag ,
6363 utils .BootnodesFlag ,
64- utils .LegacyBootnodesV4Flag ,
65- utils .LegacyBootnodesV5Flag ,
6664 utils .DataDirFlag ,
6765 utils .AncientFlag ,
6866 utils .MinFreeDiskSpaceFlag ,
9694 utils .SnapshotFlag ,
9795 utils .TxLookupLimitFlag ,
9896 utils .LightServeFlag ,
99- utils .LegacyLightServFlag ,
10097 utils .LightIngressFlag ,
10198 utils .LightEgressFlag ,
10299 utils .LightMaxPeersFlag ,
103- utils .LegacyLightPeersFlag ,
104100 utils .LightNoPruneFlag ,
105101 utils .LightKDFFlag ,
106102 utils .UltraLightServersFlag ,
@@ -122,17 +118,12 @@ var (
122118 utils .MaxPendingPeersFlag ,
123119 utils .MiningEnabledFlag ,
124120 utils .MinerThreadsFlag ,
125- utils .LegacyMinerThreadsFlag ,
126121 utils .MinerNotifyFlag ,
127122 utils .MinerGasTargetFlag ,
128- utils .LegacyMinerGasTargetFlag ,
129123 utils .MinerGasLimitFlag ,
130124 utils .MinerGasPriceFlag ,
131- utils .LegacyMinerGasPriceFlag ,
132125 utils .MinerEtherbaseFlag ,
133- utils .LegacyMinerEtherbaseFlag ,
134126 utils .MinerExtraDataFlag ,
135- utils .LegacyMinerExtraDataFlag ,
136127 utils .MinerRecommitIntervalFlag ,
137128 utils .MinerNoVerfiyFlag ,
138129 utils .NATFlag ,
@@ -145,7 +136,6 @@ var (
145136 utils .MainnetFlag ,
146137 utils .DeveloperFlag ,
147138 utils .DeveloperPeriodFlag ,
148- utils .LegacyTestnetFlag ,
149139 utils .RopstenFlag ,
150140 utils .RinkebyFlag ,
151141 utils .GoerliFlag ,
@@ -158,9 +148,7 @@ var (
158148 utils .FakePoWFlag ,
159149 utils .NoCompactionFlag ,
160150 utils .GpoBlocksFlag ,
161- utils .LegacyGpoBlocksFlag ,
162151 utils .GpoPercentileFlag ,
163- utils .LegacyGpoPercentileFlag ,
164152 utils .GpoMaxGasPriceFlag ,
165153 utils .EWASMInterpreterFlag ,
166154 utils .EVMInterpreterFlag ,
@@ -178,22 +166,18 @@ var (
178166 utils .LegacyRPCPortFlag ,
179167 utils .LegacyRPCCORSDomainFlag ,
180168 utils .LegacyRPCVirtualHostsFlag ,
169+ utils .LegacyRPCApiFlag ,
181170 utils .GraphQLEnabledFlag ,
182171 utils .GraphQLCORSDomainFlag ,
183172 utils .GraphQLVirtualHostsFlag ,
184173 utils .HTTPApiFlag ,
185174 utils .HTTPPathPrefixFlag ,
186- utils .LegacyRPCApiFlag ,
187175 utils .WSEnabledFlag ,
188176 utils .WSListenAddrFlag ,
189- utils .LegacyWSListenAddrFlag ,
190177 utils .WSPortFlag ,
191- utils .LegacyWSPortFlag ,
192178 utils .WSApiFlag ,
193- utils .LegacyWSApiFlag ,
194179 utils .WSAllowedOriginsFlag ,
195180 utils .WSPathPrefixFlag ,
196- utils .LegacyWSAllowedOriginsFlag ,
197181 utils .IPCDisabledFlag ,
198182 utils .IPCPathFlag ,
199183 utils .InsecureUnlockAllowedFlag ,
@@ -267,7 +251,6 @@ func init() {
267251 app .Flags = append (app .Flags , rpcFlags ... )
268252 app .Flags = append (app .Flags , consoleFlags ... )
269253 app .Flags = append (app .Flags , debug .Flags ... )
270- app .Flags = append (app .Flags , debug .DeprecatedFlags ... )
271254 app .Flags = append (app .Flags , whisperFlags ... )
272255 app .Flags = append (app .Flags , metricsFlags ... )
273256
@@ -293,11 +276,6 @@ func main() {
293276func prepare (ctx * cli.Context ) {
294277 // If we're running a known preset, log it for convenience.
295278 switch {
296- case ctx .GlobalIsSet (utils .LegacyTestnetFlag .Name ):
297- log .Info ("Starting Geth on Ropsten testnet..." )
298- log .Warn ("The --testnet flag is ambiguous! Please specify one of --goerli, --rinkeby, or --ropsten." )
299- log .Warn ("The generic --testnet flag is deprecated and will be removed in the future!" )
300-
301279 case ctx .GlobalIsSet (utils .RopstenFlag .Name ):
302280 log .Info ("Starting Geth on Ropsten testnet..." )
303281
@@ -316,7 +294,7 @@ func prepare(ctx *cli.Context) {
316294 // If we're a full node on mainnet without --cache specified, bump default cache allowance
317295 if ctx .GlobalString (utils .SyncModeFlag .Name ) != "light" && ! ctx .GlobalIsSet (utils .CacheFlag .Name ) && ! ctx .GlobalIsSet (utils .NetworkIdFlag .Name ) {
318296 // Make sure we're not on any supported preconfigured testnet either
319- if ! ctx .GlobalIsSet (utils .LegacyTestnetFlag . Name ) && ! ctx . GlobalIsSet ( utils . RopstenFlag .Name ) && ! ctx .GlobalIsSet (utils .RinkebyFlag .Name ) && ! ctx .GlobalIsSet (utils .GoerliFlag .Name ) && ! ctx .GlobalIsSet (utils .DeveloperFlag .Name ) {
297+ if ! ctx .GlobalIsSet (utils .RopstenFlag .Name ) && ! ctx .GlobalIsSet (utils .RinkebyFlag .Name ) && ! ctx .GlobalIsSet (utils .GoerliFlag .Name ) && ! ctx .GlobalIsSet (utils .DeveloperFlag .Name ) {
320298 // Nope, we're really on mainnet. Bump that cache up!
321299 log .Info ("Bumping default cache on mainnet" , "provided" , ctx .GlobalInt (utils .CacheFlag .Name ), "updated" , 4096 )
322300 ctx .GlobalSet (utils .CacheFlag .Name , strconv .Itoa (4096 ))
@@ -461,19 +439,11 @@ func startNode(ctx *cli.Context, stack *node.Node, backend ethapi.Backend) {
461439 if ! ok {
462440 utils .Fatalf ("Ethereum service not running: %v" , err )
463441 }
464-
465442 // Set the gas price to the limits from the CLI and start mining
466443 gasprice := utils .GlobalBig (ctx , utils .MinerGasPriceFlag .Name )
467- if ctx .GlobalIsSet (utils .LegacyMinerGasPriceFlag .Name ) && ! ctx .GlobalIsSet (utils .MinerGasPriceFlag .Name ) {
468- gasprice = utils .GlobalBig (ctx , utils .LegacyMinerGasPriceFlag .Name )
469- }
470444 ethBackend .TxPool ().SetGasPrice (gasprice )
471445 // start mining
472446 threads := ctx .GlobalInt (utils .MinerThreadsFlag .Name )
473- if ctx .GlobalIsSet (utils .LegacyMinerThreadsFlag .Name ) && ! ctx .GlobalIsSet (utils .MinerThreadsFlag .Name ) {
474- threads = ctx .GlobalInt (utils .LegacyMinerThreadsFlag .Name )
475- log .Warn ("The flag --minerthreads is deprecated and will be removed in the future, please use --miner.threads" )
476- }
477447 if err := ethBackend .StartMining (threads ); err != nil {
478448 utils .Fatalf ("Failed to start mining: %v" , err )
479449 }
0 commit comments