#[repr(C)]pub struct NodeData {
pub consensus_branch_id: u32,
pub subtree_commitment: [u8; 32],
pub start_time: u32,
pub end_time: u32,
pub start_target: u32,
pub end_target: u32,
pub start_sapling_root: [u8; 32],
pub end_sapling_root: [u8; 32],
pub subtree_total_work: U256,
pub start_height: u64,
pub end_height: u64,
pub sapling_tx: u64,
}Expand description
V1 node metadata.
Fields§
§consensus_branch_id: u32Consensus branch id, should be provided by deserializing node.
subtree_commitment: [u8; 32]Subtree commitment - either block hash for leaves or hashsum of children for nodes.
start_time: u32Start time.
end_time: u32End time.
start_target: u32Start target.
end_target: u32End target.
start_sapling_root: [u8; 32]Start sapling tree root.
end_sapling_root: [u8; 32]End sapling tree root.
subtree_total_work: U256Part of tree total work.
start_height: u64Start height.
end_height: u64End height
sapling_tx: u64Number of Sapling transactions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeData
impl RefUnwindSafe for NodeData
impl Send for NodeData
impl Sync for NodeData
impl Unpin for NodeData
impl UnwindSafe for NodeData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more