aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-12-06 16:11:39 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-12-06 18:44:31 +0000
commit31b136e5802e1b1e5f9a9589736afe0652f34da2 (patch)
tree9779b5d95f79318082347ed7f762a53e0fdb6016 /src/addrman.cpp
parent1c65c075ee4c7f98d9c1fac5ed7576b96374d4e9 (diff)
Don't declare de facto const reference variables as non-const
Diffstat (limited to 'src/addrman.cpp')
-rw-r--r--src/addrman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp
index 7636c6bad2..ed7fccc0ff 100644
--- a/src/addrman.cpp
+++ b/src/addrman.cpp
@@ -617,7 +617,7 @@ CAddrInfo CAddrMan::SelectTriedCollision_()
return CAddrInfo();
}
- CAddrInfo& newInfo = mapInfo[id_new];
+ const CAddrInfo& newInfo = mapInfo[id_new];
// which tried bucket to move the entry to
int tried_bucket = newInfo.GetTriedBucket(nKey, m_asmap);