aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-08-18 09:45:54 +0100
committerAmiti Uttarwar <amiti@uttarwar.org>2021-08-26 11:56:13 -0700
commit85b15ddc8ff499fe21d8ab35ece3994f8878b3de (patch)
treef2d5df057f4aac2c8aa8580335f6876e09fd6130 /src/addrman.h
parentaf9638a0fbb79bec743f4d2275b89e9573cfdc0a (diff)
downloadbitcoin-85b15ddc8ff499fe21d8ab35ece3994f8878b3de.tar.xz
[refactor] [addrman] Update constant comments
Co-authored-by: Amiti Uttarwar <amiti@uttarwar.org>
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/addrman.h b/src/addrman.h
index b6d115e741..2548b891ba 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -131,15 +131,15 @@ public:
* configuration option will introduce (expensive) consistency checks for the entire data structure.
*/
-//! total number of buckets for tried addresses
+/** Total number of buckets for tried addresses */
static constexpr int32_t ADDRMAN_TRIED_BUCKET_COUNT_LOG2{8};
static constexpr int ADDRMAN_TRIED_BUCKET_COUNT{1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2};
-//! total number of buckets for new addresses
+/** Total number of buckets for new addresses */
static constexpr int32_t ADDRMAN_NEW_BUCKET_COUNT_LOG2{10};
static constexpr int ADDRMAN_NEW_BUCKET_COUNT{1 << ADDRMAN_NEW_BUCKET_COUNT_LOG2};
-//! maximum allowed number of entries in buckets for new and tried addresses
+/** Maximum allowed number of entries in buckets for new and tried addresses */
static constexpr int32_t ADDRMAN_BUCKET_SIZE_LOG2{6};
static constexpr int ADDRMAN_BUCKET_SIZE{1 << ADDRMAN_BUCKET_SIZE_LOG2};