@@ -875,7 +875,7 @@ bool PeerManager::GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats) {
875
875
PeerRef peer = GetPeerRef (nodeid);
876
876
if (peer == nullptr ) return false ;
877
877
stats.m_misbehavior_score = WITH_LOCK (peer->m_misbehavior_mutex , return peer->m_misbehavior_score );
878
- stats.nStartingHeight = peer->nStartingHeight ;
878
+ stats.m_starting_height = peer->m_starting_height ;
879
879
880
880
return true ;
881
881
}
@@ -1863,7 +1863,7 @@ void PeerManager::ProcessHeadersMessage(CNode& pfrom, const Peer& peer,
1863
1863
// TODO: optimize: if pindexLast is an ancestor of ::ChainActive().Tip or pindexBestHeader, continue
1864
1864
// from there instead.
1865
1865
LogPrint (BCLog::NET, " more getheaders (%d) to end to peer=%d (startheight:%d)\n " ,
1866
- pindexLast->nHeight , pfrom.GetId (), peer.nStartingHeight );
1866
+ pindexLast->nHeight , pfrom.GetId (), peer.m_starting_height );
1867
1867
m_connman.PushMessage (&pfrom, msgMaker.Make (NetMsgType::GETHEADERS, ::ChainActive ().GetLocator (pindexLast), uint256 ()));
1868
1868
}
1869
1869
@@ -2289,7 +2289,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
2289
2289
ServiceFlags nServices;
2290
2290
int nVersion;
2291
2291
std::string cleanSubVer;
2292
- int nStartingHeight = -1 ;
2292
+ int starting_height = -1 ;
2293
2293
bool fRelay = true ;
2294
2294
2295
2295
vRecv >> nVersion >> nServiceInt >> nTime >> addrMe;
@@ -2320,7 +2320,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
2320
2320
cleanSubVer = SanitizeString (strSubVer);
2321
2321
}
2322
2322
if (!vRecv.empty ()) {
2323
- vRecv >> nStartingHeight ;
2323
+ vRecv >> starting_height ;
2324
2324
}
2325
2325
if (!vRecv.empty ())
2326
2326
vRecv >> fRelay ;
@@ -2369,7 +2369,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
2369
2369
LOCK (pfrom.cs_SubVer );
2370
2370
pfrom.cleanSubVer = cleanSubVer;
2371
2371
}
2372
- peer->nStartingHeight = nStartingHeight ;
2372
+ peer->m_starting_height = starting_height ;
2373
2373
2374
2374
// set nodes not relaying blocks and tx and not serving (parts) of the historical blockchain as "clients"
2375
2375
pfrom.fClient = (!(nServices & NODE_NETWORK) && !(nServices & NODE_NETWORK_LIMITED));
@@ -2449,7 +2449,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
2449
2449
2450
2450
LogPrint (BCLog::NET, " receive version message: %s: version %d, blocks=%d, us=%s, peer=%d%s\n " ,
2451
2451
cleanSubVer, pfrom.nVersion ,
2452
- peer->nStartingHeight , addrMe.ToString (), pfrom.GetId (),
2452
+ peer->m_starting_height , addrMe.ToString (), pfrom.GetId (),
2453
2453
remoteAddr);
2454
2454
2455
2455
int64_t nTimeOffset = nTime - GetTime ();
@@ -2483,7 +2483,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
2483
2483
2484
2484
if (!pfrom.IsInboundConn ()) {
2485
2485
LogPrintf (" New outbound peer connected: version: %d, blocks=%d, peer=%d%s (%s)\n " ,
2486
- pfrom.nVersion .load (), peer->nStartingHeight ,
2486
+ pfrom.nVersion .load (), peer->m_starting_height ,
2487
2487
pfrom.GetId (), (fLogIPs ? strprintf (" , peeraddr=%s" , pfrom.addr .ToString ()) : " " ),
2488
2488
pfrom.ConnectionTypeAsString ());
2489
2489
}
@@ -4202,7 +4202,7 @@ bool PeerManager::SendMessages(CNode* pto)
4202
4202
got back an empty response. */
4203
4203
if (pindexStart->pprev )
4204
4204
pindexStart = pindexStart->pprev ;
4205
- LogPrint (BCLog::NET, " initial getheaders (%d) to peer=%d (startheight:%d)\n " , pindexStart->nHeight , pto->GetId (), peer->nStartingHeight );
4205
+ LogPrint (BCLog::NET, " initial getheaders (%d) to peer=%d (startheight:%d)\n " , pindexStart->nHeight , pto->GetId (), peer->m_starting_height );
4206
4206
m_connman.PushMessage (pto, msgMaker.Make (NetMsgType::GETHEADERS, ::ChainActive ().GetLocator (pindexStart), uint256 ()));
4207
4207
}
4208
4208
}
0 commit comments