Trait bitcoinchain_interface::HasBlocks
source · pub trait HasBlocks {
// Required method
fn has_blocks(
&mut self,
block_hash: &u256,
min_height: i32,
max_height: Option<i32>
) -> bool;
}
Required Methods§
sourcefn has_blocks(
&mut self,
block_hash: &u256,
min_height: i32,
max_height: Option<i32>
) -> bool
fn has_blocks( &mut self, block_hash: &u256, min_height: i32, max_height: Option<i32> ) -> bool
| Return true if data is available for all | blocks in the specified range of | blocks. This checks all blocks that are | ancestors of block_hash in the height | range from min_height to max_height, | inclusive.