aboutsummaryrefslogtreecommitdiff
path: root/src/txrequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/txrequest.cpp')
-rw-r--r--src/txrequest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/txrequest.cpp b/src/txrequest.cpp
index b9a41f26ff..ce5fbd9a7f 100644
--- a/src/txrequest.cpp
+++ b/src/txrequest.cpp
@@ -73,7 +73,7 @@ struct Announcement {
const bool m_is_wtxid : 1;
/** What state this announcement is in. */
- State m_state : 3;
+ State m_state : 3 {State::CANDIDATE_DELAYED};
State GetState() const { return m_state; }
void SetState(State state) { m_state = state; }
@@ -97,9 +97,9 @@ struct Announcement {
/** Construct a new announcement from scratch, initially in CANDIDATE_DELAYED state. */
Announcement(const GenTxid& gtxid, NodeId peer, bool preferred, std::chrono::microseconds reqtime,
- SequenceNumber sequence) :
- m_txhash(gtxid.GetHash()), m_time(reqtime), m_peer(peer), m_sequence(sequence), m_preferred(preferred),
- m_is_wtxid{gtxid.IsWtxid()}, m_state{State::CANDIDATE_DELAYED} {}
+ SequenceNumber sequence)
+ : m_txhash(gtxid.GetHash()), m_time(reqtime), m_peer(peer), m_sequence(sequence), m_preferred(preferred),
+ m_is_wtxid{gtxid.IsWtxid()} {}
};
//! Type alias for priorities.