refactor: moved including llmq/dkgsession.h from dkgsessionmgr.h to cpp file

This commit is contained in:
Konstantin Akimov 2024-09-20 13:10:24 +07:00
parent e77aeb321b
commit d361b11e5b
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524
3 changed files with 10 additions and 2 deletions

View File

@ -3,6 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <llmq/debug.h> #include <llmq/debug.h>
#include <llmq/dkgsession.h>
#include <llmq/dkgsessionmgr.h> #include <llmq/dkgsessionmgr.h>
#include <llmq/options.h> #include <llmq/options.h>
#include <llmq/params.h> #include <llmq/params.h>
@ -56,6 +57,8 @@ CDKGSessionManager::CDKGSessionManager(CBLSWorker& _blsWorker, CChainState& chai
} }
} }
CDKGSessionManager::~CDKGSessionManager() = default;
void CDKGSessionManager::MigrateDKG() void CDKGSessionManager::MigrateDKG()
{ {
if (!db->IsEmpty()) return; if (!db->IsEmpty()) return;

View File

@ -6,8 +6,8 @@
#define BITCOIN_LLMQ_DKGSESSIONMGR_H #define BITCOIN_LLMQ_DKGSESSIONMGR_H
#include <llmq/dkgsessionhandler.h> #include <llmq/dkgsessionhandler.h>
#include <llmq/dkgsession.h>
#include <bls/bls.h> #include <bls/bls.h>
#include <bls/bls_ies.h>
#include <bls/bls_worker.h> #include <bls/bls_worker.h>
#include <net_types.h> #include <net_types.h>
@ -23,6 +23,10 @@ class CDKGDebugManager;
class CMasternodeMetaMan; class CMasternodeMetaMan;
class CSporkManager; class CSporkManager;
class PeerManager; class PeerManager;
class CDKGContribution;
class CDKGComplaint;
class CDKGJustification;
class CDKGPrematureCommitment;
class UniValue; class UniValue;
@ -71,7 +75,7 @@ public:
CDKGDebugManager& _dkgDebugManager, CMasternodeMetaMan& mn_metaman, CQuorumBlockProcessor& _quorumBlockProcessor, CDKGDebugManager& _dkgDebugManager, CMasternodeMetaMan& mn_metaman, CQuorumBlockProcessor& _quorumBlockProcessor,
const CActiveMasternodeManager* const mn_activeman, const CSporkManager& sporkman, const CActiveMasternodeManager* const mn_activeman, const CSporkManager& sporkman,
const std::unique_ptr<PeerManager>& peerman, bool unitTests, bool fWipe); const std::unique_ptr<PeerManager>& peerman, bool unitTests, bool fWipe);
~CDKGSessionManager() = default; ~CDKGSessionManager();
void StartThreads(); void StartThreads();
void StopThreads(); void StopThreads();

View File

@ -61,6 +61,7 @@
#include <llmq/chainlocks.h> #include <llmq/chainlocks.h>
#include <llmq/commitment.h> #include <llmq/commitment.h>
#include <llmq/context.h> #include <llmq/context.h>
#include <llmq/dkgsession.h>
#include <llmq/dkgsessionmgr.h> #include <llmq/dkgsessionmgr.h>
#include <llmq/instantsend.h> #include <llmq/instantsend.h>
#include <llmq/options.h> #include <llmq/options.h>