fix json compile

This commit is contained in:
Jacek Sieka 2020-02-08 19:42:45 +01:00
parent 521b0ed6ba
commit d99ce1bcf0
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ proc getGenesis*(m: MainchainMonitor): Future[BeaconState] {.async.} =
return m.genesisState[]
proc getBlockNumber(web3: Web3, hash: BlockHash): Future[Quantity] {.async.} =
debug "Querying block number", hash
debug "Querying block number", hash = $hash
try:
let blk = await web3.provider.eth_getBlockByHash(hash, false)
@ -126,7 +126,7 @@ proc getBlockNumber(web3: Web3, hash: BlockHash): Future[Quantity] {.async.} =
# reasonable behavior? no idea - the whole algorithm needs to be
# rewritten to match the spec.
notice "Failed to get block number from hash, using current block instead",
hash, err = exc.msg
hash = $hash, err = exc.msg
return await web3.provider.eth_blockNumber()
proc run(m: MainchainMonitor, delayBeforeStart: Duration) {.async.} =