bump nim-web3 for correct getPayloadV2 response signature (#4471)
This commit is contained in:
parent
47cb0f7991
commit
d1b799eb64
|
@ -561,15 +561,14 @@ proc getPayloadV1*(
|
||||||
|
|
||||||
proc getPayloadV2*(
|
proc getPayloadV2*(
|
||||||
p: Eth1Monitor, payloadId: bellatrix.PayloadID):
|
p: Eth1Monitor, payloadId: bellatrix.PayloadID):
|
||||||
Future[engine_api.ExecutionPayloadV2] =
|
Future[engine_api.ExecutionPayloadV2] {.async.} =
|
||||||
# Eth1 monitor can recycle connections without (external) warning; at least,
|
# Eth1 monitor can recycle connections without (external) warning; at least,
|
||||||
# don't crash.
|
# don't crash.
|
||||||
if p.isNil or p.dataProvider.isNil:
|
if p.isNil or p.dataProvider.isNil:
|
||||||
let epr = newFuture[engine_api.ExecutionPayloadV2]("getPayload")
|
return default(engine_api.ExecutionPayloadV2)
|
||||||
epr.complete(default(engine_api.ExecutionPayloadV2))
|
|
||||||
return epr
|
|
||||||
|
|
||||||
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):
|
proc newPayload*(p: Eth1Monitor, payload: engine_api.ExecutionPayloadV1):
|
||||||
Future[PayloadStatusV1] =
|
Future[PayloadStatusV1] =
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 43b710c5d64eb0c6dbde954f470aed46f8ab31b7
|
Subproject commit d596e68c14d0cf7fb3d52023ba16cac49b615173
|
Loading…
Reference in New Issue