Skip to content

Commit a28bfd1

Browse files
committed
[net processing] Default initialize m_stale_tip_check_time
1 parent 9190b01 commit a28bfd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ class PeerManagerImpl final : public PeerManager
396396
/** The height of the best chain */
397397
std::atomic<int> m_best_height{-1};
398398

399-
int64_t m_stale_tip_check_time; //!< Next time to check for stale tip
399+
/** Next time to check for stale tip */
400+
int64_t m_stale_tip_check_time{0};
400401

401402
/** Whether this node is running in blocks only mode */
402403
const bool m_ignore_incoming_txs;
@@ -1393,7 +1394,6 @@ PeerManagerImpl::PeerManagerImpl(const CChainParams& chainparams, CConnman& conn
13931394
m_banman(banman),
13941395
m_chainman(chainman),
13951396
m_mempool(pool),
1396-
m_stale_tip_check_time(0),
13971397
m_ignore_incoming_txs(ignore_incoming_txs)
13981398
{
13991399
// Initialize global variables that cannot be constructed at startup.

0 commit comments

Comments
 (0)