mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
rpc: Loop through all nodes when looking for one to override mnauth data for (#3971)
This commit is contained in:
parent
21cfb4c934
commit
2aa584ba33
@ -448,7 +448,7 @@ UniValue mnauth(const JSONRPCRequest& request)
|
|||||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "publicKey invalid");
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "publicKey invalid");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool fSuccess = g_connman->ForNode(nodeId, [&](CNode* pNode){
|
bool fSuccess = g_connman->ForNode(nodeId, CConnman::AllNodes, [&](CNode* pNode){
|
||||||
LOCK(pNode->cs_mnauth);
|
LOCK(pNode->cs_mnauth);
|
||||||
pNode->verifiedProRegTxHash = proTxHash;
|
pNode->verifiedProRegTxHash = proTxHash;
|
||||||
pNode->verifiedPubKeyHash = publicKey.GetHash();
|
pNode->verifiedPubKeyHash = publicKey.GetHash();
|
||||||
|
Loading…
Reference in New Issue
Block a user