Skip to content

Commit

Permalink
Auto-update fast sync settings (#7613)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Chodoła <43241881+kamilchodola@users.noreply.github.com>
Co-authored-by: kamilchodola <kamilchodola@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 16, 2024
1 parent bacbef3 commit dfea524
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-fast-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
uses: actions/checkout@v4
- name: Install dependencies
run: |
pip3 install setuptools
pip3 install emoji
pip3 install setuptools --break-system-packages
pip3 install emoji --break-system-packages
- name: Update config files
run: python3 scripts/syncSettings.py ${{ secrets.ETHERSCAN_API_KEY }}
- name: Create GitHub app token
Expand Down
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Runner/configs/base-mainnet.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"AncientBodiesBarrier": 105235063,
"AncientReceiptsBarrier": 105235063,
"FastSyncCatchUpHeightDelta": "10000000000",
"PivotNumber": 20380000,
"PivotHash": "0x32dfa61d16a0e99c4e5edd1f791cae912e982d9d33531e6f0337fe230a19606b",
"PivotNumber": 21130000,
"PivotHash": "0x3e1cdb3a013b113ba7c413feea14028dac20f6a367e4eb6c5b93ba2406b62755",
"PivotTotalDifficulty": "0",
"MaxAttemptsToUpdatePivot": 0
},
Expand Down
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Runner/configs/base-sepolia.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"FastSync": true,
"SnapSync": true,
"FastSyncCatchUpHeightDelta": "10000000000",
"PivotNumber": 15890000,
"PivotHash": "0x237da61c2eb0fd52eaca16caded258771df08e8618540f6f1b525110b4f96d4a",
"PivotNumber": 16640000,
"PivotHash": "0x826380d1472683f54980776743190b268c3d7da94ff775f61997fc7dbc5919c1",
"PivotTotalDifficulty": "0",
"MaxAttemptsToUpdatePivot": 0
},
Expand Down
18 changes: 16 additions & 2 deletions src/Nethermind/Nethermind.Runner/configs/chiado.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"Sync": {
"FastSync": true,
"SnapSync": true,
"PivotNumber": 12020000,
"PivotHash": "0x6552eb5964d70decaabff32b2e0f66d1139447b6f680dea854c56101150c039a",
"PivotNumber": 12310000,
"PivotHash": "0xc358086245b073027dbe0640c3647b446a5431d2fbcaeeaa51a204d62f5bfb47",
"PivotTotalDifficulty": "231708131825107706987652208063906496124457284",
"FastSyncCatchUpHeightDelta": "10000000000",
"UseGethLimitsInFastBlocks": false
Expand All @@ -31,6 +31,20 @@
"TxPriorityContractAddress": "0x4100000000000000000000000000000000000000",
"ForceSealing": true
},
"Shutter": {
"ValidatorRegistryContractAddress": "0xa9289A3Dd14FEBe10611119bE81E5d35eAaC3084",
"SequencerContractAddress": "0x2aD8E2feB0ED5b2EC8e700edB725f120576994ed",
"KeyBroadcastContractAddress": "0x9D31865BEffcE842FBd36CDA587aDDA8bef804B7",
"KeyperSetManagerContractAddress": "0xC4DE9FAf4ec882b33dA0162CBE628B0D8205D0c0",
"BootnodeP2PAddresses": [
"/ip4/157.230.104.246/tcp/23003/p2p/12D3KooWFUYoPd3bdPuRi6FXkEQRSw7FRf2e23NAypjfDVYuvBAV",
"/ip4/134.209.225.234/tcp/23003/p2p/12D3KooWAsBKAj1NEtvu7wcLiEVU49N6Z9GPK3tZ87m17tFdWdNE",
"/ip4/157.230.114.117/tcp/23003/p2p/12D3KooWEDk8XJdxHjCHh9wTGVRXtpyCvCP4N4Jztr8zTJd4rMVX",
"/ip4/64.225.104.2/tcp/23003/p2p/12D3KooWMXTYrwEz4v5aGa7chYHjVVpjzzkq9JSjZzxbdh9YgAQS",
"/ip4/157.230.111.142/tcp/23003/p2p/12D3KooWA3FPqxV8whaFPbLzwbyDEWML4y73D6RJqb2mn7SHz6fg"
],
"InstanceID": "102000"
},
"EthStats": {
"Name": "Nethermind Chiado"
},
Expand Down
6 changes: 3 additions & 3 deletions src/Nethermind/Nethermind.Runner/configs/energyweb.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"Sync": {
"FastSync": true,
"PivotNumber": 32070000,
"PivotHash": "0x85a2e57de94ae39aedb255f664ed0ccfec14a4e68513a50bedbc639defc40b01",
"PivotTotalDifficulty": "10912855507154496523270423660336806541016479581",
"PivotNumber": 32340000,
"PivotHash": "0xc0a0cb30d591c3263fa0d317e3839e45f62d99cb096757e54fe9af65f5bd80ae",
"PivotTotalDifficulty": "11004731746223149908405534804343383958109034440",
"UseGethLimitsInFastBlocks": false,
"FastSyncCatchUpHeightDelta": 10000000000
},
Expand Down
6 changes: 3 additions & 3 deletions src/Nethermind/Nethermind.Runner/configs/exosama.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"Sync": {
"FastSync": true,
"PivotNumber": 12220000,
"PivotHash": "0xadecf2c44195620a00fbfa193d5a11716a521d930bd8f1c1dc1f923ca8e13237",
"PivotTotalDifficulty": "4158250523773868023522437702816207543634733285",
"PivotNumber": 12520000,
"PivotHash": "0x662472aa84289ecb5fd53369f4f0c0f088199b3df4223599257bcf7d92ddf543",
"PivotTotalDifficulty": "4260335233850149562561450085045738007070933285",
"UseGethLimitsInFastBlocks": false,
"FastSyncCatchUpHeightDelta": 10000000000
},
Expand Down
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Runner/configs/gnosis.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"Sync": {
"FastSync": true,
"SnapSync": true,
"PivotNumber": 36230000,
"PivotHash": "0x228ed2253106c75745623fca648cfe98a91f5f68de3556a0e8bc6a0a11edc2d3",
"PivotNumber": 36520000,
"PivotHash": "0x380d77ea4f36e3ef2f9d3536772b43ceaa23c64ff4013492f23e90be2402ef68",
"PivotTotalDifficulty": "8626000110427538733349499292577475819600160930",
"UseGethLimitsInFastBlocks": false,
"FastSyncCatchUpHeightDelta": 10000000000
Expand Down
6 changes: 3 additions & 3 deletions src/Nethermind/Nethermind.Runner/configs/joc-mainnet.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"Sync": {
"FastSync": true,
"SnapSync": true,
"PivotNumber": 13590000,
"PivotHash": "0x4d55f48b5939543fa48ccf9714cc3b113e7934a9fc813287feec283d833afb27",
"PivotTotalDifficulty": "26928974"
"PivotNumber": 13890000,
"PivotHash": "0x1ed87295c8a93a1cb14f5871363452edd1c34561964b6cfd1c59184a1187c4cd",
"PivotTotalDifficulty": "27453101"
},
"Metrics": {
"NodeName": "JOC-Mainnet"
Expand Down
6 changes: 3 additions & 3 deletions src/Nethermind/Nethermind.Runner/configs/joc-testnet.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"Sync": {
"FastSync": true,
"SnapSync": true,
"PivotNumber": 7190000,
"PivotHash": "0xbe62f0118609603a1d59472bd8c2bfdff92b6bf13579a0438561daa523f90da9",
"PivotTotalDifficulty": "13364665"
"PivotNumber": 7490000,
"PivotHash": "0x2b4e6a42a6b559fee61f21110fcd88f7f9c0c30e9d7704d27638f95237e7a85e",
"PivotTotalDifficulty": "13782418"
},
"Metrics": {
"NodeName": "JOC-Testnet"
Expand Down
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Runner/configs/mainnet.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"Sync": {
"FastSync": true,
"SnapSync": true,
"PivotNumber": 20851000,
"PivotHash": "0xb583bd6ecd1473667bb8183de0cb09d172361b56fbfd9c9638158d4d47854e15",
"PivotNumber": 20976000,
"PivotHash": "0x7841f9f6b15a11c4d7e3a291ced640f2a3d7ff55de9ab51883e3f5396bd240db",
"PivotTotalDifficulty": "58750003716598352816469",
"FastSyncCatchUpHeightDelta": "10000000000"
},
Expand Down
8 changes: 4 additions & 4 deletions src/Nethermind/Nethermind.Runner/configs/op-mainnet.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"AncientBodiesBarrier": 105235063,
"AncientReceiptsBarrier": 105235063,
"FastSyncCatchUpHeightDelta": "10000000000",
"PivotNumber": 126270000,
"PivotHash": "0xd3404c9404e47cbbcd688c1620119495cad1dab37631b556cbbb6d4ce0cea54f",
"PivotTotalDifficulty": "210470125",
"PivotNumber": 126730000,
"PivotHash": "0x09e633ab9904950f6830196b9141b625aa70df43a3b619927aa1017060e39978",
"PivotTotalDifficulty": "0",
"MaxAttemptsToUpdatePivot": 0
},
"Discovery": {
Expand All @@ -42,4 +42,4 @@
"Optimism": {
"SequencerUrl": "https://mainnet-sequencer.optimism.io"
}
}
}
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Runner/configs/op-sepolia.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"FastSync": true,
"SnapSync": true,
"FastSyncCatchUpHeightDelta": "10000000000",
"PivotNumber": 17870000,
"PivotHash": "0x12e517c71480f3940b29449df4df244aec04f25e1e42c96ef4976af37a713b94",
"PivotNumber": 18630000,
"PivotHash": "0x8a77b55ae1ef0792f070c048cee04d830e5463f14b7f9a3e685890e97e8d0ed1",
"PivotTotalDifficulty": "0",
"MaxAttemptsToUpdatePivot": 0
},
Expand Down
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Runner/configs/sepolia.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"FastSync": true,
"SnapSync": true,
"UseGethLimitsInFastBlocks": true,
"PivotNumber": 6777000,
"PivotHash": "0x1a8de8f7b09a32a7e0fe2d3bedcc5ff75118507c9e75c822ce2338e591e79f97",
"PivotNumber": 6885000,
"PivotHash": "0x4444447abec31fe6d9db967ede00e778b80a895933d7b6c8f321fb9d533d54db",
"PivotTotalDifficulty": "17000018015853232",
"FastSyncCatchUpHeightDelta": "10000000000"
},
Expand Down
6 changes: 3 additions & 3 deletions src/Nethermind/Nethermind.Runner/configs/volta.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"Sync": {
"FastSync": true,
"PivotNumber": 29450000,
"PivotHash": "0xa190daa8205c8021ee58048781a0bd408faebeb434f05447a8ece2986169668f",
"PivotTotalDifficulty": "10021315705821637748996382188865573827004386297",
"PivotNumber": 29640000,
"PivotHash": "0x0d82a28c3ff2df03f03fc27e5dd70ca1d2f10dd0f9e283f7ebb9823253f3b053",
"PivotTotalDifficulty": "10085969355536616057054423364277609787180535520",
"UseGethLimitsInFastBlocks": false,
"FastSyncCatchUpHeightDelta": 10000000000
},
Expand Down

0 comments on commit dfea524

Please sign in to comment.