Another cleanup.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2020-07-14 01:00:18 +01:00
parent 57409b7d2b
commit 0b0c84f4c9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}