File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 12591259# default. Don't change this without understanding the consequences.
12601260#
12611261# Example:
1262- # extension_compute_limit = 2000000 # 2 million gas
1262+ # extension_compute_limit = 1000000 # 1 million gas
12631263#
12641264# extension_size_limit = <bytes>
12651265#
12711271# default. Don't change this without understanding the consequences.
12721272#
12731273# Example:
1274- # extension_size_limit = 2000000 # 2 mb
1274+ # extension_size_limit = 100000 # 100 kb
12751275#
12761276# gas_price = <bytes>
12771277#
12811281# default. Don't change this without understanding the consequences.
12821282#
12831283# Example:
1284- # gas_price = 2000000 # 2 drops per gas
1284+ # gas_price = 1000000 # 1 drop per gas
12851285# -------------------------------------------------------------------------------
12861286#
12871287# 9. Misc Settings
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ setupConfigForUnitTests(Config& cfg)
3838 cfg.FEES .reference_fee = 10 ;
3939 cfg.FEES .account_reserve = XRP (200 ).value ().xrp ().drops ();
4040 cfg.FEES .owner_reserve = XRP (50 ).value ().xrp ().drops ();
41- cfg.FEES .extension_compute_limit = 4294967295 ;
42- cfg.FEES .extension_size_limit = 4294967295 ;
43- cfg.FEES .gas_price = 1000000 ;
41+ cfg.FEES .extension_compute_limit = 1'000'000 ;
42+ cfg.FEES .extension_size_limit = 100'000 ;
43+ cfg.FEES .gas_price = 1'000'000 ; // 1 drop = 1,000,000 micro-drops
4444
4545 // The Beta API (currently v2) is always available to tests
4646 cfg.BETA_RPC_API = true ;
Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ struct FeeSetup
7474 XRPAmount owner_reserve{2 * DROPS_PER_XRP};
7575
7676 /* * The compute limit for Feature Extensions. */
77- std::uint32_t extension_compute_limit{4294967295 };
77+ std::uint32_t extension_compute_limit{1'000'000 };
7878
7979 /* * The WASM size limit for Feature Extensions. */
80- std::uint32_t extension_size_limit{4294967295 };
80+ std::uint32_t extension_size_limit{100'000 };
8181
8282 /* * The price of 1 WASM gas, in micro-drops. */
83- std::uint32_t gas_price{1000000 };
83+ std::uint32_t gas_price{1'000'000 };
8484
8585 /* (Remember to update the example cfg files when changing any of these
8686 * values.) */
You can’t perform that action at this time.
0 commit comments