Log the sizes of various datastructures about nullifiers when NullifierCount() is called, if -zdebug

This commit is contained in:
Duke Leto
2020-01-02 12:46:35 -05:00
parent cc3e1c11d7
commit c0ca9ee8fe
4 changed files with 18 additions and 6 deletions

View File

@@ -52,6 +52,11 @@ void CCoins::CalcMaskSize(unsigned int &nBytes, unsigned int &nNonzeroBytes) con
nBytes += nLastUsedByte;
}
CNullifiersMap CCoinsViewCache::getNullifiers()
{
return cacheSaplingNullifiers;
}
bool CCoins::Spend(uint32_t nPos)
{
if (nPos >= vout.size() || vout[nPos].IsNull())