Change blockNumber to UIn256 to make interfacing with nimbus-eth1 easier

This commit is contained in:
Zahary Karadjov 2021-10-06 10:45:18 +02:00
parent 3a93265075
commit 484f607ae6
2 changed files with 6 additions and 1 deletions

View File

@ -35,3 +35,8 @@ type
ForkChoiceUpdate* = object
headBlockHash*: BlockHash
finalizedBlockHash*: BlockHash
const
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.2/src/engine/interop/specification.md
UNKNOWN_HEADER* = 4
UNKNOWN_PAYLOAD* = 5

View File

@ -206,7 +206,7 @@ type
receiptRoot*: BlockHash
logsBloom*: FixedBytes[256]
random*: FixedBytes[32]
blockNumber*: Quantity
blockNumber*: UInt256
gasLimit*: Quantity
gasUsed*: Quantity
timestamp*: Quantity