Update size and compute cap defaults (#5417)

This commit is contained in:
Mayukha Vadari
2025-05-01 18:41:51 -04:00
committed by GitHub
parent bb9bc764bc
commit c533abd8b6
3 changed files with 9 additions and 9 deletions

View File

@@ -1259,7 +1259,7 @@
# default. Don't change this without understanding the consequences.
#
# Example:
# extension_compute_limit = 2000000 # 2 million gas
# extension_compute_limit = 1000000 # 1 million gas
#
# extension_size_limit = <bytes>
#
@@ -1271,7 +1271,7 @@
# default. Don't change this without understanding the consequences.
#
# Example:
# extension_size_limit = 2000000 # 2 mb
# extension_size_limit = 100000 # 100 kb
#
# gas_price = <bytes>
#
@@ -1281,7 +1281,7 @@
# default. Don't change this without understanding the consequences.
#
# Example:
# gas_price = 2000000 # 2 drops per gas
# gas_price = 1000000 # 1 drop per gas
#-------------------------------------------------------------------------------
#
# 9. Misc Settings

View File

@@ -38,9 +38,9 @@ setupConfigForUnitTests(Config& cfg)
cfg.FEES.reference_fee = 10;
cfg.FEES.account_reserve = XRP(200).value().xrp().drops();
cfg.FEES.owner_reserve = XRP(50).value().xrp().drops();
cfg.FEES.extension_compute_limit = 4294967295;
cfg.FEES.extension_size_limit = 4294967295;
cfg.FEES.gas_price = 1000000;
cfg.FEES.extension_compute_limit = 1'000'000;
cfg.FEES.extension_size_limit = 100'000;
cfg.FEES.gas_price = 1'000'000; // 1 drop = 1,000,000 micro-drops
// The Beta API (currently v2) is always available to tests
cfg.BETA_RPC_API = true;

View File

@@ -74,13 +74,13 @@ struct FeeSetup
XRPAmount owner_reserve{2 * DROPS_PER_XRP};
/** The compute limit for Feature Extensions. */
std::uint32_t extension_compute_limit{4294967295};
std::uint32_t extension_compute_limit{1'000'000};
/** The WASM size limit for Feature Extensions. */
std::uint32_t extension_size_limit{4294967295};
std::uint32_t extension_size_limit{100'000};
/** The price of 1 WASM gas, in micro-drops. */
std::uint32_t gas_price{1000000};
std::uint32_t gas_price{1'000'000};
/* (Remember to update the example cfg files when changing any of these
* values.) */