From 20d2d318f063d05a0a989b01be80e7560cda34c5 Mon Sep 17 00:00:00 2001 From: Adam Spitz Date: Sat, 21 Jan 2023 14:41:30 +0100 Subject: [PATCH] Fixed a bug that I just introduced in the BlockBody RLP code. (#583) The nimbus-eth1 tests seem to think that this is the right thing to do. --- eth/common/eth_types_rlp.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/common/eth_types_rlp.nim b/eth/common/eth_types_rlp.nim index a865ee7..a79366a 100644 --- a/eth/common/eth_types_rlp.nim +++ b/eth/common/eth_types_rlp.nim @@ -371,7 +371,7 @@ proc readRecordType*(rlp: var Rlp, T: type BlockBody, wrappedInList: bool): Bloc # I think this just means the RLP will contain a list # of transactions (without any uncles or withdrawals). result.transactions = rlp.read(seq[Transaction]) - result.uncles = @[] + result.uncles = rlp.read(seq[BlockHeader]) result.withdrawals = none[seq[Withdrawal]]() else: let len = rlp.listLen