@@ -350,21 +350,21 @@ var (
350
350
Name : "miner-gaslimit" ,
351
351
Aliases : []string {"targetgaslimit" },
352
352
Usage : "Target gas limit sets the artificial target gas floor for the blocks to mine" ,
353
- Value : params . XDCGenesisGasLimit ,
353
+ Value : 50000000 ,
354
354
Category : flags .MinerCategory ,
355
355
}
356
356
MinerGasPriceFlag = & flags.BigFlag {
357
357
Name : "miner-gasprice" ,
358
358
Aliases : []string {"gasprice" },
359
359
Usage : "Minimal gas price to accept for mining a transactions" ,
360
- Value : ethconfig . Defaults . GasPrice ,
360
+ Value : big . NewInt ( 1 ) ,
361
361
Category : flags .MinerCategory ,
362
362
}
363
363
MinerEtherbaseFlag = & cli.StringFlag {
364
364
Name : "miner-etherbase" ,
365
365
Aliases : []string {"etherbase" },
366
366
Usage : "Public address for block mining rewards (default = first account created)" ,
367
- Value : "0 " ,
367
+ Value : "0x000000000000000000000000000000000000abcd " ,
368
368
Category : flags .MinerCategory ,
369
369
}
370
370
MinerExtraDataFlag = & cli.StringFlag {
@@ -442,13 +442,14 @@ var (
442
442
Name : "http" ,
443
443
Aliases : []string {"rpc" },
444
444
Usage : "Enable the HTTP-RPC server" ,
445
+ Value : true ,
445
446
Category : flags .APICategory ,
446
447
}
447
448
HTTPListenAddrFlag = & cli.StringFlag {
448
449
Name : "http-addr" ,
449
450
Aliases : []string {"rpcaddr" },
450
451
Usage : "HTTP-RPC server listening interface" ,
451
- Value : node . DefaultHTTPHost ,
452
+ Value : "0.0.0.0" ,
452
453
Category : flags .APICategory ,
453
454
}
454
455
HTTPPortFlag = & cli.IntFlag {
@@ -462,21 +463,21 @@ var (
462
463
Name : "http-corsdomain" ,
463
464
Aliases : []string {"rpccorsdomain" },
464
465
Usage : "Comma separated list of domains from which to accept cross origin requests (browser enforced)" ,
465
- Value : "" ,
466
+ Value : "* " ,
466
467
Category : flags .APICategory ,
467
468
}
468
469
HTTPVirtualHostsFlag = & cli.StringFlag {
469
470
Name : "http-vhosts" ,
470
471
Aliases : []string {"rpcvhosts" },
471
472
Usage : "Comma separated list of virtual hostnames from which to accept requests (server enforced). Accepts '*' wildcard." ,
472
- Value : strings . Join ( node . DefaultConfig . HTTPVirtualHosts , "," ) ,
473
+ Value : "*" ,
473
474
Category : flags .APICategory ,
474
475
}
475
476
HTTPApiFlag = & cli.StringFlag {
476
477
Name : "http-api" ,
477
478
Aliases : []string {"rpcapi" },
478
479
Usage : "API's offered over the HTTP-RPC interface" ,
479
- Value : "" ,
480
+ Value : "eth,debug,net,txpool,personal,web3,XDPoS " ,
480
481
Category : flags .APICategory ,
481
482
}
482
483
HTTPReadTimeoutFlag = & cli.DurationFlag {
@@ -503,13 +504,14 @@ var (
503
504
WSEnabledFlag = & cli.BoolFlag {
504
505
Name : "ws" ,
505
506
Usage : "Enable the WS-RPC server" ,
507
+ Value : true ,
506
508
Category : flags .APICategory ,
507
509
}
508
510
WSListenAddrFlag = & cli.StringFlag {
509
511
Name : "ws-addr" ,
510
512
Aliases : []string {"wsaddr" },
511
513
Usage : "WS-RPC server listening interface" ,
512
- Value : node . DefaultWSHost ,
514
+ Value : "0.0.0.0" ,
513
515
Category : flags .APICategory ,
514
516
}
515
517
WSPortFlag = & cli.IntFlag {
@@ -523,14 +525,14 @@ var (
523
525
Name : "ws-api" ,
524
526
Aliases : []string {"wsapi" },
525
527
Usage : "API's offered over the WS-RPC interface" ,
526
- Value : "" ,
528
+ Value : "eth,debug,net,txpool,personal,web3,XDPoS " ,
527
529
Category : flags .APICategory ,
528
530
}
529
531
WSAllowedOriginsFlag = & cli.StringFlag {
530
532
Name : "ws-origins" ,
531
533
Aliases : []string {"wsorigins" },
532
534
Usage : "Origins from which to accept websockets requests" ,
533
- Value : "" ,
535
+ Value : "* " ,
534
536
Category : flags .APICategory ,
535
537
}
536
538
ExecFlag = & cli.StringFlag {
@@ -1004,9 +1006,7 @@ func setHTTP(ctx *cli.Context, cfg *node.Config) {
1004
1006
if ctx .IsSet (HTTPCORSDomainFlag .Name ) {
1005
1007
cfg .HTTPCors = splitAndTrim (ctx .String (HTTPCORSDomainFlag .Name ))
1006
1008
}
1007
- if ctx .IsSet (HTTPApiFlag .Name ) {
1008
- cfg .HTTPModules = splitAndTrim (ctx .String (HTTPApiFlag .Name ))
1009
- }
1009
+ cfg .HTTPModules = splitAndTrim (ctx .String (HTTPApiFlag .Name ))
1010
1010
if ctx .IsSet (HTTPVirtualHostsFlag .Name ) {
1011
1011
cfg .HTTPVirtualHosts = splitAndTrim (ctx .String (HTTPVirtualHostsFlag .Name ))
1012
1012
}
@@ -1028,9 +1028,7 @@ func setWS(ctx *cli.Context, cfg *node.Config) {
1028
1028
if ctx .IsSet (WSAllowedOriginsFlag .Name ) {
1029
1029
cfg .WSOrigins = splitAndTrim (ctx .String (WSAllowedOriginsFlag .Name ))
1030
1030
}
1031
- if ctx .IsSet (WSApiFlag .Name ) {
1032
- cfg .WSModules = splitAndTrim (ctx .String (WSApiFlag .Name ))
1033
- }
1031
+ cfg .WSModules = splitAndTrim (ctx .String (WSApiFlag .Name ))
1034
1032
}
1035
1033
1036
1034
// setIPC creates an IPC path configuration from the set command line flags,
@@ -1110,6 +1108,8 @@ func setEtherbase(ctx *cli.Context, ks *keystore.KeyStore, cfg *ethconfig.Config
1110
1108
Fatalf ("Option %q: %v" , MinerEtherbaseFlag .Name , err )
1111
1109
}
1112
1110
cfg .Etherbase = account .Address
1111
+ } else {
1112
+ cfg .Etherbase = common .HexToAddress ("0x000000000000000000000000000000000000abcd" )
1113
1113
}
1114
1114
}
1115
1115
0 commit comments