Skip to main content

Module eip2935

Module eip2935 

Source
Expand description

EIP-2935 history storage helpers.

Constants§

HISTORY_SERVE_WINDOW
EIP-2935: Serve historical block hashes from state
HISTORY_STORAGE_ADDRESS
The address for the EIP-2935 history storage contract.

Statics§

HISTORY_STORAGE_CODE
The code for the EIP-2935 history storage contract.

Functions§

forward_fill_start
Returns the first block to backfill when rolling forward from old_block to new_block.
history_storage_slot
Returns the history storage ring slot for block_number.
history_storage_value
Encodes a block hash as the history contract storage value.
history_window_start
Returns the first block in the valid EIP-2935 window for current_block.
is_history_storage_address
Returns whether address is the EIP-2935 history storage contract.