Struct zcash_history::NodeData
source · #[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: u32
Consensus 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: u32
Start time.
end_time: u32
End time.
start_target: u32
Start target.
end_target: u32
End target.
start_sapling_root: [u8; 32]
Start sapling tree root.
end_sapling_root: [u8; 32]
End sapling tree root.
subtree_total_work: U256
Part of tree total work.
start_height: u64
Start height.
end_height: u64
End height
sapling_tx: u64
Number of Sapling transactions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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