@@ -946,7 +946,7 @@ bool CConnman::AttemptToEvictConnection()
946
946
continue ;
947
947
if (node->fDisconnect )
948
948
continue ;
949
- NodeEvictionCandidate candidate = {node->id , node->nTimeConnected , node->nMinPingUsecTime ,
949
+ NodeEvictionCandidate candidate = {node->GetId () , node->nTimeConnected , node->nMinPingUsecTime ,
950
950
node->nLastBlockTime , node->nLastTXTime ,
951
951
(node->nServices & nRelevantServices) == nRelevantServices,
952
952
node->fRelayTxes , node->pfilter != NULL , node->addr , node->nKeyedNetGroup };
@@ -1372,7 +1372,7 @@ void CConnman::ThreadSocketHandler()
1372
1372
{
1373
1373
if (pnode->nLastRecv == 0 || pnode->nLastSend == 0 )
1374
1374
{
1375
- LogPrint (BCLog::NET, " socket no message in first 60 seconds, %d %d from %d\n " , pnode->nLastRecv != 0 , pnode->nLastSend != 0 , pnode->id );
1375
+ LogPrint (BCLog::NET, " socket no message in first 60 seconds, %d %d from %d\n " , pnode->nLastRecv != 0 , pnode->nLastSend != 0 , pnode->GetId () );
1376
1376
pnode->fDisconnect = true ;
1377
1377
}
1378
1378
else if (nTime - pnode->nLastSend > TIMEOUT_INTERVAL)
@@ -1392,7 +1392,7 @@ void CConnman::ThreadSocketHandler()
1392
1392
}
1393
1393
else if (!pnode->fSuccessfullyConnected )
1394
1394
{
1395
- LogPrintf (" version handshake timeout from %d\n " , pnode->id );
1395
+ LogPrintf (" version handshake timeout from %d\n " , pnode->GetId () );
1396
1396
pnode->fDisconnect = true ;
1397
1397
}
1398
1398
}
@@ -2485,7 +2485,7 @@ bool CConnman::DisconnectNode(NodeId id)
2485
2485
{
2486
2486
LOCK (cs_vNodes);
2487
2487
for (CNode* pnode : vNodes) {
2488
- if (id == pnode->id ) {
2488
+ if (id == pnode->GetId () ) {
2489
2489
pnode->fDisconnect = true ;
2490
2490
return true ;
2491
2491
}
@@ -2742,7 +2742,7 @@ void CConnman::PushMessage(CNode* pnode, CSerializedNetMsg&& msg)
2742
2742
{
2743
2743
size_t nMessageSize = msg.data .size ();
2744
2744
size_t nTotalSize = nMessageSize + CMessageHeader::HEADER_SIZE;
2745
- LogPrint (BCLog::NET, " sending %s (%d bytes) peer=%d\n " , SanitizeString (msg.command .c_str ()), nMessageSize, pnode->id );
2745
+ LogPrint (BCLog::NET, " sending %s (%d bytes) peer=%d\n " , SanitizeString (msg.command .c_str ()), nMessageSize, pnode->GetId () );
2746
2746
2747
2747
std::vector<unsigned char > serializedHeader;
2748
2748
serializedHeader.reserve (CMessageHeader::HEADER_SIZE);
@@ -2780,7 +2780,7 @@ bool CConnman::ForNode(NodeId id, std::function<bool(CNode* pnode)> func)
2780
2780
CNode* found = nullptr ;
2781
2781
LOCK (cs_vNodes);
2782
2782
for (auto && pnode : vNodes) {
2783
- if (pnode->id == id) {
2783
+ if (pnode->GetId () == id) {
2784
2784
found = pnode;
2785
2785
break ;
2786
2786
}
0 commit comments