From 0b0c84f4c9d8223bcb2ac22547d86e05ac74eebf Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 14 Jul 2020 01:00:18 +0100 Subject: [PATCH] Another cleanup. Signed-off-by: Daira Hopwood --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6ef680597..0d3168ed2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4882,7 +4882,7 @@ bool RewindBlockIndex(const CChainParams& chainparams, bool& clearWitnessCaches) auto ret = mapBlocksUnlinked.equal_range(pindexIter->pprev); while (ret.first != ret.second) { if (ret.first->second == pindexIter) { - mapBlocksUnlinked.erase(ret.first++); + ret.first = mapBlocksUnlinked.erase(ret.first); } else { ++ret.first; }