Skip to content

Commit

Permalink
JSON file for proposing phase5 network settings (stellar#4491)
Browse files Browse the repository at this point in the history
### Proposing an increase to the following network settings

```
Contract limit:
contract_max_size_bytes 64KiB -> 128KiB

Tx limit:
Tx_max_write_bytes 65 KiB -> 129 KiB
tx_max_size_bytes 70 KiB -> 129 KiB

Ledger limit:
Ledger_max_write_bytes 70 KiB -> 140 KiB
Ledger_max_txs_size_bytes 70 KiB -> 130 KiB

State archival limit:
eviction_scan_size 100 KB -> 500 KB
```

Mainnet arm command:
`
http-command
'upgrades?mode=set&upgradetime=YYYY-MM-DDT17:00:00Z&configupgradesetkey=V8RF//I9PaN2SnxMzvhxPGPgYKoh6Vq9HzRpqZeH9/MPiB7eTlpp1K/KrZdwabcdiJLhhhBIhhWwDSfnyyK+gA=='
`

Output of the proposed settings on testnet,
 ```
curl -G 'http://localhost:11626/dumpproposedsettings' --data-urlencode
'blob=FwrrdNbCXOcY6HQ6+brP0HT/oZixrwPR6Z+8aM2CvDDD2B5syC79NSEMZMr0pcK9evrBfO1nQklXUAhAtp7DaQ=='
{
    "ConfigSettingsEntries": [
        {
            "configSettingID": "CONFIG_SETTING_CONTRACT_MAX_SIZE_BYTES",
            "contractMaxSizeBytes": 131072
        },
        {
            "configSettingID": "CONFIG_SETTING_CONTRACT_LEDGER_COST_V0",
            "contractLedgerCost": {
                "ledgerMaxReadLedgerEntries": 200,
                "ledgerMaxReadBytes": 500000,
                "ledgerMaxWriteLedgerEntries": 125,
                "ledgerMaxWriteBytes": 143360,
                "txMaxReadLedgerEntries": 40,
                "txMaxReadBytes": 200000,
                "txMaxWriteLedgerEntries": 25,
                "txMaxWriteBytes": 132096,
                "feeReadLedgerEntry": 6250,
                "feeWriteLedgerEntry": 10000,
                "feeRead1KB": 1786,
                "bucketListTargetSizeBytes": 300000000,
                "writeFee1KBBucketListLow": 9836,
                "writeFee1KBBucketListHigh": 12116,
                "bucketListWriteFeeGrowthFactor": 5000
            }
        },
        {
            "configSettingID": "CONFIG_SETTING_CONTRACT_BANDWIDTH_V0",
            "contractBandwidth": {
                "ledgerMaxTxsSizeBytes": 133120,
                "txMaxSizeBytes": 132096,
                "feeTxSize1KB": 1624
            }
        },
        {
            "configSettingID": "CONFIG_SETTING_STATE_ARCHIVAL",
            "stateArchivalSettings": {
                "maxEntryTTL": 3110400,
                "minTemporaryTTL": 17280,
                "minPersistentTTL": 2073600,
                "persistentRentRateDenominator": 2103,
                "tempRentRateDenominator": 4206,
                "maxEntriesToArchive": 1000,
                "bucketListSizeWindowSampleSize": 30,
                "bucketListWindowSamplePeriod": 64,
                "evictionScanSize": 500000,
                "startingEvictionScanLevel": 7
            }
        }
    ]
}

```
  • Loading branch information
anupsdf authored Oct 4, 2024
2 parents 3007c59 + 73db9f4 commit 1bccbc9
Show file tree
Hide file tree
Showing 5 changed files with 584 additions and 536 deletions.
2 changes: 1 addition & 1 deletion docs/software/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ Most commands return their results in JSON format.
and dump it as base64 xdr. This can be used along with the `stellar-xdr` command line tool
to dump the current settings in the same format as the JSON file we use for upgrades. This
is helpful if you want to make settings changes off of the current settings.
Ex. `curl -s "127.0.0.1:11626/sorobaninfo?format=upgrade_xdr" | stellar-xdr decode --type ConfigUpgradeSet`
Ex. `curl -s "127.0.0.1:11626/sorobaninfo?format=upgrade_xdr" | stellar-xdr decode --type ConfigUpgradeSet --output json-formatted`

* **dumpproposedsettings**
`dumpproposedsettings?blob=Base64`<br>
Expand Down
47 changes: 47 additions & 0 deletions soroban-settings/pubnet_phase5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"updated_entry": [
{
"contract_max_size_bytes": 131072
},
{
"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": 14500000000,
"write_fee1_kb_bucket_list_low": 8510,
"write_fee1_kb_bucket_list_high": 12116,
"bucket_list_write_fee_growth_factor": 5000
}
},
{
"contract_bandwidth_v0": {
"ledger_max_txs_size_bytes": 133120,
"tx_max_size_bytes": 132096,
"fee_tx_size1_kb": 1624
}
},
{
"state_archival": {
"max_entry_ttl": 3110400,
"min_temporary_ttl": 17280,
"min_persistent_ttl": 2073600,
"persistent_rent_rate_denominator": 2103,
"temp_rent_rate_denominator": 4206,
"max_entries_to_archive": 1000,
"bucket_list_size_window_sample_size": 30,
"bucket_list_window_sample_period": 64,
"eviction_scan_size": 500000,
"starting_eviction_scan_level": 7
}
}
]
}
Loading

0 comments on commit 1bccbc9

Please sign in to comment.