Refactor UniqueNodeList into IUniqueNodeList

This commit is contained in:
Vinnie Falco
2013-06-02 11:17:46 -07:00
parent 0581cf61e5
commit fb487bdb41
15 changed files with 282 additions and 267 deletions

View File

@@ -2391,13 +2391,13 @@ Json::Value RPCHandler::doUnlAdd(Json::Value jvRequest, int& cost, ScopedLock& M
if (raNodePublic.setNodePublic(strNode))
{
theApp->getUNL().nodeAddPublic(raNodePublic, UniqueNodeList::vsManual, strComment);
theApp->getUNL().nodeAddPublic(raNodePublic, IUniqueNodeList::vsManual, strComment);
return "adding node by public key";
}
else
{
theApp->getUNL().nodeAddDomain(strNode, UniqueNodeList::vsManual, strComment);
theApp->getUNL().nodeAddDomain(strNode, IUniqueNodeList::vsManual, strComment);
return "adding node by domain";
}