|
|
@ -231,7 +231,7 @@ UniValue disconnectnode(const UniValue& params, bool fHelp) |
|
|
|
if (pNode == NULL) |
|
|
|
if (pNode == NULL) |
|
|
|
throw JSONRPCError(RPC_CLIENT_NODE_NOT_CONNECTED, "Node not found in connected nodes"); |
|
|
|
throw JSONRPCError(RPC_CLIENT_NODE_NOT_CONNECTED, "Node not found in connected nodes"); |
|
|
|
|
|
|
|
|
|
|
|
pNode->CloseSocketDisconnect(); |
|
|
|
pNode->fDisconnect = true; |
|
|
|
|
|
|
|
|
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
} |
|
|
|
} |
|
|
@ -519,7 +519,7 @@ UniValue setban(const UniValue& params, bool fHelp) |
|
|
|
|
|
|
|
|
|
|
|
//disconnect possible nodes
|
|
|
|
//disconnect possible nodes
|
|
|
|
while(CNode *bannedNode = (isSubnet ? FindNode(subNet) : FindNode(netAddr))) |
|
|
|
while(CNode *bannedNode = (isSubnet ? FindNode(subNet) : FindNode(netAddr))) |
|
|
|
bannedNode->CloseSocketDisconnect(); |
|
|
|
bannedNode->fDisconnect = true; |
|
|
|
} |
|
|
|
} |
|
|
|
else if(strCommand == "remove") |
|
|
|
else if(strCommand == "remove") |
|
|
|
{ |
|
|
|
{ |
|
|
|