From e1ff6fb8e2081d2bcd5c5e12798a650f39f8cfe3 Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Tue, 26 Nov 2024 21:05:38 -0800 Subject: [PATCH] Use latest cpu cost types (#645) * Use latest cpu cost types * separate settings files by protocol version * Add a readme for config-settings * fix * Update README.md * Update out of date testnet settings * Update testnet.json --- local/core/etc/config-settings/README.md | 2 + .../core/etc/config-settings/p21/testnet.json | 306 +++++++++++++ .../etc/config-settings/p21/unlimited.json | 306 +++++++++++++ .../core/etc/config-settings/p22/testnet.json | 431 ++++++++++++++++++ .../etc/config-settings/p22/unlimited.json | 431 ++++++++++++++++++ local/core/etc/config-settings/testnet.json | 77 ---- local/core/etc/config-settings/unlimited.json | 77 ---- start | 4 +- 8 files changed, 1478 insertions(+), 156 deletions(-) create mode 100644 local/core/etc/config-settings/README.md create mode 100644 local/core/etc/config-settings/p21/testnet.json create mode 100644 local/core/etc/config-settings/p21/unlimited.json create mode 100644 local/core/etc/config-settings/p22/testnet.json create mode 100644 local/core/etc/config-settings/p22/unlimited.json delete mode 100644 local/core/etc/config-settings/testnet.json delete mode 100644 local/core/etc/config-settings/unlimited.json diff --git a/local/core/etc/config-settings/README.md b/local/core/etc/config-settings/README.md new file mode 100644 index 00000000..89c8883e --- /dev/null +++ b/local/core/etc/config-settings/README.md @@ -0,0 +1,2 @@ +# config-settings +This directory contains Soroban settings upgrade files for each default protocol version (set with the arg `PROTOCOL_VERSION_DEFAULT`) specified on each on the three builds (`latest`, `testing`, and `future`). They need to be separated by protocol version because the number of cost types is dependant on protocol, and we specifically want to capture the cpu cost type changes we make outside of protocol boundaries. diff --git a/local/core/etc/config-settings/p21/testnet.json b/local/core/etc/config-settings/p21/testnet.json new file mode 100644 index 00000000..bc54049e --- /dev/null +++ b/local/core/etc/config-settings/p21/testnet.json @@ -0,0 +1,306 @@ +{ + "updated_entry": [ + { + "contract_max_size_bytes": 65536 + }, + { + "contract_compute_v0": { + "ledger_max_instructions": 500000000, + "tx_max_instructions": 100000000, + "fee_rate_per_instructions_increment": 25, + "tx_memory_limit": 41943040 + } + }, + { + "contract_ledger_cost_v0": { + "ledger_max_read_ledger_entries": 200, + "ledger_max_read_bytes": 500000, + "ledger_max_write_ledger_entries": 125, + "ledger_max_write_bytes": 143360, + "tx_max_read_ledger_entries": 40, + "tx_max_read_bytes": 200000, + "tx_max_write_ledger_entries": 25, + "tx_max_write_bytes": 132096, + "fee_read_ledger_entry": 6250, + "fee_write_ledger_entry": 10000, + "fee_read1_kb": 1786, + "bucket_list_target_size_bytes": 14495514624, + "write_fee1_kb_bucket_list_low": -12034, + "write_fee1_kb_bucket_list_high": 115390, + "bucket_list_write_fee_growth_factor": 1000 + } + }, + { + "contract_historical_data_v0": { + "fee_historical1_kb": 16235 + } + }, + { + "contract_events_v0": { + "tx_max_contract_events_size_bytes": 8198, + "fee_contract_events1_kb": 10000 + } + }, + { + "contract_bandwidth_v0": { + "ledger_max_txs_size_bytes": 71680, + "tx_max_size_bytes": 71680, + "fee_tx_size1_kb": 1624 + } + }, + { + "contract_cost_params_cpu_instructions": [ + { + "ext": "v0", + "const_term": 4, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 434, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 42, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 44, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 295, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 60, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 221, + "linear_term": 26 + }, + { + "ext": "v0", + "const_term": 331, + "linear_term": 4369 + }, + { + "ext": "v0", + "const_term": 3636, + "linear_term": 7013 + }, + { + "ext": "v0", + "const_term": 40256, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 377551, + "linear_term": 4059 + }, + { + "ext": "v0", + "const_term": 417482, + "linear_term": 45712 + }, + { + "ext": "v0", + "const_term": 41142, + "linear_term": 634 + }, + { + "ext": "v0", + "const_term": 1945, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 6481, + "linear_term": 5943 + }, + { + "ext": "v0", + "const_term": 711, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 2314804, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4176, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4716, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4680, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4256, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 884, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1059, + "linear_term": 502 + }, + { + "ext": "v0", + "const_term": 73077, + "linear_term": 25410 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 540752 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 176363 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 29989 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 1061449 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 237336 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 328476 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 701845 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 429383 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 28 + }, + { + "ext": "v0", + "const_term": 43030, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 7556 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 10711 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 3300 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 23038 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 42488 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 828974 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 297100 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 14 + }, + { + "ext": "v0", + "const_term": 1882, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 3000906, + "linear_term": 0 + } + ] + }, + { + "contract_data_key_size_bytes": 200 + }, + { + "contract_data_entry_size_bytes": 65536 + }, + { + "state_archival": { + "max_entry_ttl": 3110400, + "min_temporary_ttl": 17280, + "min_persistent_ttl": 2073600, + "persistent_rent_rate_denominator": 1402, + "temp_rent_rate_denominator": 2804, + "max_entries_to_archive": 1000, + "bucket_list_size_window_sample_size": 30, + "bucket_list_window_sample_period": 64, + "eviction_scan_size": 100000, + "starting_eviction_scan_level": 7 + } + }, + { + "contract_execution_lanes": { + "ledger_max_tx_count": 100 + } + } + ] +} \ No newline at end of file diff --git a/local/core/etc/config-settings/p21/unlimited.json b/local/core/etc/config-settings/p21/unlimited.json new file mode 100644 index 00000000..7c7864f3 --- /dev/null +++ b/local/core/etc/config-settings/p21/unlimited.json @@ -0,0 +1,306 @@ +{ + "updated_entry": [ + { + "contract_max_size_bytes": 4294967295 + }, + { + "contract_compute_v0": { + "ledger_max_instructions": 2305843009213693951, + "tx_max_instructions": 2305843009213693951, + "fee_rate_per_instructions_increment": 100, + "tx_memory_limit": 4294967295 + } + }, + { + "contract_ledger_cost_v0": { + "ledger_max_read_ledger_entries": 4294967295, + "ledger_max_read_bytes": 4294967295, + "ledger_max_write_ledger_entries": 4294967295, + "ledger_max_write_bytes": 4294967295, + "tx_max_read_ledger_entries": 4294967295, + "tx_max_read_bytes": 4294967295, + "tx_max_write_ledger_entries": 4294967295, + "tx_max_write_bytes": 4294967295, + "fee_read_ledger_entry": 1000, + "fee_write_ledger_entry": 3000, + "fee_read1_kb": 1000, + "bucket_list_target_size_bytes": 2305843009213694000, + "write_fee1_kb_bucket_list_low": 1000, + "write_fee1_kb_bucket_list_high": 4000000, + "bucket_list_write_fee_growth_factor": 1000 + } + }, + { + "contract_historical_data_v0": { + "fee_historical1_kb": 5000 + } + }, + { + "contract_events_v0": { + "tx_max_contract_events_size_bytes": 4294967295, + "fee_contract_events1_kb": 300 + } + }, + { + "contract_bandwidth_v0": { + "ledger_max_txs_size_bytes": 4294967295, + "tx_max_size_bytes": 4294967295, + "fee_tx_size1_kb": 500 + } + }, + { + "contract_cost_params_cpu_instructions": [ + { + "ext": "v0", + "const_term": 4, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 434, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 42, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 44, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 295, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 60, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 221, + "linear_term": 26 + }, + { + "ext": "v0", + "const_term": 331, + "linear_term": 4369 + }, + { + "ext": "v0", + "const_term": 3636, + "linear_term": 7013 + }, + { + "ext": "v0", + "const_term": 40256, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 377551, + "linear_term": 4059 + }, + { + "ext": "v0", + "const_term": 417482, + "linear_term": 45712 + }, + { + "ext": "v0", + "const_term": 41142, + "linear_term": 634 + }, + { + "ext": "v0", + "const_term": 1945, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 6481, + "linear_term": 5943 + }, + { + "ext": "v0", + "const_term": 711, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 2314804, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4176, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4716, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4680, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4256, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 884, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1059, + "linear_term": 502 + }, + { + "ext": "v0", + "const_term": 73077, + "linear_term": 25410 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 540752 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 176363 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 29989 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 1061449 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 237336 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 328476 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 701845 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 429383 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 28 + }, + { + "ext": "v0", + "const_term": 43030, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 7556 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 10711 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 3300 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 23038 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 42488 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 828974 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 297100 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 14 + }, + { + "ext": "v0", + "const_term": 1882, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 3000906, + "linear_term": 0 + } + ] + }, + { + "contract_data_key_size_bytes": 4294967295 + }, + { + "contract_data_entry_size_bytes": 4294967295 + }, + { + "state_archival": { + "max_entry_ttl": 3110400, + "min_temporary_ttl": 16, + "min_persistent_ttl": 120960, + "persistent_rent_rate_denominator": 535680, + "temp_rent_rate_denominator": 5356800, + "max_entries_to_archive": 100, + "bucket_list_size_window_sample_size": 30, + "bucket_list_window_sample_period": 64, + "eviction_scan_size": 100000, + "starting_eviction_scan_level": 6 + } + }, + { + "contract_execution_lanes": { + "ledger_max_tx_count": 4294967295 + } + } + ] +} diff --git a/local/core/etc/config-settings/p22/testnet.json b/local/core/etc/config-settings/p22/testnet.json new file mode 100644 index 00000000..d15274b6 --- /dev/null +++ b/local/core/etc/config-settings/p22/testnet.json @@ -0,0 +1,431 @@ +{ + "updated_entry": [ + { + "contract_max_size_bytes": 65536 + }, + { + "contract_compute_v0": { + "ledger_max_instructions": 500000000, + "tx_max_instructions": 100000000, + "fee_rate_per_instructions_increment": 25, + "tx_memory_limit": 41943040 + } + }, + { + "contract_ledger_cost_v0": { + "ledger_max_read_ledger_entries": 200, + "ledger_max_read_bytes": 500000, + "ledger_max_write_ledger_entries": 125, + "ledger_max_write_bytes": 143360, + "tx_max_read_ledger_entries": 40, + "tx_max_read_bytes": 200000, + "tx_max_write_ledger_entries": 25, + "tx_max_write_bytes": 132096, + "fee_read_ledger_entry": 6250, + "fee_write_ledger_entry": 10000, + "fee_read1_kb": 1786, + "bucket_list_target_size_bytes": 14495514624, + "write_fee1_kb_bucket_list_low": -12034, + "write_fee1_kb_bucket_list_high": 115390, + "bucket_list_write_fee_growth_factor": 1000 + } + }, + { + "contract_historical_data_v0": { + "fee_historical1_kb": 16235 + } + }, + { + "contract_events_v0": { + "tx_max_contract_events_size_bytes": 8198, + "fee_contract_events1_kb": 10000 + } + }, + { + "contract_bandwidth_v0": { + "ledger_max_txs_size_bytes": 71680, + "tx_max_size_bytes": 71680, + "fee_tx_size1_kb": 1624 + } + }, + { + "contract_cost_params_cpu_instructions": [ + { + "ext": "v0", + "const_term": 4, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 434, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 42, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 44, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 295, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 60, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 221, + "linear_term": 26 + }, + { + "ext": "v0", + "const_term": 331, + "linear_term": 4369 + }, + { + "ext": "v0", + "const_term": 3636, + "linear_term": 7013 + }, + { + "ext": "v0", + "const_term": 40256, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 377551, + "linear_term": 4059 + }, + { + "ext": "v0", + "const_term": 417482, + "linear_term": 45712 + }, + { + "ext": "v0", + "const_term": 41142, + "linear_term": 634 + }, + { + "ext": "v0", + "const_term": 1945, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 6481, + "linear_term": 5943 + }, + { + "ext": "v0", + "const_term": 711, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 2314804, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4176, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4716, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4680, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4256, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 884, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1059, + "linear_term": 502 + }, + { + "ext": "v0", + "const_term": 73077, + "linear_term": 25410 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 540752 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 176363 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 29989 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 1061449 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 237336 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 328476 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 701845 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 429383 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 28 + }, + { + "ext": "v0", + "const_term": 43030, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 7556 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 10711 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 3300 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 23038 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 42488 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 828974 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 297100 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 14 + }, + { + "ext": "v0", + "const_term": 1882, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 3000906, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 661, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 985, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1934, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 730510, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 5921, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1057822, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 92642, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 100742, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 7689, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 2458985, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 2426722, + "linear_term": 96397671 + }, + { + "ext": "v0", + "const_term": 1541554, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 3211191, + "linear_term": 6713 + }, + { + "ext": "v0", + "const_term": 25207, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 7873219, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 8035968, + "linear_term": 309667335 + }, + { + "ext": "v0", + "const_term": 2420202, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 7050564, + "linear_term": 6797 + }, + { + "ext": "v0", + "const_term": 10558948, + "linear_term": 632860943 + }, + { + "ext": "v0", + "const_term": 1994, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1155, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 74, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 332, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 691, + "linear_term": 74558 + }, + { + "ext": "v0", + "const_term": 35421, + "linear_term": 0 + } + ] + }, + { + "contract_data_key_size_bytes": 200 + }, + { + "contract_data_entry_size_bytes": 65536 + }, + { + "state_archival": { + "max_entry_ttl": 3110400, + "min_temporary_ttl": 17280, + "min_persistent_ttl": 2073600, + "persistent_rent_rate_denominator": 1402, + "temp_rent_rate_denominator": 2804, + "max_entries_to_archive": 1000, + "bucket_list_size_window_sample_size": 30, + "bucket_list_window_sample_period": 64, + "eviction_scan_size": 100000, + "starting_eviction_scan_level": 7 + } + }, + { + "contract_execution_lanes": { + "ledger_max_tx_count": 100 + } + } + ] +} diff --git a/local/core/etc/config-settings/p22/unlimited.json b/local/core/etc/config-settings/p22/unlimited.json new file mode 100644 index 00000000..f862690b --- /dev/null +++ b/local/core/etc/config-settings/p22/unlimited.json @@ -0,0 +1,431 @@ +{ + "updated_entry": [ + { + "contract_max_size_bytes": 4294967295 + }, + { + "contract_compute_v0": { + "ledger_max_instructions": 2305843009213693951, + "tx_max_instructions": 2305843009213693951, + "fee_rate_per_instructions_increment": 100, + "tx_memory_limit": 4294967295 + } + }, + { + "contract_ledger_cost_v0": { + "ledger_max_read_ledger_entries": 4294967295, + "ledger_max_read_bytes": 4294967295, + "ledger_max_write_ledger_entries": 4294967295, + "ledger_max_write_bytes": 4294967295, + "tx_max_read_ledger_entries": 4294967295, + "tx_max_read_bytes": 4294967295, + "tx_max_write_ledger_entries": 4294967295, + "tx_max_write_bytes": 4294967295, + "fee_read_ledger_entry": 1000, + "fee_write_ledger_entry": 3000, + "fee_read1_kb": 1000, + "bucket_list_target_size_bytes": 2305843009213694000, + "write_fee1_kb_bucket_list_low": 1000, + "write_fee1_kb_bucket_list_high": 4000000, + "bucket_list_write_fee_growth_factor": 1000 + } + }, + { + "contract_historical_data_v0": { + "fee_historical1_kb": 5000 + } + }, + { + "contract_events_v0": { + "tx_max_contract_events_size_bytes": 4294967295, + "fee_contract_events1_kb": 300 + } + }, + { + "contract_bandwidth_v0": { + "ledger_max_txs_size_bytes": 4294967295, + "tx_max_size_bytes": 4294967295, + "fee_tx_size1_kb": 500 + } + }, + { + "contract_cost_params_cpu_instructions": [ + { + "ext": "v0", + "const_term": 4, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 434, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 42, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 44, + "linear_term": 16 + }, + { + "ext": "v0", + "const_term": 295, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 60, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 221, + "linear_term": 26 + }, + { + "ext": "v0", + "const_term": 331, + "linear_term": 4369 + }, + { + "ext": "v0", + "const_term": 3636, + "linear_term": 7013 + }, + { + "ext": "v0", + "const_term": 40256, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 377551, + "linear_term": 4059 + }, + { + "ext": "v0", + "const_term": 417482, + "linear_term": 45712 + }, + { + "ext": "v0", + "const_term": 41142, + "linear_term": 634 + }, + { + "ext": "v0", + "const_term": 1945, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 6481, + "linear_term": 5943 + }, + { + "ext": "v0", + "const_term": 711, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 2314804, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4176, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4716, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4680, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 4256, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 884, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1059, + "linear_term": 502 + }, + { + "ext": "v0", + "const_term": 73077, + "linear_term": 25410 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 540752 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 176363 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 29989 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 1061449 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 237336 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 328476 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 701845 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 429383 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 28 + }, + { + "ext": "v0", + "const_term": 43030, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 7556 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 10711 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 3300 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 23038 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 42488 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 828974 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 297100 + }, + { + "ext": "v0", + "const_term": 0, + "linear_term": 14 + }, + { + "ext": "v0", + "const_term": 1882, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 3000906, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 661, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 985, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1934, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 730510, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 5921, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1057822, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 92642, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 100742, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 7689, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 2458985, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 2426722, + "linear_term": 96397671 + }, + { + "ext": "v0", + "const_term": 1541554, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 3211191, + "linear_term": 6713 + }, + { + "ext": "v0", + "const_term": 25207, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 7873219, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 8035968, + "linear_term": 309667335 + }, + { + "ext": "v0", + "const_term": 2420202, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 7050564, + "linear_term": 6797 + }, + { + "ext": "v0", + "const_term": 10558948, + "linear_term": 632860943 + }, + { + "ext": "v0", + "const_term": 1994, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 1155, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 74, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 332, + "linear_term": 0 + }, + { + "ext": "v0", + "const_term": 691, + "linear_term": 74558 + }, + { + "ext": "v0", + "const_term": 35421, + "linear_term": 0 + } + ] + }, + { + "contract_data_key_size_bytes": 4294967295 + }, + { + "contract_data_entry_size_bytes": 4294967295 + }, + { + "state_archival": { + "max_entry_ttl": 3110400, + "min_temporary_ttl": 16, + "min_persistent_ttl": 120960, + "persistent_rent_rate_denominator": 535680, + "temp_rent_rate_denominator": 5356800, + "max_entries_to_archive": 100, + "bucket_list_size_window_sample_size": 30, + "bucket_list_window_sample_period": 64, + "eviction_scan_size": 100000, + "starting_eviction_scan_level": 6 + } + }, + { + "contract_execution_lanes": { + "ledger_max_tx_count": 4294967295 + } + } + ] +} diff --git a/local/core/etc/config-settings/testnet.json b/local/core/etc/config-settings/testnet.json deleted file mode 100644 index cae277f2..00000000 --- a/local/core/etc/config-settings/testnet.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "updated_entry": [ - { - "contract_max_size_bytes": 65536 - }, - { - "contract_compute_v0": { - "ledger_max_instructions": 100000000, - "tx_max_instructions": 100000000, - "fee_rate_per_instructions_increment": 25, - "tx_memory_limit": 41943040 - } - }, - { - "contract_ledger_cost_v0": { - "ledger_max_read_ledger_entries": 40, - "ledger_max_read_bytes": 133120, - "ledger_max_write_ledger_entries": 25, - "ledger_max_write_bytes": 66560, - "tx_max_read_ledger_entries": 40, - "tx_max_read_bytes": 133120, - "tx_max_write_ledger_entries": 25, - "tx_max_write_bytes": 66560, - "fee_read_ledger_entry": 6250, - "fee_write_ledger_entry": 10000, - "fee_read1_kb": 1786, - "bucket_list_target_size_bytes": 14495514624, - "write_fee1_kb_bucket_list_low": -12034, - "write_fee1_kb_bucket_list_high": 115390, - "bucket_list_write_fee_growth_factor": 1000 - } - }, - { - "contract_historical_data_v0": { - "fee_historical1_kb": 16235 - } - }, - { - "contract_events_v0": { - "tx_max_contract_events_size_bytes": 8198, - "fee_contract_events1_kb": 10000 - } - }, - { - "contract_bandwidth_v0": { - "ledger_max_txs_size_bytes": 71680, - "tx_max_size_bytes": 71680, - "fee_tx_size1_kb": 1624 - } - }, - { - "contract_data_key_size_bytes": 200 - }, - { - "contract_data_entry_size_bytes": 65536 - }, - { - "state_archival": { - "max_entry_ttl": 3110400, - "min_temporary_ttl": 17280, - "min_persistent_ttl": 2073600, - "persistent_rent_rate_denominator": 1402, - "temp_rent_rate_denominator": 2804, - "max_entries_to_archive": 1000, - "bucket_list_size_window_sample_size": 30, - "bucket_list_window_sample_period": 64, - "eviction_scan_size": 100000, - "starting_eviction_scan_level": 7 - } - }, - { - "contract_execution_lanes": { - "ledger_max_tx_count": 100 - } - } - ] -} \ No newline at end of file diff --git a/local/core/etc/config-settings/unlimited.json b/local/core/etc/config-settings/unlimited.json deleted file mode 100644 index e9b82771..00000000 --- a/local/core/etc/config-settings/unlimited.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "updated_entry": [ - { - "contract_max_size_bytes": 4294967295 - }, - { - "contract_compute_v0": { - "ledger_max_instructions": 2305843009213693951, - "tx_max_instructions": 2305843009213693951, - "fee_rate_per_instructions_increment": 100, - "tx_memory_limit": 4294967295 - } - }, - { - "contract_ledger_cost_v0": { - "ledger_max_read_ledger_entries": 4294967295, - "ledger_max_read_bytes": 4294967295, - "ledger_max_write_ledger_entries": 4294967295, - "ledger_max_write_bytes": 4294967295, - "tx_max_read_ledger_entries": 4294967295, - "tx_max_read_bytes": 4294967295, - "tx_max_write_ledger_entries": 4294967295, - "tx_max_write_bytes": 4294967295, - "fee_read_ledger_entry": 1000, - "fee_write_ledger_entry": 3000, - "fee_read1_kb": 1000, - "bucket_list_target_size_bytes": 2305843009213694000, - "write_fee1_kb_bucket_list_low": 1000, - "write_fee1_kb_bucket_list_high": 4000000, - "bucket_list_write_fee_growth_factor": 1000 - } - }, - { - "contract_historical_data_v0": { - "fee_historical1_kb": 5000 - } - }, - { - "contract_events_v0": { - "tx_max_contract_events_size_bytes": 4294967295, - "fee_contract_events1_kb": 300 - } - }, - { - "contract_bandwidth_v0": { - "ledger_max_txs_size_bytes": 4294967295, - "tx_max_size_bytes": 4294967295, - "fee_tx_size1_kb": 500 - } - }, - { - "contract_data_key_size_bytes": 4294967295 - }, - { - "contract_data_entry_size_bytes": 4294967295 - }, - { - "state_archival": { - "max_entry_ttl": 3110400, - "min_temporary_ttl": 16, - "min_persistent_ttl": 120960, - "persistent_rent_rate_denominator": 535680, - "temp_rent_rate_denominator": 5356800, - "max_entries_to_archive": 100, - "bucket_list_size_window_sample_size": 30, - "bucket_list_window_sample_period": 64, - "eviction_scan_size": 100000, - "starting_eviction_scan_level": 6 - } - }, - { - "contract_execution_lanes": { - "ledger_max_tx_count": 4294967295 - } - } - ] -} diff --git a/start b/start index 399b82ad..e40ceeb7 100644 --- a/start +++ b/start @@ -59,7 +59,7 @@ function validate_before_start() { function validate_after_copy_defaults() { if [ "$NETWORK" = "local" ] && [ "$LIMITS" != "default" ]; then local config_dir="$COREHOME/etc/config-settings" - local config_path="$config_dir/$LIMITS.json" + local config_path="$config_dir/p$PROTOCOL_VERSION/$LIMITS.json" if [ ! -f "$config_path" ]; then echo "--limits '$LIMITS' unknown: must be one of: default "$(ls $config_dir | sed 's/\.json//g') exit 1 @@ -551,7 +551,7 @@ function upgrade_local() { "$NETWORK_ROOT_ACCOUNT_ID" \ 0 \ "$NETWORK_PASSPHRASE" \ - --xdr `stellar-xdr encode --type ConfigUpgradeSet < "$COREHOME/etc/config-settings/$LIMITS.json"` \ + --xdr `stellar-xdr encode --type ConfigUpgradeSet < "$COREHOME/etc/config-settings/p$PROTOCOL_VERSION/$LIMITS.json"` \ --signtxs)" let line_count=$(echo "$upgrade_output" | wc -l)