crate::ix!();
pub struct FoundBlock {
hash: *mut u256,
height: *mut i32,
time: *mut i64,
max_time: *mut i64,
mtp_time: *mut i64,
in_active_chain: *mut bool,
next_block: Amo<FoundBlock>,
data: Amo<Block>,
found: RefCell<bool>,
}
impl Default for FoundBlock {
fn default() -> Self {
Self {
hash: null_mut(),
height: null_mut(),
time: null_mut(),
max_time: null_mut(),
mtp_time: null_mut(),
in_active_chain: null_mut(),
next_block: amo_none(),
data: amo_none(),
found: RefCell::new(false),
}
}
}
impl FoundBlock {
pub fn hash(&mut self, hash: &mut u256) -> &mut FoundBlock {
todo!();
}
pub fn height(&mut self, height: &mut i32) -> &mut FoundBlock {
todo!();
}
pub fn time(&mut self, time: &mut i64) -> &mut FoundBlock {
todo!();
}
pub fn max_time(&mut self, max_time: &mut i64) -> &mut FoundBlock {
todo!();
}
pub fn mtp_time(&mut self, mtp_time: &mut i64) -> &mut FoundBlock {
todo!();
}
pub fn in_active_chain(&mut self, in_active_chain: &mut bool) -> &mut FoundBlock {
todo!();
}
pub fn next_block(&mut self, next_block: &FoundBlock) -> &mut FoundBlock {
todo!();
}
pub fn data(&mut self, data: &mut Block) -> &mut FoundBlock {
todo!();
}
}