crate::ix!();
pub trait FindBlock {
fn find_block(&mut self,
hash: &u256,
block: &FoundBlock) -> bool;
}
pub trait FindFirstBlockWithTimeAndHeight {
fn find_first_block_with_time_and_height(&mut self,
min_time: i64,
min_height: i32,
block: &FoundBlock) -> bool;
}
pub trait FindAncestorByHeight {
fn find_ancestor_by_height(&mut self,
block_hash: &u256,
ancestor_height: i32,
ancestor_out: &FoundBlock) -> bool;
}
pub trait FindAncestorByHash {
fn find_ancestor_by_hash(&mut self,
block_hash: &u256,
ancestor_hash: &u256,
ancestor_out: &FoundBlock) -> bool;
}
pub trait FindCommonAncestor {
fn find_common_ancestor(&mut self,
block_hash1: &u256,
block_hash2: &u256,
ancestor_out: &FoundBlock,
block1_out: &FoundBlock,
block2_out: &FoundBlock) -> bool;
}