aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2017-09-05 17:32:06 -0700
committerGregory Sanders <gsanders87@gmail.com>2017-09-05 17:32:06 -0700
commitb86a42077a134888c53bfd406b87bf0a39c78264 (patch)
tree610d33bb72d2cf9bf2017633870f1ef7b8a1b5b4 /src/addrman.h
parent3f726c99f819f97f2ab21b94d34c6b3129cd883a (diff)
when clearing addrman clear mapInfo and mapAddr
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/addrman.h b/src/addrman.h
index 547088aedf..18f3062287 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -472,6 +472,8 @@ public:
nTried = 0;
nNew = 0;
nLastGood = 1; //Initially at 1 so that "never" is strictly worse.
+ mapInfo.clear();
+ mapAddr.clear();
}
CAddrMan()