Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to configure limits as matching testnet, or unlimited #522

Merged
merged 3 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ In futurenet network mode, the node will join the [Soroban] test network that de

#### `--local`

In local network mode, you can optionally pass `--protocol-version {version}` parameter to run a specific protocol version (defaults to latest version).
In local network mode, you can optionally pass:

- `--protocol-version {version}` to run a specific protocol version (defaults to latest version).

- `--limits {limits}` to configure specific Soroban resource limits to one of:
- `default` leaves limits set extremely low which is stellar-core's default configuration
- `testnet` sets limits to match those used on testnet (the default quickstart configuration)
- `unlimited` sets limits to the maximum resources that can be configured

The network passphrase of the network defaults to:
```
Expand Down
364 changes: 364 additions & 0 deletions local/core/etc/config-settings/unlimited.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,364 @@
{
"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": 2147483648,
"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": 6,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 1141,
"linear_term": 1
},
{
"ext": "v0",
"const_term": 39,
"linear_term": 24
},
{
"ext": "v0",
"const_term": 20,
"linear_term": 64
},
{
"ext": "v0",
"const_term": 263,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 108,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 591,
"linear_term": 69
},
{
"ext": "v0",
"const_term": 1112,
"linear_term": 34
},
{
"ext": "v0",
"const_term": 2924,
"linear_term": 4149
},
{
"ext": "v0",
"const_term": 25584,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 53,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 376877,
"linear_term": 2747
},
{
"ext": "v0",
"const_term": 182,
"linear_term": 24
},
{
"ext": "v0",
"const_term": 182,
"linear_term": 24
},
{
"ext": "v0",
"const_term": 967154,
"linear_term": 69991
},
{
"ext": "v0",
"const_term": 967154,
"linear_term": 69991
},
{
"ext": "v0",
"const_term": 1125,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 2890,
"linear_term": 3561
},
{
"ext": "v0",
"const_term": 38363,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 224,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 1666155,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 1716,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 2226,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 2333,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 5212,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 412,
"linear_term": 0
}
]
},
{
"contract_cost_params_memory_bytes": [
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 1,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 16,
"linear_term": 128
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 18,
"linear_term": 384
},
{
"ext": "v0",
"const_term": 16,
"linear_term": 128
},
{
"ext": "v0",
"const_term": 40,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 131103,
"linear_term": 5080
},
{
"ext": "v0",
"const_term": 131103,
"linear_term": 5080
},
{
"ext": "v0",
"const_term": 14,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 40,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 0,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 201,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 119,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 119,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 119,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 119,
"linear_term": 0
},
{
"ext": "v0",
"const_term": 119,
"linear_term": 0
}
]
},
{
"contract_data_key_size_bytes": 300
},
{
"contract_data_entry_size_bytes": 4294967295
},
{
"state_expiration": {
"max_entry_expiration": 535680,
"min_temp_entry_expiration": 16,
"min_persistent_entry_expiration": 120960,
"persistent_rent_rate_denominator": 535680,
"temp_rent_rate_denominator": 5356800,
"max_entries_to_expire": 100,
"bucket_list_size_window_sample_size": 30,
"eviction_scan_size": 100000,
"starting_eviction_scan_level": 1
}
},
{
"contract_execution_lanes": {
"ledger_max_tx_count": 4294967295
}
}
]
}
Loading
Loading