diff options
author | John Newbery <john@johnnewbery.com> | 2021-08-24 11:47:17 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-08-27 11:01:43 +0100 |
commit | 5840476714ffebb2599999c85a23b52ebcff6090 (patch) | |
tree | 9b3daa8e0ade595d00a092984ad09c422f5e0e85 /src/addrman.cpp | |
parent | f9002cb5dbd573cd9ca200de21319fa296e26055 (diff) | |
download | bitcoin-5840476714ffebb2599999c85a23b52ebcff6090.tar.xz |
[addrman] Make m_asmap private
Add a GetAsmap() getter function that returns a reference to const.
Diffstat (limited to 'src/addrman.cpp')
-rw-r--r-- | src/addrman.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp index 03818213fe..67473ab2aa 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -78,10 +78,10 @@ double CAddrInfo::GetChance(int64_t nNow) const } CAddrMan::CAddrMan(std::vector<bool> asmap, bool deterministic, int32_t consistency_check_ratio) - : m_asmap{std::move(asmap)} - , insecure_rand{deterministic} + : insecure_rand{deterministic} , nKey{deterministic ? uint256{1} : insecure_rand.rand256()} , m_consistency_check_ratio{consistency_check_ratio} + , m_asmap{std::move(asmap)} { for (auto& bucket : vvNew) { for (auto& entry : bucket) { |