Skip to main content

BlockExecutionApplication

Trait BlockExecutionApplication 

Source
pub trait BlockExecutionApplication {
    // Required methods
    fn block_execution_context(&self) -> &RwLock<Option<BlockExecutionContext>>;
    fn unsigned_withdrawal_txs_by_round(
        &self,
    ) -> &RwLock<UnsignedWithdrawalTxsByRound>;
}
Expand description

Application that executes blocks and need to keep context between handlers

Required Methods§

Source

fn block_execution_context(&self) -> &RwLock<Option<BlockExecutionContext>>

Returns the current block execution context

Source

fn unsigned_withdrawal_txs_by_round( &self, ) -> &RwLock<UnsignedWithdrawalTxsByRound>

Returns the unsigned withdrawal transactions of every proposal accepted at the current height, by round, which vote extensions are verified against

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§