This commit is contained in:
jl777
2016-12-03 12:01:28 -03:00
parent 8432a64f0e
commit 57d9cfcc31
3 changed files with 2 additions and 3 deletions

View File

@@ -776,7 +776,7 @@ void CWallet::DecrementNoteWitnesses()
extern char ASSETCHAINS_SYMBOL[16];
fprintf(stderr,"%s nWitnessCacheSize.%d\n",ASSETCHAINS_SYMBOL,(int32_t)nWitnessCacheSize);
}
if ( KOMODO_REWIND == 0 )
if ( KOMODO_REWIND == 0 || chainActive.Tip()->nHeight >= KOMODO_REWIND )
assert(nWitnessCacheSize > 0);
if (fFileBacked) {
CWalletDB walletdb(strWalletFile);