This commit is contained in:
jl777
2017-04-26 18:51:17 +03:00
parent af50ce3fab
commit c7ede30fe0

View File

@@ -811,10 +811,10 @@ void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex)
}
if ( KOMODO_REWIND == 0 )
assert(nWitnessCacheSize > 0);
if (fFileBacked) {
CWalletDB walletdb(strWalletFile);
WriteWitnessCache(walletdb);
}
//if (fFileBacked) {
// CWalletDB walletdb(strWalletFile);
// WriteWitnessCache(walletdb);
//}
// For performance reasons, we write out the witness cache in
// CWallet::SetBestChain() (which also ensures that overall consistency
// of the wallet.dat is maintained).