mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Finish moving Json code.
This commit is contained in:
12
Wallet.cpp
12
Wallet.cpp
@@ -366,6 +366,18 @@ std::string LocalAccount::getFamilyName() const
|
||||
return mFamily->getShortName();
|
||||
}
|
||||
|
||||
Json::Value LocalAccount::getJson() const
|
||||
{
|
||||
Json::Value ret(Json::objectValue);
|
||||
ret["Family"]=getFamilyName();
|
||||
ret["AccountID"]=NewcoinAddress(getAddress()).GetString();
|
||||
ret["ShortName"]=getShortName();
|
||||
ret["FullName"]=getFullName();
|
||||
ret["Issued"]=Json::Value(isIssued());
|
||||
ret["IsLocked"]=mFamily->isLocked();
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool LocalAccount::isIssued() const
|
||||
{
|
||||
return mSeq < mFamily->getSeq();
|
||||
|
||||
Reference in New Issue
Block a user