ExecutorService

Trait ExecutorService 

Source
pub trait ExecutorService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn init_chain<'life0, 'async_trait>(
        &'life0 self,
        request: Request<InitChainRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<InitChainResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_txs<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetTxsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetTxsResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn execute_txs<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ExecuteTxsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteTxsResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn set_final<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SetFinalRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SetFinalResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with ExecutorServiceServer.

Required Methods§

Source

fn init_chain<'life0, 'async_trait>( &'life0 self, request: Request<InitChainRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InitChainResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

InitChain initializes a new blockchain instance with genesis parameters

Source

fn get_txs<'life0, 'async_trait>( &'life0 self, request: Request<GetTxsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetTxsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

GetTxs fetches available transactions from the execution layer’s mempool

Source

fn execute_txs<'life0, 'async_trait>( &'life0 self, request: Request<ExecuteTxsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteTxsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

ExecuteTxs processes transactions to produce a new block state

Source

fn set_final<'life0, 'async_trait>( &'life0 self, request: Request<SetFinalRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SetFinalResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

SetFinal marks a block as finalized at the specified height

Implementors§