7
7
#include < index/txindex.h>
8
8
#include < node/context.h>
9
9
#include < rpc/blockchain.h>
10
+ #include < rpc/net.h>
10
11
#include < rpc/server.h>
11
12
#include < rpc/util.h>
12
13
#include < validation.h>
@@ -279,7 +280,7 @@ static RPCHelpMan quorum_dkgstatus()
279
280
const NodeContext& node = EnsureAnyNodeContext (request.context );
280
281
const ChainstateManager& chainman = EnsureChainman (node);
281
282
const LLMQContext& llmq_ctx = EnsureLLMQContext (node);
282
- CHECK_NONFATAL (node. connman );
283
+ const CConnman& connman = EnsureConnman (node);
283
284
CHECK_NONFATAL (node.dmnman );
284
285
CHECK_NONFATAL (node.sporkman );
285
286
@@ -325,7 +326,7 @@ static RPCHelpMan quorum_dkgstatus()
325
326
auto allConnections = llmq::utils::GetQuorumConnections (llmq_params, *node.dmnman , *node.sporkman , pQuorumBaseBlockIndex, proTxHash, false );
326
327
auto outboundConnections = llmq::utils::GetQuorumConnections (llmq_params, *node.dmnman , *node.sporkman , pQuorumBaseBlockIndex, proTxHash, true );
327
328
std::map<uint256, CAddress> foundConnections;
328
- node. connman -> ForEachNode ([&](const CNode* pnode) {
329
+ connman. ForEachNode ([&](const CNode* pnode) {
329
330
auto verifiedProRegTxHash = pnode->GetVerifiedProRegTxHash ();
330
331
if (!verifiedProRegTxHash.IsNull () && allConnections.count (verifiedProRegTxHash)) {
331
332
foundConnections.emplace (verifiedProRegTxHash, pnode->addr );
@@ -384,7 +385,7 @@ static RPCHelpMan quorum_memberof()
384
385
const NodeContext& node = EnsureAnyNodeContext (request.context );
385
386
const ChainstateManager& chainman = EnsureChainman (node);
386
387
const LLMQContext& llmq_ctx = EnsureLLMQContext (node);
387
- CHECK_NONFATAL (node.connman );
388
+ CHECK_NONFATAL (node.dmnman );
388
389
389
390
uint256 protxHash (ParseHashV (request.params [0 ], " proTxHash" ));
390
391
int scanQuorumsCount = -1 ;
@@ -751,7 +752,7 @@ static RPCHelpMan quorum_getdata()
751
752
const NodeContext& node = EnsureAnyNodeContext (request.context );
752
753
const ChainstateManager& chainman = EnsureChainman (node);
753
754
const LLMQContext& llmq_ctx = EnsureLLMQContext (node);
754
- CHECK_NONFATAL (node. connman );
755
+ CConnman& connman = EnsureConnman (node);
755
756
756
757
NodeId nodeId = ParseInt64V (request.params [0 ], " nodeId" );
757
758
Consensus::LLMQType llmqType = static_cast <Consensus::LLMQType>(ParseInt32V (request.params [1 ], " llmqType" ));
@@ -773,7 +774,7 @@ static RPCHelpMan quorum_getdata()
773
774
774
775
const CBlockIndex* pQuorumBaseBlockIndex = WITH_LOCK (cs_main, return chainman.m_blockman .LookupBlockIndex (quorumHash));
775
776
776
- return node. connman -> ForNode (nodeId, [&](CNode* pNode) {
777
+ return connman. ForNode (nodeId, [&](CNode* pNode) {
777
778
return llmq_ctx.qman ->RequestQuorumData (pNode, llmqType, pQuorumBaseBlockIndex, nDataMask, proTxHash);
778
779
});
779
780
},
0 commit comments