pub trait LedgerBlockRW: Send + Sync {
    // Provided methods
    fn get_ledger_block(&self, _block_id: &HashValue) -> Result<Option<Block>> { ... }
    fn save_ledger_blocks(&self, _blocks: Vec<Block>) -> Result<()> { ... }
    fn get_qc_for_block(
        &self,
        _block_id: &HashValue
    ) -> Result<Option<QuorumCert>> { ... }
}

Provided Methods§

source

fn get_ledger_block(&self, _block_id: &HashValue) -> Result<Option<Block>>

get_ledger_block

source

fn save_ledger_blocks(&self, _blocks: Vec<Block>) -> Result<()>

save_ledger_blocks

source

fn get_qc_for_block(&self, _block_id: &HashValue) -> Result<Option<QuorumCert>>

Implementors§