fix: reorder initializations (#5545)

## Issue being fixed or feature implemented
fix buid errors like https://gitlab.com/dashpay/dash/-/jobs/4933232262

## What was done?
reorder initializations


## How Has This Been Tested?
local build with `-werror`


## Breaking Changes
n/a


## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository
code-owners and collaborators only)_
This commit is contained in:
UdjinM6 2023-08-24 02:25:27 +03:00 committed by GitHub
parent c572f59e38
commit 3e1c6dd731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,12 +29,12 @@ CChainLocksHandler::CChainLocksHandler(CChainState& chainstate, CConnman& _connm
CTxMemPool& _mempool, const std::unique_ptr<PeerManager>& peerman) :
m_chainstate(chainstate),
connman(_connman),
mempool(_mempool),
spork_manager(sporkManager),
m_mn_sync(mn_sync),
qman(_qman),
sigman(_sigman),
shareman(_shareman),
qman(_qman),
m_mn_sync(mn_sync),
spork_manager(sporkManager),
mempool(_mempool),
m_peerman(peerman),
scheduler(std::make_unique<CScheduler>()),
scheduler_thread(std::make_unique<std::thread>([&] { TraceThread("cl-schdlr", [&] { scheduler->serviceQueue(); }); }))