1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
crate::ix!();
//-------------------------------------------[.cpp/bitcoin/src/test/util/validation.h]
//-------------------------------------------[.cpp/bitcoin/src/test/util/validation.cpp]
pub struct TestChainState {
base: ChainState,
}
impl TestChainState {
/**
| Reset the ibd cache to its initial state
|
*/
pub fn reset_ibd(&mut self) {
todo!();
/*
m_cached_finished_ibd = false;
assert(IsInitialBlockDownload());
*/
}
/**
| Toggle IsInitialBlockDownload from
| true to false
|
*/
pub fn jump_out_of_ibd(&mut self) {
todo!();
/*
Assert(IsInitialBlockDownload());
m_cached_finished_ibd = true;
Assert(!IsInitialBlockDownload());
*/
}
}