aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-03-31 18:37:52 +0100
committerJohn Newbery <john@johnnewbery.com>2021-07-20 13:12:42 +0100
commita28bfd1d4cfa523a6abf3832dbfd6183cd546944 (patch)
tree3e5a7e64773d780ada0dece78e36432003e9048a /src/net_processing.cpp
parent9190b01d8dcf03b74e9b9e1653688a97ac171b37 (diff)
downloadbitcoin-a28bfd1d4cfa523a6abf3832dbfd6183cd546944.tar.xz
[net processing] Default initialize m_stale_tip_check_time
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index c2202c73da..6a1cd7f022 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -396,7 +396,8 @@ private:
/** The height of the best chain */
std::atomic<int> m_best_height{-1};
- int64_t m_stale_tip_check_time; //!< Next time to check for stale tip
+ /** Next time to check for stale tip */
+ int64_t m_stale_tip_check_time{0};
/** Whether this node is running in blocks only mode */
const bool m_ignore_incoming_txs;
@@ -1393,7 +1394,6 @@ PeerManagerImpl::PeerManagerImpl(const CChainParams& chainparams, CConnman& conn
m_banman(banman),
m_chainman(chainman),
m_mempool(pool),
- m_stale_tip_check_time(0),
m_ignore_incoming_txs(ignore_incoming_txs)
{
// Initialize global variables that cannot be constructed at startup.