You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Values of a field of QUANTITY type MUST be encoded as a hexadecimal string with a 0x prefix and the leading 0s stripped (except for the case of encoding the value 0) matching the regular expression ^0x(?:0|(?:[a-fA-F1-9][a-fA-F0-9]*))$.
Note: Byte order of encoded value having QUANTITY type is big-endian.
Currently Nimbus is allowing some Quantity types pass unchecked from the execution client in test invalid-quantity-fields of the eth2/engine simulator in hive.
The test verifies fields blockNumber (64 bitsize), gasLimit (64 bitsize), gasUsed (64 bitsize), timestamp (64 bitsize), baseFeePerGas (256 bitsize), with the following invalidations:
Overflow: Insert extra zeros left-padding in the hex string such that the bitsize overflows.
LeadingZero: Insert an extra zero so that the quantity hex string has an invalid leading zero (0x1 -> 0x01)
Empty: Send 0x string
NoPrefix: Strip the 0x from the valid hex string (0x1234 -> 1234)
Describe the bug
The
QUANTITY
fields of theExecutionPayloadV1
in the Engine API (https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md) must comply to the following definition:Currently Nimbus is allowing some Quantity types pass unchecked from the execution client in test
invalid-quantity-fields
of theeth2/engine
simulator in hive.The test verifies fields
blockNumber
(64 bitsize),gasLimit
(64 bitsize),gasUsed
(64 bitsize),timestamp
(64 bitsize),baseFeePerGas
(256 bitsize), with the following invalidations:0x1 -> 0x01
)0x
string0x
from the valid hex string (0x1234 -> 1234
)To Reproduce
Use branch https://github.com/marioevz/hive/tree/all-tests-plus-cl-clients and run
The text was updated successfully, but these errors were encountered: