Skip to content

Commit 098b094

Browse files
committed
Pass scheduler to InitLLMQSystem
1 parent a1f4853 commit 098b094

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

src/init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
17471747
pcoinsdbview = new CCoinsViewDB(nCoinDBCache, false, fReindex || fReindexChainState);
17481748
pcoinscatcher = new CCoinsViewErrorCatcher(pcoinsdbview);
17491749
pcoinsTip = new CCoinsViewCache(pcoinscatcher);
1750-
llmq::InitLLMQSystem(*evoDb);
1750+
llmq::InitLLMQSystem(*evoDb, &scheduler);
17511751

17521752
if (fReindex) {
17531753
pblocktree->WriteReindexing(true);

src/llmq/quorums_init.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
#include "quorums_commitment.h"
99
#include "quorums_dkgsessionmgr.h"
1010

11+
#include "scheduler.h"
12+
1113
namespace llmq
1214
{
1315

1416
static CBLSWorker blsWorker;
1517

16-
void InitLLMQSystem(CEvoDB& evoDb)
18+
void InitLLMQSystem(CEvoDB& evoDb, CScheduler* scheduler)
1719
{
1820
quorumBlockProcessor = new CQuorumBlockProcessor(evoDb);
1921
quorumDKGSessionManager = new CDKGSessionManager(evoDb, blsWorker);

src/llmq/quorums_init.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
#define DASH_QUORUMS_INIT_H
77

88
class CEvoDB;
9+
class CScheduler;
910

1011
namespace llmq
1112
{
1213

1314
// If true, we will connect to all new quorums and watch their communication
1415
static const bool DEFAULT_WATCH_QUORUMS = false;
1516

16-
void InitLLMQSystem(CEvoDB& evoDb);
17+
void InitLLMQSystem(CEvoDB& evoDb, CScheduler* scheduler);
1718
void DestroyLLMQSystem();
1819

1920
}

src/qt/test/rpcnestedtests.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void RPCNestedTests::rpcNestedTests()
5555
pcoinsdbview = new CCoinsViewDB(1 << 23, true);
5656
deterministicMNManager = new CDeterministicMNManager(*evoDb);
5757

58-
llmq::InitLLMQSystem(*evoDb);
58+
llmq::InitLLMQSystem(*evoDb, nullptr);
5959

6060
pcoinsTip = new CCoinsViewCache(pcoinsdbview);
6161
InitBlockIndex(chainparams);

src/test/test_dash.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
7878
mempool.setSanityCheck(1.0);
7979
pblocktree = new CBlockTreeDB(1 << 20, true);
8080
pcoinsdbview = new CCoinsViewDB(1 << 23, true);
81-
llmq::InitLLMQSystem(*evoDb);
81+
llmq::InitLLMQSystem(*evoDb, nullptr);
8282
pcoinsTip = new CCoinsViewCache(pcoinsdbview);
8383
InitBlockIndex(chainparams);
8484
{

0 commit comments

Comments
 (0)