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.
This commit is contained in:
Adam Spitz 2023-01-21 14:41:30 +01:00 committed by GitHub
parent 5b189ce5e2
commit 20d2d318f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 # I think this just means the RLP will contain a list
# of transactions (without any uncles or withdrawals). # of transactions (without any uncles or withdrawals).
result.transactions = rlp.read(seq[Transaction]) result.transactions = rlp.read(seq[Transaction])
result.uncles = @[] result.uncles = rlp.read(seq[BlockHeader])
result.withdrawals = none[seq[Withdrawal]]() result.withdrawals = none[seq[Withdrawal]]()
else: else:
let len = rlp.listLen let len = rlp.listLen