mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-06 09:50:55 +02:00
[net processing] Default initialize m_stale_tip_check_time
This commit is contained in:
parent
9190b01d8d
commit
a28bfd1d4c
@ -396,7 +396,8 @@ private:
|
|||||||
/** The height of the best chain */
|
/** The height of the best chain */
|
||||||
std::atomic<int> m_best_height{-1};
|
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 */
|
/** Whether this node is running in blocks only mode */
|
||||||
const bool m_ignore_incoming_txs;
|
const bool m_ignore_incoming_txs;
|
||||||
@ -1393,7 +1394,6 @@ PeerManagerImpl::PeerManagerImpl(const CChainParams& chainparams, CConnman& conn
|
|||||||
m_banman(banman),
|
m_banman(banman),
|
||||||
m_chainman(chainman),
|
m_chainman(chainman),
|
||||||
m_mempool(pool),
|
m_mempool(pool),
|
||||||
m_stale_tip_check_time(0),
|
|
||||||
m_ignore_incoming_txs(ignore_incoming_txs)
|
m_ignore_incoming_txs(ignore_incoming_txs)
|
||||||
{
|
{
|
||||||
// Initialize global variables that cannot be constructed at startup.
|
// Initialize global variables that cannot be constructed at startup.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user