mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge pull request #3586
4412c5a
Fix `getaddednodeinfo` RPC call with dns=false (Wladimir J. van der Laan)
This commit is contained in:
commit
3160a9b92d
@ -255,16 +255,18 @@ Value getaddednodeinfo(const Array& params, bool fHelp)
|
||||
throw JSONRPCError(RPC_CLIENT_NODE_NOT_ADDED, "Error: Node has not been added.");
|
||||
}
|
||||
|
||||
Array ret;
|
||||
if (!fDns)
|
||||
{
|
||||
Object ret;
|
||||
BOOST_FOREACH(string& strAddNode, laddedNodes)
|
||||
ret.push_back(Pair("addednode", strAddNode));
|
||||
{
|
||||
Object obj;
|
||||
obj.push_back(Pair("addednode", strAddNode));
|
||||
ret.push_back(obj);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Array ret;
|
||||
|
||||
list<pair<string, vector<CService> > > laddedAddreses(0);
|
||||
BOOST_FOREACH(string& strAddNode, laddedNodes)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user