The 'ledger' RPC command should be considered high burden if 'full' is set.

This commit is contained in:
JoelKatz
2013-11-17 20:11:40 -08:00
parent 4e4942e357
commit 833435f8c2

View File

@@ -2057,7 +2057,7 @@ Json::Value RPCHandler::doLedger (Json::Value params, Resource::Charge& loadType
| (bTransactions ? LEDGER_JSON_DUMP_TXRP : 0)
| (bAccounts ? LEDGER_JSON_DUMP_STATE : 0);
if (bFull || bAccounts)
if (bFull || bAccounts | bExpand)
{
if (getApp().getFeeTrack().isLoadedLocal() && (mRole != Config::ADMIN))
{