This commit is contained in:
jl777
2016-10-29 15:17:51 -03:00
parent 4f0c9cecb6
commit 65195b3ed7

View File

@@ -771,6 +771,11 @@ void CWallet::DecrementNoteWitnesses()
}
// TODO: If nWitnessCache is zero, we need to regenerate the caches (#1302)
assert(nWitnessCacheSize > 0);
if ( nWitnessCacheSize <= 0 )
{
extern char ASSETCHAINS_SYMBOL[16];
fprintf(stderr,"%s nWitnessCacheSize.%d\n",ASSETCHAINS_SYMBOL,(int32_t)nWitnessCacheSize);
}
if (fFileBacked) {
CWalletDB walletdb(strWalletFile);
WriteWitnessCache(walletdb);