diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2023-10-05 15:09:45 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2023-10-05 15:10:32 +0200 |
commit | 64d6f77907afd461d9b14ee10ab32335f4454734 (patch) | |
tree | 2f5a5ede805ecea6e50746c3beee4ea51d224482 /src/netgroup.cpp | |
parent | 78fd3c2672400fb958f2d25ddd40955c7deed4cd (diff) | |
download | bitcoin-64d6f77907afd461d9b14ee10ab32335f4454734.tar.xz |
net: put CJDNS prefix byte in a constant
Diffstat (limited to 'src/netgroup.cpp')
-rw-r--r-- | src/netgroup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netgroup.cpp b/src/netgroup.cpp index 2d4d231f2b..a03927b152 100644 --- a/src/netgroup.cpp +++ b/src/netgroup.cpp @@ -52,8 +52,8 @@ std::vector<unsigned char> NetGroupManager::GetGroup(const CNetAddr& address) co } else if (address.IsCJDNS()) { // Treat in the same way as Tor and I2P because the address in all of // them is "random" bytes (derived from a public key). However in CJDNS - // the first byte is a constant 0xfc, so the random bytes come after it. - // Thus skip the constant 8 bits at the start. + // the first byte is a constant (see CJDNS_PREFIX), so the random bytes + // come after it. Thus skip the constant 8 bits at the start. nBits = 12; } else if (address.IsHeNet()) { // for he.net, use /36 groups |