pub trait StateWriteExt: StateWriteEncode {
    // Provided methods
    fn put_block_height(&mut self, height: u64) -> Result<()> { ... }
    fn put_block_timestamp(&mut self, timestamp: Time) -> Result<()> { ... }
    fn put_chain_parameters(&mut self, params: &ChainParameters) -> Result<()> { ... }
}

Provided Methods§

source

fn put_block_height(&mut self, height: u64) -> Result<()>

Writes the block height to the store.

source

fn put_block_timestamp(&mut self, timestamp: Time) -> Result<()>

Writes the block timestamp to the state.

source

fn put_chain_parameters(&mut self, params: &ChainParameters) -> Result<()>

Writes the chain parameters to the state.

Object Safety§

This trait is not object safe.

Implementors§