Browse Source

Add support for Sapling anchor checks in mempool consistency checks.

pull/4/head
Sean Bowe 6 years ago
parent
commit
b4ff707605
  1. 4
      src/txmempool.cpp

4
src/txmempool.cpp

@ -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…
Cancel
Save