mirror of https://github.com/status-im/nim-eth.git
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:
parent
5b189ce5e2
commit
20d2d318f0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue