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

View File

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