What's new
This version adds support for the pre-latest
block concept — a block that has been finalized by consensus but whose commitments are not yet calculated. It acts as a preview of the next block, allowing faster access to the chain state to build the pre_confirmed
state.
When the latest finalized block is N
, the pre_confirmed
block can now be built either:
- directly on top of
N
(i.e.,pre_confirmed = N + 1
), or - on top of a PreLatest block at
N + 1
(i.e.,pre_confirmed = N + 2
), if available.
Background
Previously, the pre_confirmed
block was always fetched for latest + 1
, requiring us to wait for commitments before proceeding.
Impact
This change allows us to fetch the pre_confirmed
block earlier by removing the wait for commitments, resulting in access to a more recent state sooner and reducing transaction confirmation latency.
Full Changelog: v0.15.5...v0.15.6