Trait penumbra_app::app::StateWriteExt
source · pub trait StateWriteExt: StateWrite {
// Provided methods
fn put_chain_id(&mut self, chain_id: String) { ... }
fn put_block_transaction<'life0, 'async_trait>(
&'life0 mut self,
height: u64,
transaction: Transaction
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}
Provided Methods§
sourcefn put_chain_id(&mut self, chain_id: String)
fn put_chain_id(&mut self, chain_id: String)
Sets the chain ID.
sourcefn put_block_transaction<'life0, 'async_trait>(
&'life0 mut self,
height: u64,
transaction: Transaction
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn put_block_transaction<'life0, 'async_trait>(
&'life0 mut self,
height: u64,
transaction: Transaction
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
Stores the transactions that occurred during a CometBFT block.
This is used to create a durable transaction log for clients to retrieve;
the CometBFT get_block_by_height
RPC call will only return data for blocks
since the last checkpoint, so we need to store the transactions separately.
Object Safety§
This trait is not object safe.