Another cleanup.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
57409b7d2b
commit
0b0c84f4c9
|
@ -4882,7 +4882,7 @@ bool RewindBlockIndex(const CChainParams& chainparams, bool& clearWitnessCaches)
|
||||||
auto ret = mapBlocksUnlinked.equal_range(pindexIter->pprev);
|
auto ret = mapBlocksUnlinked.equal_range(pindexIter->pprev);
|
||||||
while (ret.first != ret.second) {
|
while (ret.first != ret.second) {
|
||||||
if (ret.first->second == pindexIter) {
|
if (ret.first->second == pindexIter) {
|
||||||
mapBlocksUnlinked.erase(ret.first++);
|
ret.first = mapBlocksUnlinked.erase(ret.first);
|
||||||
} else {
|
} else {
|
||||||
++ret.first;
|
++ret.first;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue