diff options
author | John Newbery <john@johnnewbery.com> | 2020-06-16 16:27:34 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-12-20 10:01:46 +0000 |
commit | 78040f91687e7f1986e466d448c9b9530830e9b8 (patch) | |
tree | 258750049a522123b227f34ac4100d3e5525927a /src/net_processing.h | |
parent | 77a2c2f8f91a5c5a140fd970f9a3a142b43902bf (diff) | |
download | bitcoin-78040f91687e7f1986e466d448c9b9530830e9b8.tar.xz |
[net processing] Rename nStartingHeight to m_starting_height
Not done as a scripted diff to avoid misnaming the local variable in
ProcessMessage().
Diffstat (limited to 'src/net_processing.h')
-rw-r--r-- | src/net_processing.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 5af2689f18..5b5d96c03e 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -36,7 +36,7 @@ struct CNodeStateStats { int m_misbehavior_score = 0; int nSyncHeight = -1; int nCommonHeight = -1; - int nStartingHeight = -1; + int m_starting_height = -1; std::vector<int> vHeightInFlight; }; @@ -64,7 +64,7 @@ struct Peer { bool m_should_discourage GUARDED_BY(m_misbehavior_mutex){false}; /** This peer's reported block height when we connected */ - std::atomic<int> nStartingHeight{-1}; + std::atomic<int> m_starting_height{-1}; /** Set of txids to reconsider once their parent transactions have been accepted **/ std::set<uint256> m_orphan_work_set GUARDED_BY(g_cs_orphans); |