aboutsummaryrefslogtreecommitdiff
path: root/src/headerssync.cpp
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2022-12-12 21:05:33 +0000
committerdergoegge <n.goeggi@gmail.com>2022-12-12 21:06:04 +0000
commit53552affca381cdb5103ecdbcc7f3fb562e66ac4 (patch)
tree294e419b4e04ef1f222a450cedd57cf6d738d1a3 /src/headerssync.cpp
parent5b3f05b7eb76f4c973149649d94c5e91d5cb4c1b (diff)
[headerssync] Make m_commit_offset protected
Diffstat (limited to 'src/headerssync.cpp')
-rw-r--r--src/headerssync.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/headerssync.cpp b/src/headerssync.cpp
index 757b942cd9..a3adfb4f70 100644
--- a/src/headerssync.cpp
+++ b/src/headerssync.cpp
@@ -24,11 +24,11 @@ static_assert(sizeof(CompressedHeader) == 48);
HeadersSyncState::HeadersSyncState(NodeId id, const Consensus::Params& consensus_params,
const CBlockIndex* chain_start, const arith_uint256& minimum_required_work) :
+ m_commit_offset(GetRand<unsigned>(HEADER_COMMITMENT_PERIOD)),
m_id(id), m_consensus_params(consensus_params),
m_chain_start(chain_start),
m_minimum_required_work(minimum_required_work),
m_current_chain_work(chain_start->nChainWork),
- m_commit_offset(GetRand<unsigned>(HEADER_COMMITMENT_PERIOD)),
m_last_header_received(m_chain_start->GetBlockHeader()),
m_current_height(chain_start->nHeight)
{