Merge 1c177c3a00 into merged_master (Bitcoin PR #16015)

This commit is contained in:
Andrew Poelstra 2020-10-29 20:55:17 +00:00
commit a835ebdb2f

View file

@ -4602,6 +4602,7 @@ bool RewindBlockIndex(const CChainParams& params) {
return false;
}
LOCK(cs_main);
if (::ChainActive().Tip() != nullptr) {
// FlushStateToDisk can possibly read ::ChainActive(). Be conservative
// and skip it here, we're about to -reindex-chainstate anyway, so