Skip to content

Commit bca6dd7

Browse files
deployment: add mainnet native config override (chain_params + replacers)
1 parent 7b94f50 commit bca6dd7

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// chain_params for the `mainnet` environment (hybrid layout): the mandatory per-chain values, read
2+
// directly by the applicative config. (The env-shared P2P multiaddrs and per-node validator_id are
3+
// supplied by the devops overlay layers.)
4+
{
5+
chain_id: 'SN_MAIN',
6+
starknet_url: 'https://feeder.alpha-mainnet.starknet.io/',
7+
recorder_url: 'http://starknet-mainnet.cende-recorder-proxy.starknet.io/',
8+
native_classes_whitelist: '["0x054c5afe61ed27be53b1e4dec5707209a9fcabdb14712fb800fbc60439090115"]',
9+
base_layer_config: {
10+
bpo1_start_block_number: 23973546,
11+
bpo2_start_block_number: 24168146,
12+
fusaka_no_bpo_start_block_number: 23934586,
13+
starknet_contract_address: '0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4',
14+
},
15+
consensus_manager_config: {
16+
staking_manager_config: {
17+
dynamic_config: {
18+
default_committee: '0,10:0x64,1,0x1,true;0x65,1,0x1,true;0x66,1,0x1,true;0x67,1,0x1,true;0x68,1,0x1,true',
19+
},
20+
},
21+
},
22+
gateway_config: {
23+
static_config: {
24+
proof_archive_writer_config: {
25+
bucket_name: 'starkware-starknet-mainnet',
26+
},
27+
},
28+
},
29+
batcher_config: {
30+
static_config: {
31+
first_block_with_partial_block_hash: {
32+
block_hash: '0x12889b177c93baa28b5ee3afc80cb6f4836adac086af4bef25ae1ac762e8a62',
33+
block_number: 671813,
34+
parent_block_hash: '0x1e68b0d22b14688dc97afa3006a53cf4e62ebcb02102e80f55e8b48f9a28b97',
35+
},
36+
},
37+
},
38+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// replacers for the `mainnet` environment (hybrid layout): only the values that differ from the
2+
// applicative-config defaults (a flat dotted-key map). Everything else uses the schema default.
3+
{
4+
'batcher_config.static_config.block_builder_config.bouncer_config.block_max_capacity.state_diff_size': 5000,
5+
'batcher_config.static_config.block_builder_config.execute_config.n_workers': 12,
6+
'committer_config.storage_config.cache_size': 50000000,
7+
'consensus_manager_config.context_config.dynamic_config.min_l2_gas_price_per_height': '8269292:27400000000,8742344:30100000000',
8+
'state_sync_config.static_config.central_sync_client_config': {
9+
sync_config: {
10+
store_sierras_and_casms_block_threshold: 103129,
11+
},
12+
},
13+
'state_sync_config.static_config.network_config': {
14+
port: 55010,
15+
},
16+
}

0 commit comments

Comments
 (0)