mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
changed some RPC returns
This commit is contained in:
@@ -412,7 +412,8 @@ void Ledger::addJson(Json::Value& ret, int options)
|
||||
}
|
||||
ledger["AccountState"] = state;
|
||||
}
|
||||
ret[boost::lexical_cast<std::string>(mLedgerSeq)] = ledger;
|
||||
ledger["SeqNum"]=boost::lexical_cast<std::string>(mLedgerSeq);
|
||||
ret["ledger"] = ledger;
|
||||
}
|
||||
|
||||
void Ledger::setAcquiring(void)
|
||||
|
||||
@@ -1133,7 +1133,9 @@ Json::Value RPCServer::doPasswordSet(Json::Value& params)
|
||||
Json::Value RPCServer::doPeers(Json::Value& params)
|
||||
{
|
||||
// peers
|
||||
return theApp->getConnectionPool().getPeersJson();
|
||||
Json::Value obj(Json::objectValue);
|
||||
obj['peers']=theApp->getConnectionPool().getPeersJson();
|
||||
return obj;
|
||||
}
|
||||
|
||||
// send regular_seed paying_account account_id amount [currency] [send_max] [send_currency]
|
||||
|
||||
Reference in New Issue
Block a user