diff options
author | Pieter Wuille <sipa@ulyssis.org> | 2014-05-30 12:01:20 +0200 |
---|---|---|
committer | Pieter Wuille <sipa@ulyssis.org> | 2014-05-30 12:01:53 +0200 |
commit | 5823449e2d7f76fa1f24fed881a8a5041b34b6bf (patch) | |
tree | e54f858c7749be97a9ef1e15c3a30c745339f256 /src/mruset.h | |
parent | 97ab93f50b6f35bc362990e9dd665b90ca4132df (diff) |
Limit number of known addresses per peer
Diffstat (limited to 'src/mruset.h')
-rw-r--r-- | src/mruset.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mruset.h b/src/mruset.h index c36a0c8f37..c1c08b0288 100644 --- a/src/mruset.h +++ b/src/mruset.h @@ -32,6 +32,7 @@ public: bool empty() const { return set.empty(); } iterator find(const key_type& k) const { return set.find(k); } size_type count(const key_type& k) const { return set.count(k); } + void clear() { set.clear(); queue.clear(); } bool inline friend operator==(const mruset<T>& a, const mruset<T>& b) { return a.set == b.set; } bool inline friend operator==(const mruset<T>& a, const std::set<T>& b) { return a.set == b; } bool inline friend operator<(const mruset<T>& a, const mruset<T>& b) { return a.set < b.set; } |