Skip to content

Commit

Permalink
Cherry-pick #9581 into release/0.43 (#9591)
Browse files Browse the repository at this point in the history
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: David S Bakin <[email protected]>
Co-authored-by: David S Bakin <[email protected]>
  • Loading branch information
lukelee-sl and david-bakin-sl authored Nov 1, 2023
1 parent ddc7f2b commit aaba1db
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ contracts.knownBlockHash=
contracts.localCall.estRetBytes=32
contracts.maxGasPerSec=15000000
contracts.maxKvPairs.aggregate=500_000_000
contracts.maxKvPairs.individual=163_840
contracts.maxKvPairs.individual=16_384_000
contracts.maxNumber=5_000_000
contracts.maxRefundPercentOfGasLimit=20
contracts.precompile.exchangeRateGasCost=100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public record ContractsConfig(
@ConfigProperty(defaultValue = "15000000") @NetworkProperty long maxGasPerSec,
@ConfigProperty(value = "maxKvPairs.aggregate", defaultValue = "500000000") @NetworkProperty
long maxKvPairsAggregate,
@ConfigProperty(value = "maxKvPairs.individual", defaultValue = "163840") @NetworkProperty
@ConfigProperty(value = "maxKvPairs.individual", defaultValue = "16384000") @NetworkProperty
int maxKvPairsIndividual,
@ConfigProperty(defaultValue = "5000000") @NetworkProperty long maxNumber,
// CHAINID returns 295 (0x0127) for mainnet, 296 (0x0128) for testnet, and 297 (0x0129) for previewnet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
@Measurement(iterations = 3, time = 30)
public class SizeLimitedStorageBench {
// Application-level config overrides
@Param("163840")
@Param("16384000")
int maxContractKvPairs;

// Config for the starting database to load/create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public interface StakingActivityModule {
@Provides
@Singleton
static GlobalDynamicProperties provideGlobalDynamicProperties() {
return mockPropertiesWith(500_000_000, 163_840);
return mockPropertiesWith(500_000_000, 16_384_000);
}

@Provides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private EvmKeyValueSource() {
throw new UnsupportedOperationException();
}

private static final int NUM_KEYS = 163_840;
private static final int NUM_KEYS = 16_384_000;
private static final long ENTROPY_SEED = 42_424_242L;
private static final UInt256[] keys = new UInt256[NUM_KEYS];
private static final SplittableRandom r = new SplittableRandom(ENTROPY_SEED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ contracts.knownBlockHash=
contracts.localCall.estRetBytes=4096
contracts.maxGasPerSec=15000000
contracts.maxKvPairs.aggregate=500_000_000
contracts.maxKvPairs.individual=163_840
contracts.maxKvPairs.individual=16_384_000
contracts.maxNumber=5_000_000
contracts.maxRefundPercentOfGasLimit=20
contracts.precompile.exchangeRateGasCost=100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ class BootstrapPropertiesTest {
entry(CONTRACTS_LOCAL_CALL_EST_RET_BYTES, 32),
entry(CONTRACTS_MAX_GAS_PER_SEC, 15000000L),
entry(CONTRACTS_MAX_KV_PAIRS_AGGREGATE, 500_000_000L),
entry(CONTRACTS_MAX_KV_PAIRS_INDIVIDUAL, 163_840),
entry(CONTRACTS_MAX_KV_PAIRS_INDIVIDUAL, 16_384_000),
entry(CONTRACTS_CHAIN_ID, 295),
entry(CONTRACTS_THROTTLE_THROTTLE_BY_GAS, true),
entry(CONTRACTS_PRECOMPILE_HTS_UNSUPPORTED_CUSTOM_FEE_RECEIVER_DEBITS, EnumSet.of(CustomFeeType.FIXED_FEE)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ contracts.knownBlockHash=
contracts.localCall.estRetBytes=32
contracts.maxGasPerSec=15000000
contracts.maxKvPairs.aggregate=500_000_000
contracts.maxKvPairs.individual=163_840
contracts.maxKvPairs.individual=16_384_000
contracts.maxNumber=5_000_000
contracts.maxRefundPercentOfGasLimit=20
contracts.precompile.exchangeRateGasCost=100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ contracts.knownBlockHash=
contracts.localCall.estRetBytes=32
contracts.maxGasPerSec=15000000
contracts.maxKvPairs.aggregate=500_000_000
contracts.maxKvPairs.individual=163_840
contracts.maxKvPairs.individual=16_384_000
contracts.maxNumber=5_000_000
contracts.maxRefundPercentOfGasLimit=20
contracts.precompile.exchangeRateGasCost=100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private HapiSpec storageRentChargedOnlyAfterInitialFreePeriodIsComplete() {
opLog.info("Renewal fee with storage: {}", renewalFeeWithStorage.get());
assertTrue(renewalFeeWithStorage.get() > renewalFeeWithoutStorage.get());
}),
overriding(INDIVIDUAL_KV_LIMIT_PROP, String.valueOf(163_840)));
overriding(INDIVIDUAL_KV_LIMIT_PROP, String.valueOf(16_384_000)));
}

private HapiSpec autoRenewWorksAsExpected() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ contracts.knownBlockHash=
contracts.localCall.estRetBytes=32
contracts.maxGasPerSec=15000000
contracts.maxKvPairs.aggregate=500_000_000
contracts.maxKvPairs.individual=163_840
contracts.maxKvPairs.individual=16_384_000
contracts.maxNumber=5_000_000
contracts.maxRefundPercentOfGasLimit=20
contracts.precompile.exchangeRateGasCost=100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ contracts.evm.version.dynamic=false
contracts.localCall.estRetBytes=32
contracts.maxGas=8000000
contracts.maxKvPairs.aggregate=500_000_000
contracts.maxKvPairs.individual=163_840
contracts.maxKvPairs.individual=16_384_000
contracts.chainId=298
contracts.throttle.throttleByGas=true
contracts.maxRefundPercentOfGasLimit=20
Expand Down

0 comments on commit aaba1db

Please sign in to comment.