Moved RPC Server and implemented it as a package

This commit is contained in:
Maran
2014-05-02 13:35:03 +02:00
parent 1b597b8ca9
commit 3424bf17ca
5 changed files with 9 additions and 267 deletions

View File

@@ -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()