undo flushing witness data on shutdown

This fixes wallet_anchorfork.py CI failure, but a separate PR
will restore flushing witness data on shutdown while also
fixing DecrementNoteWitnesses() to not assert when
nd->witnessHeight < indexHeight, which can happen when the
node reorgs upon restart (which this test causes to happen).
This commit is contained in:
Larry Ruane 2020-07-08 07:50:48 -06:00
parent bf568273a7
commit 872af58d59
1 changed files with 0 additions and 3 deletions

View File

@ -229,9 +229,6 @@ void Shutdown()
if (pcoinsTip != NULL) {
FlushStateToDisk();
}
// Flush the wallet witness cache to disk (no longer done by FlushStateToDisk())
GetMainSignals().SetBestChain(chainActive.GetLocator());
delete pcoinsTip;
pcoinsTip = NULL;
delete pcoinscatcher;