Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2328: Always flush block and undo when switching to new file
ab4f184 Fixed integer comparison warning. (Eric Lombrozo) 189d8b7 Always flush block and undo when switching to new file (Pieter Wuille) Pull request description: Fixing a possible blocks db corruption cause. > 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 behavior to always flush when switching to a new file (even for block files, though that isn't really necessary). Coming from bitcoin#6948. ACKs for top commit: random-zebra: utACK ab4f184 Fuzzbawls: ACK ab4f184 Tree-SHA512: c544861e74015afab3cb7162fd49f478e455f7a7b0bfa19c9e3c74ccccd343130dab770fe5a2ad88e017889fe075da999caa89bb06dc669d41d7ba573295cbea
- Loading branch information