pub trait Version: Version {
// Required method
fn block_to_history_node(
block: Arc<Block>,
network: &Network,
roots: BlockCommitmentTreeRoots<'_>,
) -> Self::NodeData;
}Expand description
A trait to represent a version of Tree.
Required Methods§
Sourcefn block_to_history_node(
block: Arc<Block>,
network: &Network,
roots: BlockCommitmentTreeRoots<'_>,
) -> Self::NodeData
fn block_to_history_node( block: Arc<Block>, network: &Network, roots: BlockCommitmentTreeRoots<'_>, ) -> Self::NodeData
Convert a Block into the NodeData for this version.
The Ironwood root in roots is ignored by all versions before V3 (NU6.3).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".