This commit is contained in:
jl777
2017-04-26 19:20:43 +03:00
parent 59e66272c8
commit 45a93b635e
2 changed files with 4 additions and 3 deletions

View File

@@ -642,6 +642,7 @@ void CWallet::IncrementNoteWitnesses(const CBlockIndex* pindex,
const CBlock* pblockIn,
ZCIncrementalMerkleTree& tree)
{
fprintf(stderr,"A increment witness cache -> %d\n",(int32_t)nWitnessCacheSize);
{
LOCK(cs_wallet);
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
@@ -670,7 +671,7 @@ void CWallet::IncrementNoteWitnesses(const CBlockIndex* pindex,
}
}
if (nWitnessCacheSize < WITNESS_CACHE_SIZE) {
//fprintf(stderr,"increment nWitnesscache -> %d\n",(int32_t)nWitnessCacheSize);
fprintf(stderr,"increment nWitnesscache -> %d\n",(int32_t)nWitnessCacheSize);
nWitnessCacheSize += 1;
}
@@ -784,7 +785,7 @@ void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex)
}
}
}
//fprintf(stderr,"decrement witness cache -> %d\n",(int32_t)nWitnessCacheSize);
fprintf(stderr,"decrement witness cache -> %d\n",(int32_t)nWitnessCacheSize);
nWitnessCacheSize -= 1;
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
for (mapNoteData_t::value_type& item : wtxItem.second.mapNoteData) {