From 716fa23e869ed2836cd5c237016e91b8575200ad Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 22 Jun 2021 11:41:35 +1000 Subject: [PATCH] Document shared to per-spend anchor conversion (#2363) --- zebra-chain/src/transaction.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zebra-chain/src/transaction.rs b/zebra-chain/src/transaction.rs index 40acfd56..f4b1d87e 100644 --- a/zebra-chain/src/transaction.rs +++ b/zebra-chain/src/transaction.rs @@ -323,6 +323,9 @@ impl Transaction { /// returning `Spend` regardless of the underlying /// transaction version. /// + /// Shared anchors in V5 transactions are copied into each sapling spend. + /// This allows the same code to validate spends from V4 and V5 transactions. + /// /// # Correctness /// /// Do not use this function for serialization.