zebra_chain::primitives::zcash_history

Trait Version

source
pub trait Version: Version {
    // Required method
    fn block_to_history_node(
        block: Arc<Block>,
        network: &Network,
        sapling_root: &Root,
        orchard_root: &Root,
    ) -> Self::NodeData;
}
Expand description

A trait to represent a version of Tree.

Required Methods§

source

fn block_to_history_node( block: Arc<Block>, network: &Network, sapling_root: &Root, orchard_root: &Root, ) -> Self::NodeData

Convert a Block into the NodeData for this version.

Object Safety§

This trait is not object safe.

Implementors§