@@ -392,11 +392,6 @@ var (
392392 Usage : "JavaScript root path for `loadScript`" ,
393393 Value : "." ,
394394 }
395- SolcPathFlag = cli.StringFlag {
396- Name : "solc" ,
397- Usage : "Solidity compiler command to be used" ,
398- Value : "solc" ,
399- }
400395
401396 // Gas price oracle settings
402397 GpoBlocksFlag = cli.IntFlag {
@@ -528,9 +523,9 @@ func setNAT(ctx *cli.Context, cfg *p2p.Config) {
528523 }
529524}
530525
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 {
534529 result := strings .Split (input , "," )
535530 for i , r := range result {
536531 result [i ] = strings .TrimSpace (r )
@@ -552,10 +547,10 @@ func setHTTP(ctx *cli.Context, cfg *node.Config) {
552547 cfg .HTTPPort = ctx .GlobalInt (RPCPortFlag .Name )
553548 }
554549 if ctx .GlobalIsSet (RPCCORSDomainFlag .Name ) {
555- cfg .HTTPCors = ctx .GlobalString (RPCCORSDomainFlag .Name )
550+ cfg .HTTPCors = splitAndTrim ( ctx .GlobalString (RPCCORSDomainFlag .Name ) )
556551 }
557552 if ctx .GlobalIsSet (RPCApiFlag .Name ) {
558- cfg .HTTPModules = makeRPCModules (ctx .GlobalString (RPCApiFlag .Name ))
553+ cfg .HTTPModules = splitAndTrim (ctx .GlobalString (RPCApiFlag .Name ))
559554 }
560555}
561556
@@ -573,10 +568,10 @@ func setWS(ctx *cli.Context, cfg *node.Config) {
573568 cfg .WSPort = ctx .GlobalInt (WSPortFlag .Name )
574569 }
575570 if ctx .GlobalIsSet (WSAllowedOriginsFlag .Name ) {
576- cfg .WSOrigins = ctx .GlobalString (WSAllowedOriginsFlag .Name )
571+ cfg .WSOrigins = splitAndTrim ( ctx .GlobalString (WSAllowedOriginsFlag .Name ) )
577572 }
578573 if ctx .GlobalIsSet (WSApiFlag .Name ) {
579- cfg .WSModules = makeRPCModules (ctx .GlobalString (WSApiFlag .Name ))
574+ cfg .WSModules = splitAndTrim (ctx .GlobalString (WSApiFlag .Name ))
580575 }
581576}
582577
@@ -828,10 +823,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
828823 if ctx .GlobalIsSet (GasPriceFlag .Name ) {
829824 cfg .GasPrice = GlobalBig (ctx , GasPriceFlag .Name )
830825 }
831-
832- if ctx .GlobalIsSet (SolcPathFlag .Name ) {
833- cfg .SolcPath = ctx .GlobalString (SolcPathFlag .Name )
834- }
835826 if ctx .GlobalIsSet (VMEnableDebugFlag .Name ) {
836827 // TODO(fjl): force-enable this in --dev mode
837828 cfg .EnablePreimageRecording = ctx .GlobalBool (VMEnableDebugFlag .Name )
0 commit comments