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