Skip to content

Commit e9387ee

Browse files
committed
refactor: remove unused includes and forward declarations from headers
1 parent f2a186f commit e9387ee

23 files changed

+74
-61
lines changed

src/evo/assetlocktx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#define BITCOIN_EVO_ASSETLOCKTX_H
77

88
#include <bls/bls_ies.h>
9-
#include <primitives/transaction.h>
9+
#include <consensus/amount.h>
1010
#include <gsl/pointers.h>
11-
11+
#include <primitives/transaction.h>
1212
#include <serialize.h>
1313
#include <univalue.h>
1414

src/evo/creditpool.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
#ifndef BITCOIN_EVO_CREDITPOOL_H
66
#define BITCOIN_EVO_CREDITPOOL_H
77

8-
#include <coins.h>
9-
10-
#include <evo/assetlocktx.h>
11-
8+
#include <consensus/amount.h>
129
#include <saltedhasher.h>
1310
#include <serialize.h>
1411
#include <sync.h>
1512
#include <threadsafety.h>
1613
#include <unordered_lru_cache.h>
1714
#include <util/ranges_set.h>
1815

16+
#include <evo/assetlocktx.h>
17+
1918
#include <optional>
2019
#include <unordered_set>
2120

2221
class BlockManager;
22+
class CBlock;
2323
class CBlockIndex;
2424
class BlockValidationState;
2525
class CEvoDB;

src/evo/deterministicmns.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
class CBlock;
3030
class CBlockIndex;
3131
class CChainState;
32+
class CCoinsViewCache;
3233
class CConnman;
3334
class CEvoDB;
3435
class TxValidationState;

src/evo/dmnstate.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
#ifndef BITCOIN_EVO_DMNSTATE_H
66
#define BITCOIN_EVO_DMNSTATE_H
77

8-
#include <crypto/common.h>
98
#include <bls/bls.h>
10-
#include <pubkey.h>
9+
#include <crypto/sha256.h>
10+
#include <evo/providertx.h>
1111
#include <netaddress.h>
12+
#include <pubkey.h>
1213
#include <script/script.h>
13-
#include <evo/providertx.h>
1414

1515
#include <memory>
1616
#include <utility>

src/evo/mnauth.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,12 @@ class CBlockIndex;
1414
class CChain;
1515
class CConnman;
1616
class CDataStream;
17-
class CDeterministicMN;
1817
class CDeterministicMNList;
1918
class CDeterministicMNListDiff;
20-
class CDeterministicMNManager;
2119
class CMasternodeMetaMan;
2220
class CMasternodeSync;
2321
class CNode;
2422

25-
class UniValue;
26-
2723
enum ServiceFlags : uint64_t;
2824

2925
/**

src/evo/mnhftx.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@
77

88
#include <bls/bls.h>
99
#include <gsl/pointers.h>
10-
#include <primitives/transaction.h>
1110
#include <sync.h>
1211
#include <threadsafety.h>
1312
#include <univalue.h>
1413

1514
#include <optional>
1615
#include <saltedhasher.h>
17-
#include <unordered_map>
1816
#include <unordered_lru_cache.h>
1917
#include <versionbits.h>
2018

2119
class BlockValidationState;
2220
class CBlock;
2321
class CBlockIndex;
2422
class CEvoDB;
23+
class CTransaction;
2524
class ChainstateManager;
2625
class TxValidationState;
2726
namespace llmq {

src/evo/providertx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#include <univalue.h>
1818
#include <util/underlying.h>
1919

20-
class CBlockIndex;
21-
class CCoinsViewCache;
2220
class TxValidationState;
2321

2422
class CProRegTx

src/evo/simplifiedmns.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@
66
#define BITCOIN_EVO_SIMPLIFIEDMNS_H
77

88
#include <bls/bls.h>
9-
#include <evo/deterministicmns.h>
109
#include <evo/dmn_types.h>
1110
#include <merkleblock.h>
1211
#include <netaddress.h>
1312
#include <pubkey.h>
13+
#include <sync.h>
14+
#include <threadsafety.h>
1415

1516
class UniValue;
1617
class CBlockIndex;
17-
class CDeterministicMNList;
1818
class CDeterministicMN;
19+
class CDeterministicMNList;
20+
class CDeterministicMNManager;
1921
class ChainstateManager;
2022

23+
extern RecursiveMutex cs_main;
24+
2125
namespace llmq {
2226
class CFinalCommitment;
2327
class CQuorumBlockProcessor;

src/evo/specialtx.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <uint256.h>
1212
#include <version.h>
1313

14-
#include <string_view>
1514
#include <optional>
1615
#include <vector>
1716

src/evo/specialtxman.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef BITCOIN_EVO_SPECIALTXMAN_H
66
#define BITCOIN_EVO_SPECIALTXMAN_H
77

8-
#include <primitives/transaction.h>
8+
#include <consensus/amount.h>
99
#include <sync.h>
1010
#include <threadsafety.h>
1111

@@ -17,6 +17,7 @@ class CBlockIndex;
1717
class CCoinsViewCache;
1818
class CCreditPoolManager;
1919
class CDeterministicMNManager;
20+
class CTransaction;
2021
class ChainstateManager;
2122
class CMNHFManager;
2223
class TxValidationState;

0 commit comments

Comments
 (0)