Skip to content

Commit b86a420

Browse files
committed
when clearing addrman clear mapInfo and mapAddr
1 parent 3f726c9 commit b86a420

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
@@ -472,6 +472,8 @@ class CAddrMan
472472
nTried = 0;
473473
nNew = 0;
474474
nLastGood = 1; //Initially at 1 so that "never" is strictly worse.
475+
mapInfo.clear();
476+
mapAddr.clear();
475477
}
476478

477479
CAddrMan()

0 commit comments

Comments
 (0)