mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-18 02:51:06 +00:00
Merge #11252: [P2P] When clearing addrman clear mapInfo and mapAddr.
b86a42077 when clearing addrman clear mapInfo and mapAddr (Gregory Sanders)
Pull request description:
Power failure on my machine resulted in a corrupted addrman that would hit bad assertions when trying to serialize the "cleared" addrman to disk: 6866b4912b/src/addrman.h (L320)
Tree-SHA512: 07ca8b6cbd88407e5f3f0dccb346ae31bd1392f4210b2d5c5647c853986bfec95cf70240b92bafdc61b90e452a5d8315962738d10c10c2b53fdabff10503d05a
This commit is contained in:
commit
b9bceaf1c0
@ -472,6 +472,8 @@ public:
|
|||||||
nTried = 0;
|
nTried = 0;
|
||||||
nNew = 0;
|
nNew = 0;
|
||||||
nLastGood = 1; //Initially at 1 so that "never" is strictly worse.
|
nLastGood = 1; //Initially at 1 so that "never" is strictly worse.
|
||||||
|
mapInfo.clear();
|
||||||
|
mapAddr.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
CAddrMan()
|
CAddrMan()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user