Module block_header

Module block_header 

Source

Structs§

BasePrice
BlockHeader
A block header.
BlockHeaderBuilder
BlockHeaderRlpPart
CustomData
Block-header custom fields as one raw-RLP blob instead of a Vec<Bytes>, so a peer header packed with tiny RLP items can’t amplify into a per-item allocation (remote OOM). raw is re-emitted verbatim via append_raw(&raw, count), byte-identical to the old encoding — block hashes unchanged, no hardfork.

Constants§

BASE_PRICE_CHANGE_DENOMINATOR

Statics§

CIP112_TRANSITION_HEIGHT
The height to start fixing the wrong encoding/decoding of the custom field.

Functions§

compute_next_price
compute_next_price_tuple
A helper function for compute_next_price which takes a typle as input
estimate_gas_used_boundary
estimate_max_possible_gas