pub fn digest_build_iterator(config: &Configuration, block: u64) -> DigestBuildIterator {
	// prepare digest build parameters
	let (_, _, digest_step) = match config.digest_level_at_block(block) {
		Some((current_level, digest_interval, digest_step)) =>
			(current_level, digest_interval, digest_step),
		None => return DigestBuildIterator::empty(),
	};

	DigestBuildIterator::new(block, config.digest_interval, digest_step)
}
/// Returns iterator of OTHER blocks that are required for inclusion into
/// changes trie of given block.
Returns iterator of OTHER blocks that are required for inclusion into
changes trie of given block.
Returns iterator of OTHER blocks that are required for inclusion into changes trie of given block .
pub fn digest_build_iterator(config: &Configuration, block: u64) -> DigestBuildIterator {
	// prepare digest build parameters
	let (_, _, digest_step) = match config.digest_level_at_block(block) {
		Some((current_level, digest_interval, digest_step)) =>
			(current_level, digest_interval, digest_step),
		None => return DigestBuildIterator::empty(),
	};
	DigestBuildIterator::new(block, config.digest_interval, digest_step)
}
pub fn digest_build_iterator ( config : & Configuration , block : u64 ) -> DigestBuildIterator { // prepare digest build parameters let ( _ , _ , digest_step ) = match config . digest_level_at_block ( block ) { Some ( ( current_level , digest_interval , digest_step ) ) => ( current_level , digest_interval , digest_step ) , None => return DigestBuildIterator :: empty ( ) , } ; DigestBuildIterator :: new ( block , config . digest_interval , digest_step ) }
Returns iterator of OTHER blocks that are required for inclusion into
changes trie of given block.
Returns iterator of OTHER blocks that are required for inclusion into changes trie of given block .
config
&Configuration
block
u64
config
&Configuration
block
u64