From a5963d1377ab1a4a82d5b2881e820121ac3da564 Mon Sep 17 00:00:00 2001 From: Maran Date: Tue, 13 May 2014 11:34:47 +0200 Subject: Enable seed again --- ethereal/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethereal') diff --git a/ethereal/config.go b/ethereal/config.go index af85975f2..94f896c5f 100644 --- a/ethereal/config.go +++ b/ethereal/config.go @@ -25,7 +25,7 @@ func Init() { flag.BoolVar(&StartRpc, "r", false, "start rpc server") flag.BoolVar(&ShowGenesis, "g", false, "prints genesis header and exits") 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") -- cgit From b9876df5dc719f583172017cc71af146c6f732a9 Mon Sep 17 00:00:00 2001 From: Maran Date: Tue, 13 May 2014 11:48:52 +0200 Subject: Added support to NewJsonRpc to return an error as well as an interface --- ethereal/ethereum.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ethereal') diff --git a/ethereal/ethereum.go b/ethereal/ethereum.go index 1a6ab0044..bacf6d446 100644 --- a/ethereal/ethereum.go +++ b/ethereal/ethereum.go @@ -100,8 +100,12 @@ func main() { } 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 { + log.Println("Could not start RPC interface:", err) + } else { + go ethereum.RpcServer.Start() + } } log.Printf("Starting Ethereum GUI v%s\n", ethutil.Config.Ver) -- cgit