Add support for Sapling anchor checks in mempool consistency checks.
This commit is contained in:
parent
1f8be05b63
commit
b4ff707605
|
@ -413,7 +413,9 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const
|
|||
intermediates.insert(std::make_pair(tree.root(), tree));
|
||||
}
|
||||
for (const SpendDescription &spendDescription : tx.vShieldedSpend) {
|
||||
// TODO: anchor check
|
||||
ZCSaplingIncrementalMerkleTree tree;
|
||||
|
||||
assert(pcoins->GetSaplingAnchorAt(spendDescription.anchor, tree));
|
||||
assert(!pcoins->GetNullifier(spendDescription.nullifier, SAPLING));
|
||||
}
|
||||
if (fDependsWait)
|
||||
|
|
Loading…
Reference in New Issue