Skip to content

Commit 0320c17

Browse files
committed
feat: smooth change for coston2
1 parent d1e6bd5 commit 0320c17

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

client/collector/voterRegistry.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ import (
1818
"gorm.io/gorm"
1919
)
2020

21-
const breakingEpochCoston = 4506
2221
const (
23-
newRegistryCoston = "0xb4b93a3a3ada93a574e6efeb5f295bf882934cb6"
22+
breakingEpochCoston = 4506
23+
breakingEpochCoston2 = 5338
24+
)
25+
const (
26+
newRegistryCoston = "0xb4b93a3a3ada93a574e6efeb5f295bf882934cb6"
27+
newRegistryCoston2 = "0x6a0AF07b7972177B176d3D422555cbc98DfDe914"
2428

2529
oldRegistryCoston = "0xE2c06DF29d175Aa0EcfcD10134eB96f8C94448A3"
2630
oldRegistrySongbird = "0x31B9EC65C731c7D973a33Ef3FC83B653f540dC8D"
@@ -139,6 +143,8 @@ func AddSubmitAddressesToSigningPolicy(ctx context.Context, db *gorm.DB, registr
139143

140144
if rewardEpochID <= breakingEpochCoston && registryContractAddress == common.HexToAddress(newRegistryCoston) {
141145
registryContractAddress = common.HexToAddress(oldRegistryCoston)
146+
} else if rewardEpochID <= breakingEpochCoston2 && registryContractAddress == common.HexToAddress(newRegistryCoston2) {
147+
registryContractAddress = common.HexToAddress(oldRegistryCoston2)
142148
}
143149

144150
submitToSigning, err := SubmitToSigningPolicyAddress(ctx, db, registryContractAddress, rewardEpochID)

configs/systemConfigs/200/coston2.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
submit_contract = "0x2cA6571Daa15ce734Bbd0Bf27D5C9D16787fc33f"
33
relay_contract = "0xa10B672D1c62e5457b17af63d4302add6A99d7dE"
44
fdc_contract = "0x48aC463d7975828989331F4De43341627b9c5f1D"
5-
voter_registry_contract = "0xc6E40401395DCc648bC4bBb38fE4552423cD9BAC"
5+
voter_registry_contract = "0x6a0AF07b7972177B176d3D422555cbc98DfDe914"
66

77
[timing]
88
t0 = 1658430000

0 commit comments

Comments
 (0)