aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum')
-rw-r--r--ethereum/config.go2
-rw-r--r--ethereum/ethereum.go8
2 files changed, 7 insertions, 3 deletions
diff --git a/ethereum/config.go b/ethereum/config.go
index db1391881..234e79f12 100644
--- a/ethereum/config.go
+++ b/ethereum/config.go
@@ -28,7 +28,7 @@ func Init() {
flag.BoolVar(&StartRpc, "r", false, "start rpc server")
flag.BoolVar(&NonInteractive, "y", false, "non-interactive mode (say yes to confirmations)")
flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support")
- flag.BoolVar(&UseSeed, "seed", false, "seed peers")
+ flag.BoolVar(&UseSeed, "seed", true, "seed peers")
flag.BoolVar(&GenAddr, "genaddr", false, "create a new priv/pub key")
flag.BoolVar(&ExportKey, "export", false, "export private key")
flag.StringVar(&OutboundPort, "p", "30303", "listening port")
diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go
index 2f05bf2a1..8ef061be0 100644
--- a/ethereum/ethereum.go
+++ b/ethereum/ethereum.go
@@ -133,8 +133,12 @@ func main() {
go console.Start()
}
if StartRpc {
- ethereum.RpcServer = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum.StateManager(), ethereum.BlockChain(), ethereum.TxPool()))
- go ethereum.RpcServer.Start()
+ ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum.StateManager(), ethereum.BlockChain(), ethereum.TxPool()))
+ if err != nil {
+ logger.Infoln("Could not start RPC interface:", err)
+ } else {
+ go ethereum.RpcServer.Start()
+ }
}
RegisterInterrupts(ethereum)