diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2017-01-24 02:32:52 +0100 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2017-01-31 23:20:26 +0100 |
commit | d45955fa0992639d6c9856a73c5f7599cc14f811 (patch) | |
tree | a0a9863ae62314e35fe33f572cda41b9cdfc0d13 /src/net.cpp | |
parent | e99f0d7ad443ff72087c6f80e9fab65cace0bf19 (diff) |
Net: CConnman: Make some methods const
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net.cpp b/src/net.cpp index df88b12c76..5a5d94cd11 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -754,7 +754,7 @@ const uint256& CNetMessage::GetMessageHash() const // requires LOCK(cs_vSend) -size_t CConnman::SocketSendData(CNode *pnode) +size_t CConnman::SocketSendData(CNode *pnode) const { auto it = pnode->vSendMsg.begin(); size_t nSentSize = 0; @@ -2687,12 +2687,12 @@ int64_t PoissonNextSend(int64_t nNow, int average_interval_seconds) { return nNow + (int64_t)(log1p(GetRand(1ULL << 48) * -0.0000000000000035527136788 /* -1/2^48 */) * average_interval_seconds * -1000000.0 + 0.5); } -CSipHasher CConnman::GetDeterministicRandomizer(uint64_t id) +CSipHasher CConnman::GetDeterministicRandomizer(uint64_t id) const { return CSipHasher(nSeed0, nSeed1).Write(id); } -uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& ad) +uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& ad) const { std::vector<unsigned char> vchNetGroup(ad.GetGroup()); |