File tree Expand file tree Collapse file tree 14 files changed +75
-53
lines changed Expand file tree Collapse file tree 14 files changed +75
-53
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ BITCOIN_CORE_H = \
220220 evo/specialtx.h \
221221 evo/specialtx_filter.h \
222222 evo/specialtxman.h \
223+ evo/types.h \
223224 dsnotificationinterface.h \
224225 governance/governance.h \
225226 governance/classes.h \
@@ -275,6 +276,7 @@ BITCOIN_CORE_H = \
275276 llmq/signing.h \
276277 llmq/signing_shares.h \
277278 llmq/snapshot.h \
279+ llmq/types.h \
278280 llmq/utils.h \
279281 logging.h \
280282 logging/timer.h \
Original file line number Diff line number Diff line change 55#ifndef BITCOIN_COINJOIN_CLIENT_H
66#define BITCOIN_COINJOIN_CLIENT_H
77
8- #include < coinjoin/util.h>
98#include < coinjoin/coinjoin.h>
9+ #include < coinjoin/util.h>
10+ #include < evo/types.h>
1011
1112#include < net_types.h>
1213#include < protocol.h>
2122class CCoinJoinClientManager ;
2223class CCoinJoinClientQueueManager ;
2324class CConnman ;
24- class CDeterministicMN ;
2525class CDeterministicMNManager ;
2626class ChainstateManager ;
2727class CMasternodeMetaMan ;
@@ -33,8 +33,6 @@ class PeerManager;
3333
3434class UniValue ;
3535
36- using CDeterministicMNCPtr = std::shared_ptr<const CDeterministicMN>;
37-
3836class CPendingDsaRequest
3937{
4038private:
Original file line number Diff line number Diff line change 77
88#include < evo/dmnstate.h>
99
10+ #include < evo/dmn_types.h>
11+ #include < evo/providertx.h>
12+ #include < evo/types.h>
13+
1014#include < arith_uint256.h>
1115#include < clientversion.h>
1216#include < consensus/params.h>
1317#include < crypto/common.h>
14- #include < evo/dmn_types.h>
15- #include < evo/providertx.h>
16- #include < gsl/pointers.h>
1718#include < saltedhasher.h>
1819#include < scheduler.h>
1920#include < sync.h>
2021
22+ #include < gsl/pointers.h>
2123#include < immer/map.hpp>
2224
2325#include < atomic>
@@ -85,7 +87,6 @@ class CDeterministicMN
8587 [[nodiscard]] std::string ToString () const ;
8688 [[nodiscard]] UniValue ToJson () const ;
8789};
88- using CDeterministicMNCPtr = std::shared_ptr<const CDeterministicMN>;
8990
9091class CDeterministicMNListDiff ;
9192
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025 The Dash Core developers
2+ // Distributed under the MIT software license, see the accompanying
3+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
5+ #ifndef BITCOIN_EVO_TYPES_H
6+ #define BITCOIN_EVO_TYPES_H
7+
8+ #include < memory>
9+
10+ class CDeterministicMN ;
11+
12+ using CDeterministicMNCPtr = std::shared_ptr<const CDeterministicMN>;
13+
14+ #endif // BITCOIN_EVO_TYPES_H
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class CFlatDB;
2424class CInv ;
2525class PeerManager ;
2626
27+ class CDeterministicMNList ;
2728class CDeterministicMNManager ;
2829class CGovernanceManager ;
2930class CGovernanceObject ;
@@ -36,9 +37,6 @@ class CSporkManager;
3637static constexpr int RATE_BUFFER_SIZE = 5 ;
3738static constexpr bool DEFAULT_GOVERNANCE_ENABLE{true };
3839
39- class CDeterministicMNList ;
40- using CDeterministicMNListPtr = std::shared_ptr<CDeterministicMNList>;
41-
4240class CRateCheckBuffer
4341{
4442private:
@@ -177,7 +175,7 @@ class GovernanceStore
177175 vote_cmm_t cmmapOrphanVotes;
178176 txout_m_t mapLastMasternodeObject;
179177 // used to check for changed voting keys
180- CDeterministicMNListPtr lastMNListForVotingKeys;
178+ std::shared_ptr<CDeterministicMNList> lastMNListForVotingKeys;
181179
182180public:
183181 GovernanceStore ();
Original file line number Diff line number Diff line change 77
88#include < bls/bls.h>
99#include < llmq/params.h>
10+ #include < llmq/types.h>
11+
1012#include < primitives/transaction.h>
1113#include < util/irange.h>
1214#include < util/strencodings.h>
@@ -156,7 +158,6 @@ class CFinalCommitment
156158 return HexStr (vBytes);
157159 }
158160};
159- using CFinalCommitmentPtr = std::unique_ptr<CFinalCommitment>;
160161
161162class CFinalCommitmentTxPayload
162163{
Original file line number Diff line number Diff line change 1111#include < bls/bls.h>
1212#include < bls/bls_ies.h>
1313#include < bls/bls_worker.h>
14+ #include < evo/types.h>
15+
1416#include < saltedhasher.h>
1517#include < sync.h>
1618#include < util/underlying.h>
@@ -26,8 +28,6 @@ class CMasternodeMetaMan;
2628class CSporkManager ;
2729class PeerManager ;
2830
29- using CDeterministicMNCPtr = std::shared_ptr<const CDeterministicMN>;
30-
3131namespace llmq
3232{
3333
Original file line number Diff line number Diff line change 55#ifndef BITCOIN_LLMQ_QUORUMS_H
66#define BITCOIN_LLMQ_QUORUMS_H
77
8- #include < llmq/params.h>
9-
108#include < bls/bls.h>
119#include < bls/bls_worker.h>
1210#include < ctpl_stl.h>
13- #include < gsl/pointers.h>
11+ #include < evo/types.h>
12+ #include < llmq/params.h>
13+ #include < llmq/types.h>
14+ #include < unordered_lru_cache.h>
15+
1416#include < protocol.h>
1517#include < saltedhasher.h>
1618#include < util/threadinterrupt.h>
17- #include < unordered_lru_cache.h>
1819#include < util/time.h>
1920
21+ #include < gsl/pointers.h>
22+
2023#include < atomic>
2124#include < map>
2225#include < utility>
@@ -35,8 +38,6 @@ class CMasternodeSync;
3538class CNode ;
3639class CSporkManager ;
3740
38- using CDeterministicMNCPtr = std::shared_ptr<const CDeterministicMN>;
39-
4041namespace llmq
4142{
4243enum class VerifyRecSigStatus
@@ -170,14 +171,6 @@ class CQuorumDataRequest
170171 * the public key shares of individual members, which are needed to verify signature shares of these members.
171172 */
172173
173- class CQuorum ;
174- using CQuorumPtr = std::shared_ptr<CQuorum>;
175- using CQuorumCPtr = std::shared_ptr<const CQuorum>;
176-
177- class CFinalCommitment ;
178- using CFinalCommitmentPtr = std::unique_ptr<CFinalCommitment>;
179-
180-
181174class CQuorum
182175{
183176 friend class CQuorumManager ;
Original file line number Diff line number Diff line change 66#define BITCOIN_LLMQ_SIGNING_H
77
88#include < bls/bls.h>
9- #include < gsl/pointers.h>
109#include < llmq/params.h>
1110#include < llmq/signhash.h>
11+ #include < llmq/types.h>
12+ #include < unordered_lru_cache.h>
13+
1214#include < net_types.h>
1315#include < protocol.h>
1416#include < random.h>
1517#include < saltedhasher.h>
1618#include < sync.h>
17- #include < unordered_lru_cache.h>
1819#include < util/threadinterrupt.h>
1920
21+ #include < gsl/pointers.h>
22+
2023#include < string_view>
2124#include < unordered_map>
2225
@@ -29,10 +32,7 @@ class CInv;
2932class PeerManager ;
3033class UniValue ;
3134
32- namespace llmq
33- {
34- class CQuorum ;
35- using CQuorumCPtr = std::shared_ptr<const CQuorum>;
35+ namespace llmq {
3636class CQuorumManager ;
3737class CSigSharesManager ;
3838
Original file line number Diff line number Diff line change 88#include < llmq/signing.h>
99
1010#include < bls/bls.h>
11+ #include < evo/types.h>
12+
1113#include < random.h>
1214#include < saltedhasher.h>
1315#include < serialize.h>
@@ -31,8 +33,6 @@ class CDeterministicMN;
3133class CSporkManager ;
3234class PeerManager ;
3335
34- using CDeterministicMNCPtr = std::shared_ptr<const CDeterministicMN>;
35-
3636namespace llmq
3737{
3838class CSigningManager ;
You can’t perform that action at this time.
0 commit comments