Function zebra_state::service::check::anchors::tx_anchors_refer_to_final_treestates
source ยท pub(crate) fn tx_anchors_refer_to_final_treestates(
finalized_state: &ZebraDb,
parent_chain: Option<&Arc<Chain>>,
unmined_tx: &UnminedTx,
) -> Result<(), ValidateContextError>
Expand description
Accepts a ZebraDb
, an optional Option<Arc<Chain>>
, and an UnminedTx
.
Checks the final Sprout, Sapling and Orchard anchors specified in the UnminedTx
.
This method checks for anchors computed from the final treestate of each block in
the parent_chain
or finalized_state
.