Skip to content

Commit 2634457

Browse files
committed
chore: setup for smoot change of voterRegistry contract on coston
1 parent 739feba commit 2634457

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

client/collector/voterRegistry.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ import (
1919
)
2020

2121
const (
22-
breakingEpochCoston = 4506
22+
breakingEpochCoston = 4506
23+
breakingEpochSecondCoston = 4506
24+
2325
breakingEpochCoston2 = 5338
2426
)
2527
const (
26-
newRegistryCoston = "0xb4b93a3a3ada93a574e6efeb5f295bf882934cb6"
27-
newRegistryCoston2 = "0x6a0AF07b7972177B176d3D422555cbc98DfDe914"
28+
newnewRegistryCoston = "0xb4b93a3a3ada93a574e6efeb5f295bf882934cb6"
29+
newRegistryCoston = "0xb4b93a3a3ada93a574e6efeb5f295bf882934cb6"
30+
newRegistryCoston2 = "0x6a0AF07b7972177B176d3D422555cbc98DfDe914"
2831

2932
oldRegistryCoston = "0xE2c06DF29d175Aa0EcfcD10134eB96f8C94448A3"
3033
oldRegistrySongbird = "0x31B9EC65C731c7D973a33Ef3FC83B653f540dC8D"
@@ -150,6 +153,8 @@ func AddSubmitAddressesToSigningPolicy(ctx context.Context, db *gorm.DB, registr
150153
registryContractAddress = common.HexToAddress(oldRegistryCoston)
151154
} else if rewardEpochID <= breakingEpochCoston2 && registryContractAddress == common.HexToAddress(newRegistryCoston2) {
152155
registryContractAddress = common.HexToAddress(oldRegistryCoston2)
156+
} else if rewardEpochID <= breakingEpochSecondCoston && registryContractAddress == common.HexToAddress(newnewRegistryCoston) {
157+
registryContractAddress = common.HexToAddress(newRegistryCoston)
153158
}
154159

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

0 commit comments

Comments
 (0)