From fef71a78a0e1f2de208aaa9208f0b02dfdad63f4 Mon Sep 17 00:00:00 2001 From: tersec Date: Thu, 24 Feb 2022 17:01:48 +0000 Subject: [PATCH] bump nim-web3 for random -> prevRandao rename (#3435) --- beacon_chain/eth1/eth1_monitor.nim | 6 +++--- vendor/nim-web3 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beacon_chain/eth1/eth1_monitor.nim b/beacon_chain/eth1/eth1_monitor.nim index b2cebda8c..da71b55be 100644 --- a/beacon_chain/eth1/eth1_monitor.nim +++ b/beacon_chain/eth1/eth1_monitor.nim @@ -310,7 +310,7 @@ func asConsensusExecutionPayload*(rpcExecutionPayload: ExecutionPayloadV1): state_root: rpcExecutionPayload.stateRoot.asEth2Digest, receipts_root: rpcExecutionPayload.receiptsRoot.asEth2Digest, logs_bloom: BloomLogs(data: rpcExecutionPayload.logsBloom.distinctBase), - random: rpcExecutionPayload.random.asEth2Digest, + random: rpcExecutionPayload.prevRandao.asEth2Digest, block_number: rpcExecutionPayload.blockNumber.uint64, gas_limit: rpcExecutionPayload.gasLimit.uint64, gas_used: rpcExecutionPayload.gasUsed.uint64, @@ -336,7 +336,7 @@ func asEngineExecutionPayload*(executionPayload: bellatrix.ExecutionPayload): receiptsRoot: executionPayload.receipts_root.asBlockHash, logsBloom: FixedBytes[BYTES_PER_LOGS_BLOOM](executionPayload.logs_bloom.data), - random: executionPayload.random.asBlockHash, + prevRandao: executionPayload.random.asBlockHash, blockNumber: Quantity(executionPayload.block_number), gasLimit: Quantity(executionPayload.gas_limit), gasUsed: Quantity(executionPayload.gas_used), @@ -483,7 +483,7 @@ proc forkchoiceUpdated*(p: Web3DataProviderRef, finalizedBlockHash: finalizedBlock.asBlockHash), some(engine_api.PayloadAttributesV1( timestamp: Quantity timestamp, - random: FixedBytes[32] randomData, + prevRandao: FixedBytes[32] randomData, suggestedFeeRecipient: suggestedFeeRecipient))) template readJsonField(j: JsonNode, fieldName: string, ValueType: type): untyped = diff --git a/vendor/nim-web3 b/vendor/nim-web3 index 719fb4813..91c998a0d 160000 --- a/vendor/nim-web3 +++ b/vendor/nim-web3 @@ -1 +1 @@ -Subproject commit 719fb4813aa6e31f3b8774b52b35d8535fb828e6 +Subproject commit 91c998a0d488cef011e84d8a1ef3d4f83d963111