File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ class CBlock;
21
21
class CBlockIndex ;
22
22
class CChainState ;
23
23
class CTxMemPool ;
24
- class ChainstateManager ;
25
24
class UniValue ;
26
25
struct NodeContext ;
27
26
Original file line number Diff line number Diff line change @@ -37,6 +37,19 @@ CTxMemPool& EnsureAnyMemPool(const std::any& context)
37
37
return EnsureMemPool (EnsureAnyNodeContext (context));
38
38
}
39
39
40
+ ArgsManager& EnsureArgsman (const NodeContext& node)
41
+ {
42
+ if (!node.args ) {
43
+ throw JSONRPCError (RPC_INTERNAL_ERROR, " Node args not found" );
44
+ }
45
+ return *node.args ;
46
+ }
47
+
48
+ ArgsManager& EnsureAnyArgsman (const std::any& context)
49
+ {
50
+ return EnsureArgsman (EnsureAnyNodeContext (context));
51
+ }
52
+
40
53
ChainstateManager& EnsureChainman (const NodeContext& node)
41
54
{
42
55
if (!node.chainman ) {
Original file line number Diff line number Diff line change 7
7
8
8
#include < any>
9
9
10
+ class ArgsManager ;
10
11
class CBlockPolicyEstimator ;
11
12
class CConnman ;
12
- class ChainstateManager ;
13
13
class CTxMemPool ;
14
- struct NodeContext ;
14
+ class ChainstateManager ;
15
15
class PeerManager ;
16
+ struct NodeContext ;
16
17
17
18
NodeContext& EnsureAnyNodeContext (const std::any& context);
18
19
CTxMemPool& EnsureMemPool (const NodeContext& node);
19
20
CTxMemPool& EnsureAnyMemPool (const std::any& context);
21
+ ArgsManager& EnsureArgsman (const NodeContext& node);
22
+ ArgsManager& EnsureAnyArgsman (const std::any& context);
20
23
ChainstateManager& EnsureChainman (const NodeContext& node);
21
24
ChainstateManager& EnsureAnyChainman (const std::any& context);
22
25
CBlockPolicyEstimator& EnsureFeeEstimator (const NodeContext& node);
You can’t perform that action at this time.
0 commit comments