mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
The 'ledger' RPC command should be considered high burden if 'full' is set.
This commit is contained in:
@@ -2057,7 +2057,7 @@ Json::Value RPCHandler::doLedger (Json::Value params, Resource::Charge& loadType
|
|||||||
| (bTransactions ? LEDGER_JSON_DUMP_TXRP : 0)
|
| (bTransactions ? LEDGER_JSON_DUMP_TXRP : 0)
|
||||||
| (bAccounts ? LEDGER_JSON_DUMP_STATE : 0);
|
| (bAccounts ? LEDGER_JSON_DUMP_STATE : 0);
|
||||||
|
|
||||||
if (bFull || bAccounts)
|
if (bFull || bAccounts | bExpand)
|
||||||
{
|
{
|
||||||
if (getApp().getFeeTrack().isLoadedLocal() && (mRole != Config::ADMIN))
|
if (getApp().getFeeTrack().isLoadedLocal() && (mRole != Config::ADMIN))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user