Trait consensus_types::db::LedgerBlockRW
source · 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§
sourcefn get_ledger_block(&self, _block_id: &HashValue) -> Result<Option<Block>>
fn get_ledger_block(&self, _block_id: &HashValue) -> Result<Option<Block>>
get_ledger_block