Add support for Sapling anchor checks in mempool consistency checks.

This commit is contained in:
Sean Bowe 2018-05-06 23:29:29 -06:00
parent 1f8be05b63
commit b4ff707605
1 changed files with 3 additions and 1 deletions

View File

@ -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)