Skip to content

Commit 49e0112

Browse files
instagibbsrandom-zebra
authored andcommitted
when clearing addrman clear mapInfo and mapAddr
1 parent 2768e98 commit 49e0112

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/addrman.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ class CAddrMan
480480
nTried = 0;
481481
nNew = 0;
482482
nLastGood = 1; //Initially at 1 so that "never" is strictly worse.
483+
mapInfo.clear();
484+
mapAddr.clear();
483485
}
484486

485487
CAddrMan()

0 commit comments

Comments
 (0)