mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
refactor: remove unused includes and forward declarations from headers
This commit is contained in:
parent
f2a186f3f3
commit
e9387eef69
@ -6,9 +6,9 @@
|
||||
#define BITCOIN_EVO_ASSETLOCKTX_H
|
||||
|
||||
#include <bls/bls_ies.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <consensus/amount.h>
|
||||
#include <gsl/pointers.h>
|
||||
|
||||
#include <primitives/transaction.h>
|
||||
#include <serialize.h>
|
||||
#include <univalue.h>
|
||||
|
||||
|
@ -5,10 +5,7 @@
|
||||
#ifndef BITCOIN_EVO_CREDITPOOL_H
|
||||
#define BITCOIN_EVO_CREDITPOOL_H
|
||||
|
||||
#include <coins.h>
|
||||
|
||||
#include <evo/assetlocktx.h>
|
||||
|
||||
#include <consensus/amount.h>
|
||||
#include <saltedhasher.h>
|
||||
#include <serialize.h>
|
||||
#include <sync.h>
|
||||
@ -16,10 +13,13 @@
|
||||
#include <unordered_lru_cache.h>
|
||||
#include <util/ranges_set.h>
|
||||
|
||||
#include <evo/assetlocktx.h>
|
||||
|
||||
#include <optional>
|
||||
#include <unordered_set>
|
||||
|
||||
class BlockManager;
|
||||
class CBlock;
|
||||
class CBlockIndex;
|
||||
class BlockValidationState;
|
||||
class CEvoDB;
|
||||
|
@ -29,6 +29,7 @@
|
||||
class CBlock;
|
||||
class CBlockIndex;
|
||||
class CChainState;
|
||||
class CCoinsViewCache;
|
||||
class CConnman;
|
||||
class CEvoDB;
|
||||
class TxValidationState;
|
||||
|
@ -5,12 +5,12 @@
|
||||
#ifndef BITCOIN_EVO_DMNSTATE_H
|
||||
#define BITCOIN_EVO_DMNSTATE_H
|
||||
|
||||
#include <crypto/common.h>
|
||||
#include <bls/bls.h>
|
||||
#include <pubkey.h>
|
||||
#include <netaddress.h>
|
||||
#include <script/script.h>
|
||||
#include <crypto/sha256.h>
|
||||
#include <evo/providertx.h>
|
||||
#include <netaddress.h>
|
||||
#include <pubkey.h>
|
||||
#include <script/script.h>
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
@ -14,16 +14,12 @@ class CBlockIndex;
|
||||
class CChain;
|
||||
class CConnman;
|
||||
class CDataStream;
|
||||
class CDeterministicMN;
|
||||
class CDeterministicMNList;
|
||||
class CDeterministicMNListDiff;
|
||||
class CDeterministicMNManager;
|
||||
class CMasternodeMetaMan;
|
||||
class CMasternodeSync;
|
||||
class CNode;
|
||||
|
||||
class UniValue;
|
||||
|
||||
enum ServiceFlags : uint64_t;
|
||||
|
||||
/**
|
||||
|
@ -7,14 +7,12 @@
|
||||
|
||||
#include <bls/bls.h>
|
||||
#include <gsl/pointers.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <sync.h>
|
||||
#include <threadsafety.h>
|
||||
#include <univalue.h>
|
||||
|
||||
#include <optional>
|
||||
#include <saltedhasher.h>
|
||||
#include <unordered_map>
|
||||
#include <unordered_lru_cache.h>
|
||||
#include <versionbits.h>
|
||||
|
||||
@ -22,6 +20,7 @@ class BlockValidationState;
|
||||
class CBlock;
|
||||
class CBlockIndex;
|
||||
class CEvoDB;
|
||||
class CTransaction;
|
||||
class ChainstateManager;
|
||||
class TxValidationState;
|
||||
namespace llmq {
|
||||
|
@ -17,8 +17,6 @@
|
||||
#include <univalue.h>
|
||||
#include <util/underlying.h>
|
||||
|
||||
class CBlockIndex;
|
||||
class CCoinsViewCache;
|
||||
class TxValidationState;
|
||||
|
||||
class CProRegTx
|
||||
|
@ -6,18 +6,22 @@
|
||||
#define BITCOIN_EVO_SIMPLIFIEDMNS_H
|
||||
|
||||
#include <bls/bls.h>
|
||||
#include <evo/deterministicmns.h>
|
||||
#include <evo/dmn_types.h>
|
||||
#include <merkleblock.h>
|
||||
#include <netaddress.h>
|
||||
#include <pubkey.h>
|
||||
#include <sync.h>
|
||||
#include <threadsafety.h>
|
||||
|
||||
class UniValue;
|
||||
class CBlockIndex;
|
||||
class CDeterministicMNList;
|
||||
class CDeterministicMN;
|
||||
class CDeterministicMNList;
|
||||
class CDeterministicMNManager;
|
||||
class ChainstateManager;
|
||||
|
||||
extern RecursiveMutex cs_main;
|
||||
|
||||
namespace llmq {
|
||||
class CFinalCommitment;
|
||||
class CQuorumBlockProcessor;
|
||||
|
@ -11,7 +11,6 @@
|
||||
#include <uint256.h>
|
||||
#include <version.h>
|
||||
|
||||
#include <string_view>
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef BITCOIN_EVO_SPECIALTXMAN_H
|
||||
#define BITCOIN_EVO_SPECIALTXMAN_H
|
||||
|
||||
#include <primitives/transaction.h>
|
||||
#include <consensus/amount.h>
|
||||
#include <sync.h>
|
||||
#include <threadsafety.h>
|
||||
|
||||
@ -17,6 +17,7 @@ class CBlockIndex;
|
||||
class CCoinsViewCache;
|
||||
class CCreditPoolManager;
|
||||
class CDeterministicMNManager;
|
||||
class CTransaction;
|
||||
class ChainstateManager;
|
||||
class CMNHFManager;
|
||||
class TxValidationState;
|
||||
|
@ -7,9 +7,7 @@
|
||||
|
||||
#include <unordered_lru_cache.h>
|
||||
|
||||
#include <chain.h>
|
||||
#include <consensus/params.h>
|
||||
#include <primitives/block.h>
|
||||
#include <llmq/params.h>
|
||||
#include <protocol.h>
|
||||
#include <saltedhasher.h>
|
||||
#include <sync.h>
|
||||
@ -19,9 +17,10 @@
|
||||
#include <optional>
|
||||
|
||||
class BlockValidationState;
|
||||
class CBlock;
|
||||
class CBlockIndex;
|
||||
class CChain;
|
||||
class CChainState;
|
||||
class CConnman;
|
||||
class CDataStream;
|
||||
class CDeterministicMNManager;
|
||||
class CEvoDB;
|
||||
|
@ -7,11 +7,10 @@
|
||||
|
||||
#include <llmq/clsig.h>
|
||||
|
||||
#include <crypto/common.h>
|
||||
#include <crypto/common.h> // For ReadLE64
|
||||
#include <llmq/signing.h>
|
||||
#include <net.h>
|
||||
#include <net.h> // For NodeId
|
||||
#include <net_types.h>
|
||||
#include <primitives/block.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <saltedhasher.h>
|
||||
#include <sync.h>
|
||||
@ -21,10 +20,10 @@
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
|
||||
class CChainState;
|
||||
class CBlock;
|
||||
class CBlockIndex;
|
||||
class CChainState;
|
||||
class CMasternodeSync;
|
||||
class CScheduler;
|
||||
class CSporkManager;
|
||||
|
@ -6,16 +6,20 @@
|
||||
#define BITCOIN_LLMQ_COMMITMENT_H
|
||||
|
||||
#include <bls/bls.h>
|
||||
#include <consensus/params.h>
|
||||
#include <llmq/params.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <util/irange.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/underlying.h>
|
||||
|
||||
#include <gsl/pointers.h>
|
||||
|
||||
#include <univalue.h>
|
||||
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class CBlockIndex;
|
||||
class CDeterministicMNManager;
|
||||
class ChainstateManager;
|
||||
|
@ -12,7 +12,6 @@ class CBLSWorker;
|
||||
class CConnman;
|
||||
class ChainstateManager;
|
||||
class CDeterministicMNManager;
|
||||
class CDBWrapper;
|
||||
class CEvoDB;
|
||||
class CMasternodeMetaMan;
|
||||
class CMasternodeSync;
|
||||
|
@ -22,7 +22,6 @@ class CConnman;
|
||||
class CDeterministicMN;
|
||||
class CMasternodeMetaMan;
|
||||
class CSporkManager;
|
||||
class UniValue;
|
||||
|
||||
using CDeterministicMNCPtr = std::shared_ptr<const CDeterministicMN>;
|
||||
|
||||
|
@ -5,21 +5,28 @@
|
||||
#ifndef BITCOIN_LLMQ_DKGSESSIONHANDLER_H
|
||||
#define BITCOIN_LLMQ_DKGSESSIONHANDLER_H
|
||||
|
||||
#include <ctpl_stl.h>
|
||||
#include <net.h>
|
||||
#include <net.h> // for NodeId
|
||||
|
||||
#include <gsl/pointers.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
class CActiveMasternodeManager;
|
||||
class CBlockIndex;
|
||||
class CBLSWorker;
|
||||
class CBlockIndex;
|
||||
class CChainState;
|
||||
class CConnman;
|
||||
class CDeterministicMNManager;
|
||||
class CMasternodeMetaMan;
|
||||
class CNode;
|
||||
class CSporkManager;
|
||||
class PeerManager;
|
||||
|
||||
|
@ -6,14 +6,13 @@
|
||||
#define BITCOIN_LLMQ_INSTANTSEND_H
|
||||
|
||||
#include <llmq/signing.h>
|
||||
#include <unordered_lru_cache.h>
|
||||
|
||||
#include <chain.h>
|
||||
#include <coins.h>
|
||||
#include <consensus/params.h>
|
||||
#include <net_types.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <threadinterrupt.h>
|
||||
#include <txmempool.h>
|
||||
#include <unordered_lru_cache.h>
|
||||
|
||||
#include <gsl/pointers.h>
|
||||
|
||||
@ -21,6 +20,7 @@
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
|
||||
class CBlockIndex;
|
||||
class CChainState;
|
||||
class CDBWrapper;
|
||||
class CMasternodeSync;
|
||||
@ -365,7 +365,7 @@ public:
|
||||
bool IsInstantSendMempoolSigningEnabled() const;
|
||||
bool RejectConflictingBlocks() const;
|
||||
};
|
||||
|
||||
// TODO: split CInstantSendManager and CInstantSendLock to 2 files
|
||||
extern std::unique_ptr<CInstantSendManager> quorumInstantSendManager;
|
||||
|
||||
} // namespace llmq
|
||||
|
@ -5,17 +5,16 @@
|
||||
#ifndef BITCOIN_LLMQ_QUORUMS_H
|
||||
#define BITCOIN_LLMQ_QUORUMS_H
|
||||
|
||||
#include <chain.h>
|
||||
#include <consensus/params.h>
|
||||
#include <saltedhasher.h>
|
||||
#include <threadinterrupt.h>
|
||||
#include <unordered_lru_cache.h>
|
||||
#include <llmq/params.h>
|
||||
|
||||
#include <bls/bls.h>
|
||||
#include <bls/bls_worker.h>
|
||||
#include <protocol.h>
|
||||
|
||||
#include <ctpl_stl.h>
|
||||
#include <gsl/pointers.h>
|
||||
#include <protocol.h>
|
||||
#include <saltedhasher.h>
|
||||
#include <threadinterrupt.h>
|
||||
#include <unordered_lru_cache.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
@ -23,6 +22,7 @@
|
||||
|
||||
class CActiveMasternodeManager;
|
||||
class CBlockIndex;
|
||||
class CChain;
|
||||
class CChainState;
|
||||
class CConnman;
|
||||
class CDataStream;
|
||||
|
@ -6,14 +6,13 @@
|
||||
#define BITCOIN_LLMQ_SIGNING_H
|
||||
|
||||
#include <bls/bls.h>
|
||||
#include <consensus/params.h>
|
||||
#include <gsl/pointers.h>
|
||||
#include <llmq/params.h>
|
||||
#include <protocol.h>
|
||||
#include <random.h>
|
||||
#include <saltedhasher.h>
|
||||
#include <sync.h>
|
||||
#include <threadinterrupt.h>
|
||||
#include <univalue.h>
|
||||
#include <unordered_lru_cache.h>
|
||||
|
||||
#include <unordered_map>
|
||||
@ -27,6 +26,7 @@ class CDBWrapper;
|
||||
class CInv;
|
||||
class CNode;
|
||||
class PeerManager;
|
||||
class UniValue;
|
||||
|
||||
using NodeId = int64_t;
|
||||
|
||||
|
@ -5,25 +5,29 @@
|
||||
#ifndef BITCOIN_LLMQ_SIGNING_SHARES_H
|
||||
#define BITCOIN_LLMQ_SIGNING_SHARES_H
|
||||
|
||||
#include <bls/bls.h>
|
||||
#include <llmq/signing.h>
|
||||
#include <net.h>
|
||||
|
||||
#include <bls/bls.h>
|
||||
#include <random.h>
|
||||
#include <saltedhasher.h>
|
||||
#include <serialize.h>
|
||||
#include <threadinterrupt.h>
|
||||
#include <sync.h>
|
||||
#include <threadinterrupt.h>
|
||||
#include <uint256.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class CNode;
|
||||
class CConnman;
|
||||
class CDeterministicMN;
|
||||
class CEvoDB;
|
||||
class CScheduler;
|
||||
class CSporkManager;
|
||||
class PeerManager;
|
||||
|
||||
|
@ -10,16 +10,16 @@
|
||||
#include <llmq/params.h>
|
||||
#include <saltedhasher.h>
|
||||
#include <serialize.h>
|
||||
#include <univalue.h>
|
||||
#include <sync.h>
|
||||
#include <threadsafety.h>
|
||||
#include <unordered_lru_cache.h>
|
||||
#include <util/irange.h>
|
||||
|
||||
#include <optional>
|
||||
|
||||
class CBlockIndex;
|
||||
class CDeterministicMN;
|
||||
class CDeterministicMNList;
|
||||
class CEvoDb;
|
||||
class CEvoDB;
|
||||
class UniValue;
|
||||
|
||||
namespace llmq {
|
||||
class CQuorumBlockProcessor;
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include <masternode/meta.h>
|
||||
|
||||
#include <flat-database.h>
|
||||
#include <univalue.h>
|
||||
#include <util/time.h>
|
||||
|
||||
#include <sstream>
|
||||
|
@ -7,14 +7,17 @@
|
||||
|
||||
#include <serialize.h>
|
||||
#include <sync.h>
|
||||
#include <threadsafety.h>
|
||||
#include <uint256.h>
|
||||
|
||||
#include <univalue.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
class CConnman;
|
||||
class UniValue;
|
||||
|
||||
template<typename T>
|
||||
class CFlatDB;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user