Implemented a flag for a different RPC port; --rpcport

This commit is contained in:
Maran
2014-05-13 12:00:48 +02:00
parent b9876df5dc
commit 9a03df7bd8
4 changed files with 6 additions and 2 deletions

View File

@ -100,7 +100,7 @@ func main() {
}
if StartRpc {
ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum.StateManager(), ethereum.BlockChain(), ethereum.TxPool()))
ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum.StateManager(), ethereum.BlockChain(), ethereum.TxPool()), RpcPort)
if err != nil {
log.Println("Could not start RPC interface:", err)
} else {