mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Return AccountPublic in JSON.
This commit is contained in:
@@ -278,7 +278,7 @@ Json::Value RPCServer::doLock(Json::Value ¶ms)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Json::Value RPCServer::doUnlock(Json::Value ¶ms)
|
Json::Value RPCServer::doUnlock(Json::Value ¶ms)
|
||||||
{ // 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 ¶ms)
|
|||||||
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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user