@@ -1215,7 +1215,7 @@ bool PeerManager::GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats) {
1215
1215
if (peer == nullptr ) {
1216
1216
return false ;
1217
1217
}
1218
- stats.nStartingHeight = peer->nStartingHeight ;
1218
+ stats.m_starting_height = peer->m_starting_height ;
1219
1219
1220
1220
return true ;
1221
1221
}
@@ -2410,7 +2410,7 @@ void PeerManager::ProcessHeadersMessage(
2410
2410
LogPrint (
2411
2411
BCLog::NET,
2412
2412
" more getheaders (%d) to end to peer=%d (startheight:%d)\n " ,
2413
- pindexLast->nHeight , pfrom.GetId (), peer.nStartingHeight );
2413
+ pindexLast->nHeight , pfrom.GetId (), peer.m_starting_height );
2414
2414
m_connman.PushMessage (
2415
2415
&pfrom, msgMaker.Make (NetMsgType::GETHEADERS,
2416
2416
::ChainActive ().GetLocator(pindexLast),
@@ -2939,7 +2939,7 @@ void PeerManager::ProcessMessage(const Config &config, CNode &pfrom,
2939
2939
ServiceFlags nServices;
2940
2940
int nVersion;
2941
2941
std::string cleanSubVer;
2942
- int nStartingHeight = -1 ;
2942
+ int starting_height = -1 ;
2943
2943
bool fRelay = true ;
2944
2944
uint64_t nExtraEntropy = 1 ;
2945
2945
@@ -2977,7 +2977,7 @@ void PeerManager::ProcessMessage(const Config &config, CNode &pfrom,
2977
2977
cleanSubVer = SanitizeString (strSubVer);
2978
2978
}
2979
2979
if (!vRecv.empty ()) {
2980
- vRecv >> nStartingHeight ;
2980
+ vRecv >> starting_height ;
2981
2981
}
2982
2982
if (!vRecv.empty ()) {
2983
2983
vRecv >> fRelay ;
@@ -3021,7 +3021,7 @@ void PeerManager::ProcessMessage(const Config &config, CNode &pfrom,
3021
3021
LOCK (pfrom.cs_SubVer );
3022
3022
pfrom.cleanSubVer = cleanSubVer;
3023
3023
}
3024
- peer->nStartingHeight = nStartingHeight ;
3024
+ peer->m_starting_height = starting_height ;
3025
3025
3026
3026
// set nodes not relaying blocks and tx and not serving (parts) of the
3027
3027
// historical blockchain as "clients"
@@ -3110,7 +3110,7 @@ void PeerManager::ProcessMessage(const Config &config, CNode &pfrom,
3110
3110
" receive version message: [%s] %s: version %d, blocks=%d, "
3111
3111
" us=%s, peer=%d%s\n " ,
3112
3112
pfrom.addr .ToString (), cleanSubVer, pfrom.nVersion ,
3113
- peer->nStartingHeight , addrMe.ToString (), pfrom.GetId (),
3113
+ peer->m_starting_height , addrMe.ToString (), pfrom.GetId (),
3114
3114
remoteAddr);
3115
3115
3116
3116
// Ignore time offsets that are improbable (before the Genesis block)
@@ -3150,7 +3150,7 @@ void PeerManager::ProcessMessage(const Config &config, CNode &pfrom,
3150
3150
LogPrintf (
3151
3151
" New outbound peer connected: version: %d, blocks=%d, "
3152
3152
" peer=%d%s (%s)\n " ,
3153
- pfrom.nVersion .load (), peer->nStartingHeight , pfrom.GetId (),
3153
+ pfrom.nVersion .load (), peer->m_starting_height , pfrom.GetId (),
3154
3154
(fLogIPs ? strprintf (" , peeraddr=%s" , pfrom.addr .ToString ())
3155
3155
: " " ),
3156
3156
pfrom.m_tx_relay == nullptr ? " block-relay" : " full-relay" );
@@ -5363,7 +5363,8 @@ bool PeerManager::SendMessages(const Config &config, CNode *pto,
5363
5363
LogPrint (
5364
5364
BCLog::NET,
5365
5365
" initial getheaders (%d) to peer=%d (startheight:%d)\n " ,
5366
- pindexStart->nHeight , pto->GetId (), peer->nStartingHeight );
5366
+ pindexStart->nHeight , pto->GetId (),
5367
+ peer->m_starting_height );
5367
5368
m_connman.PushMessage (
5368
5369
pto, msgMaker.Make (NetMsgType::GETHEADERS,
5369
5370
::ChainActive ().GetLocator(pindexStart),
0 commit comments