Decrement notes for assetchains, need to test

This commit is contained in:
jl777
2018-04-20 00:23:58 +03:00
parent ec5b59fd30
commit 8eb43ab4ff
2 changed files with 2 additions and 2 deletions

View File

@@ -414,7 +414,7 @@ void CWallet::ChainTip(const CBlockIndex *pindex, const CBlock *pblock,
{
if (added) {
IncrementNoteWitnesses(pindex, pblock, tree);
} else if ( ASSETCHAINS_SYMBOL[0] == 0 || nWitnessCacheSize > 1 ){
} else if ( nWitnessCacheSize > 1 ){ //ASSETCHAINS_SYMBOL[0] == 0 ||
DecrementNoteWitnesses(pindex);
} else fprintf(stderr,"would have decremented %s nWitnessCacheSize.%d\n",ASSETCHAINS_SYMBOL,(int32_t)nWitnessCacheSize);
}