diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-12-13 12:32:28 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-13 13:32:08 +0100 |
commit | fad943821e35d0eb2143061e718f0193e12a4c71 (patch) | |
tree | 48a01a43c66c7e0a523acdeab932f82ff35c959d /src/net.h | |
parent | fa663a4c0d20487ed3f7a93e1c2ca9932b05f5a8 (diff) |
scripted-diff: Rename touched member variables
-BEGIN VERIFY SCRIPT-
ren() { sed -i "s/\<$1\>/$2/g" $( git grep -l "$1" ./src/ ) ; }
ren nLastBlockTime m_last_block_time
ren nLastTXTime m_last_tx_time
ren nTimeConnected m_connected
-END VERIFY SCRIPT-
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -243,9 +243,9 @@ public: bool fRelayTxes; std::chrono::seconds m_last_send; std::chrono::seconds m_last_recv; - std::chrono::seconds nLastTXTime; - std::chrono::seconds nLastBlockTime; - std::chrono::seconds nTimeConnected; + std::chrono::seconds m_last_tx_time; + std::chrono::seconds m_last_block_time; + std::chrono::seconds m_connected; int64_t nTimeOffset; std::string m_addr_name; int nVersion; @@ -423,7 +423,7 @@ public: std::atomic<std::chrono::seconds> m_last_send{0s}; std::atomic<std::chrono::seconds> m_last_recv{0s}; //! Unix epoch time at peer connection - const std::chrono::seconds nTimeConnected; + const std::chrono::seconds m_connected; std::atomic<int64_t> nTimeOffset{0}; // Address of this peer const CAddress addr; @@ -562,13 +562,13 @@ public: * preliminary validity checks and was saved to disk, even if we don't * connect the block or it eventually fails connection. Used as an inbound * peer eviction criterium in CConnman::AttemptToEvictConnection. */ - std::atomic<std::chrono::seconds> nLastBlockTime{0s}; + std::atomic<std::chrono::seconds> m_last_block_time{0s}; /** UNIX epoch time of the last transaction received from this peer that we * had not yet seen (e.g. not already received from another peer) and that * was accepted into our mempool. Used as an inbound peer eviction criterium * in CConnman::AttemptToEvictConnection. */ - std::atomic<std::chrono::seconds> nLastTXTime{0s}; + std::atomic<std::chrono::seconds> m_last_tx_time{0s}; /** Last measured round-trip time. Used only for RPC/GUI stats/debugging.*/ std::atomic<std::chrono::microseconds> m_last_ping_time{0us}; @@ -1274,10 +1274,10 @@ void CaptureMessage(const CAddress& addr, const std::string& msg_type, const Spa struct NodeEvictionCandidate { NodeId id; - std::chrono::seconds nTimeConnected; + std::chrono::seconds m_connected; std::chrono::microseconds m_min_ping_time; - std::chrono::seconds nLastBlockTime; - std::chrono::seconds nLastTXTime; + std::chrono::seconds m_last_block_time; + std::chrono::seconds m_last_tx_time; bool fRelevantServices; bool fRelayTxes; bool fBloomFilter; |