restore the compilation of the main nimbus executable

This commit is contained in:
Zahary Karadjov 2018-07-20 20:02:19 +03:00
parent 01a920b3b6
commit 1602c8ca03
2 changed files with 6 additions and 5 deletions

View File

@ -15,10 +15,11 @@ requires "nim >= 0.18.1",
"rocksdb",
"eth_trie",
"https://github.com/status-im/nim-eth-common",
"https://github.com/status-im/nim-eth-rpc",
"json_rpc",
"https://github.com/status-im/nim-asyncdispatch2",
"eth_p2p",
"eth_keyfile"
"eth_keyfile",
"eth_keys"
proc test(name: string, lang = "c") =
if not dirExists "build":

View File

@ -8,7 +8,7 @@
# those terms.
import strutils, net
import asyncdispatch2, rpcserver, eth_p2p, eth_keys
import asyncdispatch2, json_rpc/rpcserver, eth_p2p, eth_keys
import config, rpc/common, rpc/p2p
## TODO:
@ -27,7 +27,7 @@ type
Starting, Running, Stopping, Stopped
NimbusObject = ref object
rpcServer*: RpcServer
rpcServer*: RpcHttpServer
ethNode*: EthereumNode
state*: NimbusState
@ -37,7 +37,7 @@ proc start(): NimbusObject =
## Creating RPC Server
if RpcFlags.Enabled in conf.rpc.flags:
nimbus.rpcServer = newRpcServer(conf.rpc.binds)
nimbus.rpcServer = newRpcHttpServer(conf.rpc.binds)
setupCommonRpc(nimbus.rpcServer)
## Creating P2P Server