Return AccountPublic in JSON.

This commit is contained in:
Arthur Britto
2012-03-18 19:25:06 -07:00
parent db73b12c9f
commit 0e78e379c7
2 changed files with 3 additions and 2 deletions

View File

@@ -278,7 +278,7 @@ Json::Value RPCServer::doLock(Json::Value &params)
}
Json::Value RPCServer::doUnlock(Json::Value &params)
{ // unlock FXXXX
{ // unlock sXXXX
// unlock "<pass phrase>"
std::string param;
@@ -291,7 +291,7 @@ Json::Value RPCServer::doUnlock(Json::Value &params)
NewcoinAddress familySeed;
if(familySeed.setFamilySeed(param))
// FXXX
// sXXX
family=theApp->getWallet().addFamily(familySeed, false);
else
// pass phrase

View File

@@ -274,6 +274,7 @@ Json::Value LocalAccount::getJson() const
Json::Value ret(Json::objectValue);
ret["Family"]=getFamilyName();
ret["AccountID"]=getAddress().humanAccountID();
ret["AccountPublic"]=getAddress().humanAccountPublic();
ret["FullName"]=getFullName();
ret["Issued"]=Json::Value(isIssued());
ret["IsLocked"]=mFamily->isLocked();