pub(crate) fn new(
        network: Network,
        sprout_note_commitment_tree: sprout::tree::NoteCommitmentTree,
        sapling_note_commitment_tree: sapling::tree::NoteCommitmentTree,
        orchard_note_commitment_tree: orchard::tree::NoteCommitmentTree,
        history_tree: HistoryTree,
        finalized_tip_chain_value_pools: ValueBalance<NonNegative>,
    ) -> Self {
        Self {
            network,
            blocks: Default::default(),
            height_by_hash: Default::default(),
            tx_by_hash: Default::default(),
            created_utxos: Default::default(),
            sprout_note_commitment_tree,
            sapling_note_commitment_tree,
            orchard_note_commitment_tree,
            spent_utxos: Default::default(),
            sprout_anchors: HashMultiSet::new(),
            sprout_anchors_by_height: Default::default(),
            sapling_anchors: HashMultiSet::new(),
            sapling_anchors_by_height: Default::default(),
            orchard_anchors: HashMultiSet::new(),
            orchard_anchors_by_height: Default::default(),
            sprout_nullifiers: Default::default(),
            sapling_nullifiers: Default::default(),
            orchard_nullifiers: Default::default(),
            partial_cumulative_work: Default::default(),
            history_tree,
            chain_value_pools: finalized_tip_chain_value_pools,
        }
    }
/// Create a new Chain with the given trees and network.
Create a new Chain with the given trees and network.
Create a new Chain with the given trees and network .
pub(crate) fn new(
        network: Network,
        sprout_note_commitment_tree: sprout::tree::NoteCommitmentTree,
        sapling_note_commitment_tree: sapling::tree::NoteCommitmentTree,
        orchard_note_commitment_tree: orchard::tree::NoteCommitmentTree,
        history_tree: HistoryTree,
        finalized_tip_chain_value_pools: ValueBalance<NonNegative>,
    ) -> Self {
        Self {
            network,
            blocks: Default::default(),
            height_by_hash: Default::default(),
            tx_by_hash: Default::default(),
            created_utxos: Default::default(),
            sprout_note_commitment_tree,
            sapling_note_commitment_tree,
            orchard_note_commitment_tree,
            spent_utxos: Default::default(),
            sprout_anchors: HashMultiSet::new(),
            sprout_anchors_by_height: Default::default(),
            sapling_anchors: HashMultiSet::new(),
            sapling_anchors_by_height: Default::default(),
            orchard_anchors: HashMultiSet::new(),
            orchard_anchors_by_height: Default::default(),
            sprout_nullifiers: Default::default(),
            sapling_nullifiers: Default::default(),
            orchard_nullifiers: Default::default(),
            partial_cumulative_work: Default::default(),
            history_tree,
            chain_value_pools: finalized_tip_chain_value_pools,
        }
    }
pub ( crate ) fn new ( network : Network , sprout_note_commitment_tree : sprout :: tree :: NoteCommitmentTree , sapling_note_commitment_tree : sapling :: tree :: NoteCommitmentTree , orchard_note_commitment_tree : orchard :: tree :: NoteCommitmentTree , history_tree : HistoryTree , finalized_tip_chain_value_pools : ValueBalance < NonNegative > , ) -> Self { Self { network , blocks : Default :: default ( ) , height_by_hash : Default :: default ( ) , tx_by_hash : Default :: default ( ) , created_utxos : Default :: default ( ) , sprout_note_commitment_tree , sapling_note_commitment_tree , orchard_note_commitment_tree , spent_utxos : Default :: default ( ) , sprout_anchors : HashMultiSet :: new ( ) , sprout_anchors_by_height : Default :: default ( ) , sapling_anchors : HashMultiSet :: new ( ) , sapling_anchors_by_height : Default :: default ( ) , orchard_anchors : HashMultiSet :: new ( ) , orchard_anchors_by_height : Default :: default ( ) , sprout_nullifiers : Default :: default ( ) , sapling_nullifiers : Default :: default ( ) , orchard_nullifiers : Default :: default ( ) , partial_cumulative_work : Default :: default ( ) , history_tree , chain_value_pools : finalized_tip_chain_value_pools , } }
Create a new Chain with the given trees and network.
Create a new Chain with the given trees and network .
network
Network
sprout_note_commitment_tree
sprout::tree::NoteCommitmentTree
sapling_note_commitment_tree
sapling::tree::NoteCommitmentTree
orchard_note_commitment_tree
orchard::tree::NoteCommitmentTree
history_tree
HistoryTree
finalized_tip_chain_value_pools
ValueBalance<NonNegative>