File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -754,7 +754,7 @@ const uint256& CNetMessage::GetMessageHash() const
754
754
755
755
756
756
// requires LOCK(cs_vSend)
757
- size_t CConnman::SocketSendData (CNode *pnode)
757
+ size_t CConnman::SocketSendData (CNode *pnode) const
758
758
{
759
759
auto it = pnode->vSendMsg .begin ();
760
760
size_t nSentSize = 0 ;
@@ -2687,12 +2687,12 @@ int64_t PoissonNextSend(int64_t nNow, int average_interval_seconds) {
2687
2687
return nNow + (int64_t )(log1p (GetRand (1ULL << 48 ) * -0.0000000000000035527136788 /* -1/2^48 */ ) * average_interval_seconds * -1000000.0 + 0.5 );
2688
2688
}
2689
2689
2690
- CSipHasher CConnman::GetDeterministicRandomizer (uint64_t id)
2690
+ CSipHasher CConnman::GetDeterministicRandomizer (uint64_t id) const
2691
2691
{
2692
2692
return CSipHasher (nSeed0, nSeed1).Write (id);
2693
2693
}
2694
2694
2695
- uint64_t CConnman::CalculateKeyedNetGroup (const CAddress& ad)
2695
+ uint64_t CConnman::CalculateKeyedNetGroup (const CAddress& ad) const
2696
2696
{
2697
2697
std::vector<unsigned char > vchNetGroup (ad.GetGroup ());
2698
2698
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ class CConnman
321
321
int GetBestHeight () const ;
322
322
323
323
/* * Get a unique deterministic randomizer. */
324
- CSipHasher GetDeterministicRandomizer (uint64_t id);
324
+ CSipHasher GetDeterministicRandomizer (uint64_t id) const ;
325
325
326
326
unsigned int GetReceiveFloodSize () const ;
327
327
@@ -342,7 +342,7 @@ class CConnman
342
342
void ThreadSocketHandler ();
343
343
void ThreadDNSAddressSeed ();
344
344
345
- uint64_t CalculateKeyedNetGroup (const CAddress& ad);
345
+ uint64_t CalculateKeyedNetGroup (const CAddress& ad) const ;
346
346
347
347
CNode* FindNode (const CNetAddr& ip);
348
348
CNode* FindNode (const CSubNet& subNet);
@@ -357,7 +357,7 @@ class CConnman
357
357
358
358
NodeId GetNewNodeId ();
359
359
360
- size_t SocketSendData (CNode *pnode);
360
+ size_t SocketSendData (CNode *pnode) const ;
361
361
// !check is the banlist has unwritten changes
362
362
bool BannedSetIsDirty ();
363
363
// !set the "dirty" flag for the banlist
You can’t perform that action at this time.
0 commit comments