mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-26 05:17:19 +00:00
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
This commit is contained in:
commit
67820506cb
@ -25,7 +25,7 @@ func Init() {
|
|||||||
flag.BoolVar(&StartRpc, "r", false, "start rpc server")
|
flag.BoolVar(&StartRpc, "r", false, "start rpc server")
|
||||||
flag.BoolVar(&ShowGenesis, "g", false, "prints genesis header and exits")
|
flag.BoolVar(&ShowGenesis, "g", false, "prints genesis header and exits")
|
||||||
flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support")
|
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(&GenAddr, "genaddr", false, "create a new priv/pub key")
|
||||||
flag.BoolVar(&ExportKey, "export", false, "export private key")
|
flag.BoolVar(&ExportKey, "export", false, "export private key")
|
||||||
flag.StringVar(&OutboundPort, "p", "30303", "listening port")
|
flag.StringVar(&OutboundPort, "p", "30303", "listening port")
|
||||||
|
@ -100,9 +100,13 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if StartRpc {
|
if StartRpc {
|
||||||
ethereum.RpcServer = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum.StateManager(), ethereum.BlockChain(), ethereum.TxPool()))
|
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()
|
go ethereum.RpcServer.Start()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("Starting Ethereum GUI v%s\n", ethutil.Config.Ver)
|
log.Printf("Starting Ethereum GUI v%s\n", ethutil.Config.Ver)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ func Init() {
|
|||||||
flag.BoolVar(&StartRpc, "r", false, "start rpc server")
|
flag.BoolVar(&StartRpc, "r", false, "start rpc server")
|
||||||
flag.BoolVar(&NonInteractive, "y", false, "non-interactive mode (say yes to confirmations)")
|
flag.BoolVar(&NonInteractive, "y", false, "non-interactive mode (say yes to confirmations)")
|
||||||
flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support")
|
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(&GenAddr, "genaddr", false, "create a new priv/pub key")
|
||||||
flag.BoolVar(&ExportKey, "export", false, "export private key")
|
flag.BoolVar(&ExportKey, "export", false, "export private key")
|
||||||
flag.StringVar(&OutboundPort, "p", "30303", "listening port")
|
flag.StringVar(&OutboundPort, "p", "30303", "listening port")
|
||||||
|
@ -133,9 +133,13 @@ func main() {
|
|||||||
go console.Start()
|
go console.Start()
|
||||||
}
|
}
|
||||||
if StartRpc {
|
if StartRpc {
|
||||||
ethereum.RpcServer = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum.StateManager(), ethereum.BlockChain(), ethereum.TxPool()))
|
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()
|
go ethereum.RpcServer.Start()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RegisterInterrupts(ethereum)
|
RegisterInterrupts(ethereum)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user