hotstuff_rs::block_tree::pluggables

Trait KVGet

source
pub trait KVGet {
Show 25 methods // Required method fn get(&self, key: &[u8]) -> Option<Vec<u8>>; // Provided methods fn block(&self, block: &CryptoHash) -> Result<Option<Block>, KVGetError> { ... } fn block_height( &self, block: &CryptoHash, ) -> Result<Option<BlockHeight>, KVGetError> { ... } fn block_justify( &self, block: &CryptoHash, ) -> Result<PhaseCertificate, KVGetError> { ... } fn block_data_hash( &self, block: &CryptoHash, ) -> Result<Option<CryptoHash>, KVGetError> { ... } fn block_data_len( &self, block: &CryptoHash, ) -> Result<Option<DataLen>, KVGetError> { ... } fn block_data(&self, block: &CryptoHash) -> Result<Option<Data>, KVGetError> { ... } fn block_datum(&self, block: &CryptoHash, datum_index: u32) -> Option<Datum> { ... } fn block_at_height( &self, height: BlockHeight, ) -> Result<Option<CryptoHash>, KVGetError> { ... } fn children(&self, block: &CryptoHash) -> Result<ChildrenList, KVGetError> { ... } fn committed_app_state(&self, key: &[u8]) -> Option<Vec<u8>> { ... } fn pending_app_state_updates( &self, block: &CryptoHash, ) -> Result<Option<AppStateUpdates>, KVGetError> { ... } fn committed_validator_set(&self) -> Result<ValidatorSet, KVGetError> { ... } fn validator_set_updates_status( &self, block: &CryptoHash, ) -> Result<ValidatorSetUpdatesStatus, KVGetError> { ... } fn locked_pc(&self) -> Result<PhaseCertificate, KVGetError> { ... } fn highest_view_entered(&self) -> Result<ViewNumber, KVGetError> { ... } fn highest_pc(&self) -> Result<PhaseCertificate, KVGetError> { ... } fn highest_committed_block(&self) -> Result<Option<CryptoHash>, KVGetError> { ... } fn newest_block(&self) -> Result<Option<CryptoHash>, KVGetError> { ... } fn highest_tc(&self) -> Result<Option<TimeoutCertificate>, KVGetError> { ... } fn previous_validator_set(&self) -> Result<ValidatorSet, KVGetError> { ... } fn validator_set_update_block_height( &self, ) -> Result<Option<BlockHeight>, KVGetError> { ... } fn validator_set_update_complete(&self) -> Result<bool, KVGetError> { ... } fn validator_set_state(&self) -> Result<ValidatorSetState, KVGetError> { ... } fn highest_view_phase_voted(&self) -> Result<Option<ViewNumber>, KVGetError> { ... }
}

Required Methods§

source

fn get(&self, key: &[u8]) -> Option<Vec<u8>>

Provided Methods§

source

fn block(&self, block: &CryptoHash) -> Result<Option<Block>, KVGetError>

source

fn block_height( &self, block: &CryptoHash, ) -> Result<Option<BlockHeight>, KVGetError>

source

fn block_justify( &self, block: &CryptoHash, ) -> Result<PhaseCertificate, KVGetError>

source

fn block_data_hash( &self, block: &CryptoHash, ) -> Result<Option<CryptoHash>, KVGetError>

source

fn block_data_len( &self, block: &CryptoHash, ) -> Result<Option<DataLen>, KVGetError>

source

fn block_data(&self, block: &CryptoHash) -> Result<Option<Data>, KVGetError>

source

fn block_datum(&self, block: &CryptoHash, datum_index: u32) -> Option<Datum>

source

fn block_at_height( &self, height: BlockHeight, ) -> Result<Option<CryptoHash>, KVGetError>

source

fn children(&self, block: &CryptoHash) -> Result<ChildrenList, KVGetError>

source

fn committed_app_state(&self, key: &[u8]) -> Option<Vec<u8>>

source

fn pending_app_state_updates( &self, block: &CryptoHash, ) -> Result<Option<AppStateUpdates>, KVGetError>

source

fn committed_validator_set(&self) -> Result<ValidatorSet, KVGetError>

source

fn validator_set_updates_status( &self, block: &CryptoHash, ) -> Result<ValidatorSetUpdatesStatus, KVGetError>

source

fn locked_pc(&self) -> Result<PhaseCertificate, KVGetError>

source

fn highest_view_entered(&self) -> Result<ViewNumber, KVGetError>

source

fn highest_pc(&self) -> Result<PhaseCertificate, KVGetError>

source

fn highest_committed_block(&self) -> Result<Option<CryptoHash>, KVGetError>

source

fn newest_block(&self) -> Result<Option<CryptoHash>, KVGetError>

source

fn highest_tc(&self) -> Result<Option<TimeoutCertificate>, KVGetError>

source

fn previous_validator_set(&self) -> Result<ValidatorSet, KVGetError>

source

fn validator_set_update_block_height( &self, ) -> Result<Option<BlockHeight>, KVGetError>

source

fn validator_set_update_complete(&self) -> Result<bool, KVGetError>

source

fn validator_set_state(&self) -> Result<ValidatorSetState, KVGetError>

source

fn highest_view_phase_voted(&self) -> Result<Option<ViewNumber>, KVGetError>

Implementors§