refactor: remove exceeding evodb.h from headers

This commit is contained in:
Konstantin Akimov 2024-09-18 21:05:38 +07:00
parent a9a2d4adbe
commit 6f7068ef42
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524
10 changed files with 20 additions and 5 deletions

View File

@ -6,6 +6,7 @@
#include <evo/assetlocktx.h>
#include <evo/cbtx.h>
#include <evo/evodb.h>
#include <evo/specialtx.h>
#include <chain.h>

View File

@ -8,7 +8,6 @@
#include <coins.h>
#include <evo/assetlocktx.h>
#include <evo/evodb.h>
#include <saltedhasher.h>
#include <serialize.h>
@ -23,6 +22,7 @@
class BlockManager;
class CBlockIndex;
class BlockValidationState;
class CEvoDB;
class TxValidationState;
namespace Consensus {
struct Params;

View File

@ -2,6 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <evo/evodb.h>
#include <evo/deterministicmns.h>
#include <evo/dmn_types.h>
#include <evo/dmnstate.h>

View File

@ -8,10 +8,10 @@
#include <evo/dmnstate.h>
#include <arith_uint256.h>
#include <clientversion.h>
#include <consensus/params.h>
#include <crypto/common.h>
#include <evo/dmn_types.h>
#include <evo/evodb.h>
#include <evo/providertx.h>
#include <saltedhasher.h>
#include <scheduler.h>
@ -30,6 +30,7 @@ class CBlock;
class CBlockIndex;
class CChainState;
class CConnman;
class CEvoDB;
class TxValidationState;
extern RecursiveMutex cs_main;

View File

@ -4,6 +4,7 @@
#include <consensus/validation.h>
#include <deploymentstatus.h>
#include <evo/evodb.h>
#include <evo/mnhftx.h>
#include <evo/specialtx.h>
#include <llmq/commitment.h>

View File

@ -90,6 +90,7 @@
#include <spork.h>
#include <walletinitinterface.h>
#include <evo/evodb.h>
#include <evo/chainhelper.h>
#include <evo/creditpool.h>
#include <evo/deterministicmns.h>

View File

@ -11,10 +11,12 @@
#include <llmq/params.h>
#include <llmq/utils.h>
#include <evo/evodb.h>
#include <evo/specialtx.h>
#include <evo/deterministicmns.h>
#include <chainparams.h>
#include <dbwrapper.h>
#include <masternode/node.h>
#include <masternode/sync.h>
#include <net.h>
@ -230,6 +232,11 @@ CQuorumManager::CQuorumManager(CBLSWorker& _blsWorker, CChainState& chainstate,
MigrateOldQuorumDB(_evoDb);
}
CQuorumManager::~CQuorumManager()
{
Stop();
}
void CQuorumManager::Start()
{
int workerCount = std::thread::hardware_concurrency() / 2;

View File

@ -14,7 +14,6 @@
#include <bls/bls.h>
#include <bls/bls_worker.h>
#include <evo/evodb.h>
#include <net_types.h>
#include <gsl/pointers.h>
@ -26,8 +25,11 @@ class CActiveMasternodeManager;
class CBlockIndex;
class CChainState;
class CConnman;
class CDataStream;
class CDeterministicMN;
class CDeterministicMNManager;
class CDBWrapper;
class CEvoDB;
class CMasternodeSync;
class CNode;
class CSporkManager;
@ -258,7 +260,7 @@ public:
CDKGSessionManager& _dkgManager, CEvoDB& _evoDb, CQuorumBlockProcessor& _quorumBlockProcessor,
const CActiveMasternodeManager* const mn_activeman, const CMasternodeSync& mn_sync,
const CSporkManager& sporkman, bool unit_tests, bool wipe);
~CQuorumManager() { Stop(); };
~CQuorumManager();
void Start();
void Stop();

View File

@ -4,6 +4,7 @@
#include <llmq/snapshot.h>
#include <evo/evodb.h>
#include <evo/simplifiedmns.h>
#include <evo/specialtx.h>

View File

@ -5,7 +5,6 @@
#ifndef BITCOIN_LLMQ_SNAPSHOT_H
#define BITCOIN_LLMQ_SNAPSHOT_H
#include <evo/evodb.h>
#include <evo/simplifiedmns.h>
#include <llmq/commitment.h>
#include <llmq/params.h>
@ -20,6 +19,7 @@
class CBlockIndex;
class CDeterministicMN;
class CDeterministicMNList;
class CEvoDb;
namespace llmq {
class CQuorumBlockProcessor;