diff --git a/beacon_chain/eth1/eth1_monitor.nim b/beacon_chain/eth1/eth1_monitor.nim index 3b4422655a..578c35a260 100644 --- a/beacon_chain/eth1/eth1_monitor.nim +++ b/beacon_chain/eth1/eth1_monitor.nim @@ -557,15 +557,14 @@ proc getPayloadV1*( proc getPayloadV2*( p: Eth1Monitor, payloadId: bellatrix.PayloadID): - Future[engine_api.ExecutionPayloadV2] = + Future[engine_api.ExecutionPayloadV2] {.async.} = # Eth1 monitor can recycle connections without (external) warning; at least, # don't crash. if p.isNil or p.dataProvider.isNil: - let epr = newFuture[engine_api.ExecutionPayloadV2]("getPayload") - epr.complete(default(engine_api.ExecutionPayloadV2)) - return epr + return default(engine_api.ExecutionPayloadV2) - p.dataProvider.web3.provider.engine_getPayloadV2(FixedBytes[8] payloadId) + return (await p.dataProvider.web3.provider.engine_getPayloadV2( + FixedBytes[8] payloadId)).executionPayload proc newPayload*(p: Eth1Monitor, payload: engine_api.ExecutionPayloadV1): Future[PayloadStatusV1] = diff --git a/vendor/nim-web3 b/vendor/nim-web3 index 43b710c5d6..d596e68c14 160000 --- a/vendor/nim-web3 +++ b/vendor/nim-web3 @@ -1 +1 @@ -Subproject commit 43b710c5d64eb0c6dbde954f470aed46f8ab31b7 +Subproject commit d596e68c14d0cf7fb3d52023ba16cac49b615173