aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2020-08-11 13:39:56 +0300
committerGleb Naumenko <naumenko.gs@gmail.com>2020-09-02 10:33:17 +0300
commit83ad65f31b5c9441ae1618614082e584854a14e1 (patch)
tree84a31614121e669ba64148876c0d4dd5aade0312 /src/net.h
parent81b00f87800f40cb14f2131ff27668bd2bb9e551 (diff)
downloadbitcoin-83ad65f31b5c9441ae1618614082e584854a14e1.tar.xz
Address nits in ADDR caching
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net.h b/src/net.h
index c9ab579eb2..21faea591a 100644
--- a/src/net.h
+++ b/src/net.h
@@ -442,7 +442,7 @@ private:
*/
struct CachedAddrResponse {
std::vector<CAddress> m_addrs_response_cache;
- std::chrono::microseconds m_update_addr_response{0};
+ std::chrono::microseconds m_cache_entry_expiration{0};
};
/**
@@ -454,10 +454,10 @@ private:
* Indexing by local socket prevents leakage when a node has multiple
* listening addresses on the same network.
*
- * The used memory equals to 1000 CAddress records (or around 32 bytes) per
+ * The used memory equals to 1000 CAddress records (or around 40 bytes) per
* distinct Network (up to 5) we have/had an inbound peer from,
- * resulting in at most ~160 KB. Every separate local socket may
- * add up to ~160 KB extra.
+ * resulting in at most ~196 KB. Every separate local socket may
+ * add up to ~196 KB extra.
*/
std::map<uint64_t, CachedAddrResponse> m_addr_response_caches;