pub struct AssumeUtreexoValue {
pub block_hash: BlockHash,
pub height: u32,
pub roots: Vec<NodeHash>,
pub leaves: u64,
}
Expand description
If enabled, the node will assume that the provided Utreexo state is valid, and will start running from there. You may use this to make your node start faster, but you should be sure that the provided state is valid. You may or not verify the state, by downloading all blocks on background, and then verifying the final Utreexo state.
Fields§
§block_hash: BlockHash
The latest block assumed to be valid. This acc is the roots at this block
height: u32
Same as block_hash, but in height
roots: Vec<NodeHash>
The roots of the Utreexo accumulator at this block
leaves: u64
The number of leaves in the Utreexo accumulator at this block
Trait Implementations§
source§impl Clone for AssumeUtreexoValue
impl Clone for AssumeUtreexoValue
source§fn clone(&self) -> AssumeUtreexoValue
fn clone(&self) -> AssumeUtreexoValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for AssumeUtreexoValue
impl Send for AssumeUtreexoValue
impl Sync for AssumeUtreexoValue
impl Unpin for AssumeUtreexoValue
impl UnwindSafe for AssumeUtreexoValue
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