Always flush block and undo when switching to new file
commit22e780737db57bcb18b3824eb8158e19a4775cb6
authorPieter Wuille <pieter.wuille@gmail.com>
Wed, 4 Nov 2015 23:16:49 +0000 (5 00:16 +0100)
committerPieter Wuille <pieter.wuille@gmail.com>
Wed, 4 Nov 2015 23:43:49 +0000 (5 00:43 +0100)
tree56969bf36db75eb79d9fb33c3eea6bb5ae2822ff
parent193f7b553e0ad41e6579adbce867ef14866034b0
Always flush block and undo when switching to new file

Previously, the undo weren't being flushed during a reindex because
fKnown was set to true in FindBlockPos. That is the correct behaviour
for block files as they aren't being touched, but undo files are
touched.

This changes the behaviour to always flush when switching to a new file
(even for block files, though that isn't really necessary).
src/main.cpp