mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
[net processing] Add ChainSyncTimeoutState default initializers
Moves the default values closer to the member definitions.
This commit is contained in:
parent
55966e0cc0
commit
6927933782
1 changed files with 5 additions and 5 deletions
|
@ -575,16 +575,16 @@ struct CNodeState {
|
||||||
*/
|
*/
|
||||||
struct ChainSyncTimeoutState {
|
struct ChainSyncTimeoutState {
|
||||||
//! A timeout used for checking whether our peer has sufficiently synced
|
//! A timeout used for checking whether our peer has sufficiently synced
|
||||||
int64_t m_timeout;
|
int64_t m_timeout{0};
|
||||||
//! A header with the work we require on our peer's chain
|
//! A header with the work we require on our peer's chain
|
||||||
const CBlockIndex * m_work_header;
|
const CBlockIndex* m_work_header{nullptr};
|
||||||
//! After timeout is reached, set to true after sending getheaders
|
//! After timeout is reached, set to true after sending getheaders
|
||||||
bool m_sent_getheaders;
|
bool m_sent_getheaders{false};
|
||||||
//! Whether this peer is protected from disconnection due to a bad/slow chain
|
//! Whether this peer is protected from disconnection due to a bad/slow chain
|
||||||
bool m_protect;
|
bool m_protect{false};
|
||||||
};
|
};
|
||||||
|
|
||||||
ChainSyncTimeoutState m_chain_sync{0, nullptr, false, false};
|
ChainSyncTimeoutState m_chain_sync;
|
||||||
|
|
||||||
//! Time of last new block announcement
|
//! Time of last new block announcement
|
||||||
int64_t m_last_block_announcement{0};
|
int64_t m_last_block_announcement{0};
|
||||||
|
|
Loading…
Reference in a new issue