mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-03 15:55:47 +00:00
fixes premix/downloader.nim to compile with new json_rpc
This commit is contained in:
parent
1988d08ad8
commit
14cf2c8cac
@ -22,11 +22,7 @@ proc request*(methodName: string, params: JsonNode): JsonNode =
|
||||
var client = newRpcHttpClient()
|
||||
client.httpMethod(MethodPost)
|
||||
waitFor client.connect("localhost", Port(8545))
|
||||
var r = waitFor client.call(methodName, params)
|
||||
if r.error:
|
||||
result = newJNull()
|
||||
else:
|
||||
result = r.result
|
||||
result = waitFor client.call(methodName, params)
|
||||
waitFor client.close()
|
||||
|
||||
proc requestBlockBody(n: JsonNode, blockNumber: BlockNumber): BlockBody =
|
||||
|
Loading…
x
Reference in New Issue
Block a user