mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
fixes related to nim-json-rpc bump
This commit is contained in:
parent
dcd86bb221
commit
f051c2530e
@ -234,7 +234,7 @@ proc start(nimbus: NimbusNode, conf: NimbusConf) =
|
||||
proc stop*(nimbus: NimbusNode, conf: NimbusConf) {.async, gcsafe.} =
|
||||
trace "Graceful shutdown"
|
||||
if conf.rpcEnabled:
|
||||
nimbus.rpcServer.stop()
|
||||
await nimbus.rpcServer.stop()
|
||||
if conf.wsEnabled:
|
||||
nimbus.wsRpcServer.stop()
|
||||
if conf.graphqlEnabled:
|
||||
|
@ -20,8 +20,8 @@ type
|
||||
|
||||
proc request*(methodName: string, params: JsonNode): JsonNode =
|
||||
var client = newRpcHttpClient()
|
||||
client.httpMethod(MethodPost)
|
||||
waitFor client.connect("127.0.0.1", Port(8545))
|
||||
#client.httpMethod(MethodPost)
|
||||
waitFor client.connect("127.0.0.1", Port(8545), false)
|
||||
result = waitFor client.call(methodName, params)
|
||||
waitFor client.close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user