Skip to main content

test_canonical_in_memory_state_writer

Function test_canonical_in_memory_state_writer 

Source
pub fn test_canonical_in_memory_state_writer(
    in_memory_state_writer: InMemoryStateWriter,
) -> CanonicalInMemoryStateWriter
Available on crate features test-utils only.
Expand description

Creates the writer of a canonical state over the blocks in_memory_state_writer writes.

The canonical head of the state is the default header, and it has no safe or finalized block.