diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-02 19:35:03 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-02 19:35:03 +0800 |
commit | 3424bf17ca791b97ea512bef5290d1a52c1758af (patch) | |
tree | 247dafa437609d9e2c53376adb2afa6cbbcbacc4 /ethereum/ethereum.go | |
parent | 1b597b8ca9ee9564f29b93e1ba5877e012a8d989 (diff) | |
download | dexon-3424bf17ca791b97ea512bef5290d1a52c1758af.tar dexon-3424bf17ca791b97ea512bef5290d1a52c1758af.tar.gz dexon-3424bf17ca791b97ea512bef5290d1a52c1758af.tar.bz2 dexon-3424bf17ca791b97ea512bef5290d1a52c1758af.tar.lz dexon-3424bf17ca791b97ea512bef5290d1a52c1758af.tar.xz dexon-3424bf17ca791b97ea512bef5290d1a52c1758af.tar.zst dexon-3424bf17ca791b97ea512bef5290d1a52c1758af.zip |
Moved RPC Server and implemented it as a package
Diffstat (limited to 'ethereum/ethereum.go')
-rw-r--r-- | ethereum/ethereum.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go index 04851d2bd..0b56855e0 100644 --- a/ethereum/ethereum.go +++ b/ethereum/ethereum.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/ethereum/eth-go" "github.com/ethereum/eth-go/ethchain" + "github.com/ethereum/eth-go/etherpc" "github.com/ethereum/eth-go/ethminer" "github.com/ethereum/eth-go/ethutil" "github.com/ethereum/go-ethereum/utils" @@ -131,6 +132,10 @@ func main() { console := NewConsole(ethereum) go console.Start() } + if StartRpc { + ethereum.RpcServer = etherpc.NewJsonRpcServer() + go ethereum.RpcServer.Start() + } RegisterInterrupts(ethereum) ethereum.Start() |