@@ -392,11 +392,6 @@ var (
392
392
Usage : "JavaScript root path for `loadScript`" ,
393
393
Value : "." ,
394
394
}
395
- SolcPathFlag = cli.StringFlag {
396
- Name : "solc" ,
397
- Usage : "Solidity compiler command to be used" ,
398
- Value : "solc" ,
399
- }
400
395
401
396
// Gas price oracle settings
402
397
GpoBlocksFlag = cli.IntFlag {
@@ -528,9 +523,9 @@ func setNAT(ctx *cli.Context, cfg *p2p.Config) {
528
523
}
529
524
}
530
525
531
- // makeRPCModules splits input separated by a comma and trims excessive white
532
- // space from the substrings.
533
- func makeRPCModules (input string ) []string {
526
+ // splitAndTrim splits input separated by a comma
527
+ // and trims excessive white space from the substrings.
528
+ func splitAndTrim (input string ) []string {
534
529
result := strings .Split (input , "," )
535
530
for i , r := range result {
536
531
result [i ] = strings .TrimSpace (r )
@@ -552,10 +547,10 @@ func setHTTP(ctx *cli.Context, cfg *node.Config) {
552
547
cfg .HTTPPort = ctx .GlobalInt (RPCPortFlag .Name )
553
548
}
554
549
if ctx .GlobalIsSet (RPCCORSDomainFlag .Name ) {
555
- cfg .HTTPCors = ctx .GlobalString (RPCCORSDomainFlag .Name )
550
+ cfg .HTTPCors = splitAndTrim ( ctx .GlobalString (RPCCORSDomainFlag .Name ) )
556
551
}
557
552
if ctx .GlobalIsSet (RPCApiFlag .Name ) {
558
- cfg .HTTPModules = makeRPCModules (ctx .GlobalString (RPCApiFlag .Name ))
553
+ cfg .HTTPModules = splitAndTrim (ctx .GlobalString (RPCApiFlag .Name ))
559
554
}
560
555
}
561
556
@@ -573,10 +568,10 @@ func setWS(ctx *cli.Context, cfg *node.Config) {
573
568
cfg .WSPort = ctx .GlobalInt (WSPortFlag .Name )
574
569
}
575
570
if ctx .GlobalIsSet (WSAllowedOriginsFlag .Name ) {
576
- cfg .WSOrigins = ctx .GlobalString (WSAllowedOriginsFlag .Name )
571
+ cfg .WSOrigins = splitAndTrim ( ctx .GlobalString (WSAllowedOriginsFlag .Name ) )
577
572
}
578
573
if ctx .GlobalIsSet (WSApiFlag .Name ) {
579
- cfg .WSModules = makeRPCModules (ctx .GlobalString (WSApiFlag .Name ))
574
+ cfg .WSModules = splitAndTrim (ctx .GlobalString (WSApiFlag .Name ))
580
575
}
581
576
}
582
577
@@ -828,10 +823,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
828
823
if ctx .GlobalIsSet (GasPriceFlag .Name ) {
829
824
cfg .GasPrice = GlobalBig (ctx , GasPriceFlag .Name )
830
825
}
831
-
832
- if ctx .GlobalIsSet (SolcPathFlag .Name ) {
833
- cfg .SolcPath = ctx .GlobalString (SolcPathFlag .Name )
834
- }
835
826
if ctx .GlobalIsSet (VMEnableDebugFlag .Name ) {
836
827
// TODO(fjl): force-enable this in --dev mode
837
828
cfg .EnablePreimageRecording = ctx .GlobalBool (VMEnableDebugFlag .Name )
0 commit comments