rpc: Loop through all nodes when looking for one to override mnauth data for (#3971)

This commit is contained in:
UdjinM6 2021-01-29 05:16:28 +03:00 committed by GitHub
parent 21cfb4c934
commit 2aa584ba33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,7 +448,7 @@ UniValue mnauth(const JSONRPCRequest& request)
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);
pNode->verifiedProRegTxHash = proTxHash;
pNode->verifiedPubKeyHash = publicKey.GetHash();