mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanup.
This commit is contained in:
@@ -222,10 +222,10 @@ Json::Value RPCServer::doAccountInfo(Json::Value ¶ms)
|
|||||||
{ // accountinfo <family>:<number>
|
{ // accountinfo <family>:<number>
|
||||||
// accountinfo <account>
|
// accountinfo <account>
|
||||||
std::string acct;
|
std::string acct;
|
||||||
if(!extractString(acct, params, 0))
|
if (!extractString(acct, params, 0))
|
||||||
return JSONRPCError(500, "Invalid account identifier");
|
return JSONRPCError(500, "Invalid account identifier");
|
||||||
|
|
||||||
LocalAccount::pointer account=theApp->getWallet().parseAccount(acct);
|
LocalAccount::pointer account = theApp->getWallet().parseAccount(acct);
|
||||||
if(account) return account->getJson();
|
if(account) return account->getJson();
|
||||||
|
|
||||||
NewcoinAddress acctid;
|
NewcoinAddress acctid;
|
||||||
@@ -233,7 +233,7 @@ Json::Value RPCServer::doAccountInfo(Json::Value ¶ms)
|
|||||||
return JSONRPCError(500, "Unable to parse account");
|
return JSONRPCError(500, "Unable to parse account");
|
||||||
|
|
||||||
LocalAccount::pointer lac(theApp->getWallet().getLocalAccount(acctid));
|
LocalAccount::pointer lac(theApp->getWallet().getLocalAccount(acctid));
|
||||||
if(!!lac) return lac->getJson();
|
if (!!lac) return lac->getJson();
|
||||||
|
|
||||||
AccountState::pointer as=theApp->getMasterLedger().getCurrentLedger()->getAccountState(acctid);
|
AccountState::pointer as=theApp->getMasterLedger().getCurrentLedger()->getAccountState(acctid);
|
||||||
Json::Value ret(Json::objectValue);
|
Json::Value ret(Json::objectValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user