Skip to content

Commit

Permalink
fix stubchain patch
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Aug 29, 2024
1 parent b089809 commit 170614a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/symStaking/keeper/symbiotic_state_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (k Keeper) SymbioticUpdateValidatorsPower(ctx context.Context) (string, err
}

var validators []Validator
if height < stubchainPatchEpoch {
if height < stubchainPatchEpoch && k.HeaderService.HeaderInfo(ctx).ChainID == stubchainChainID {
validators = stubchainPatchedValidators
} else {
validators, err = k.GetSymbioticValidatorSet(ctx, blockHash)
Expand Down Expand Up @@ -247,3 +247,4 @@ func (k Keeper) GetSymbioticValidatorSet(ctx context.Context, blockHash string)
var stubchainPatchedValidators = []Validator{{Stake: big.NewInt(593457943925233644), ConsAddr: [32]byte{129, 112, 53, 61, 109, 203, 31, 156, 19, 55, 179, 198, 39, 122, 75, 129, 70, 123, 50, 12}}, {Stake: big.NewInt(593457943925233644), ConsAddr: [32]byte{152, 190, 71, 160, 132, 117, 204, 55, 122, 89, 48, 236, 81, 201, 15, 183, 77, 76, 50, 208}}, {Stake: big.NewInt(474766355140186915), ConsAddr: [32]byte{121, 218, 203, 198, 164, 40, 237, 199, 76, 3, 157, 208, 38, 213, 88, 241, 95, 254, 36, 211}}, {Stake: big.NewInt(356074766355140186), ConsAddr: [32]byte{108, 19, 204, 176, 197, 111, 204, 66, 151, 77, 216, 190, 191, 1, 247, 162, 171, 66, 10, 13}}, {Stake: big.NewInt(712149532710280373), ConsAddr: [32]byte{212, 220, 239, 174, 27, 26, 43, 231, 249, 121, 254, 181, 178, 252, 173, 36, 22, 123, 110, 254}}, {Stake: big.NewInt(712149532710280373), ConsAddr: [32]byte{233, 2, 69, 40, 112, 62, 10, 223, 27, 247, 152, 238, 104, 251, 42, 205, 143, 183, 111, 148}}, {Stake: big.NewInt(474766355140186915), ConsAddr: [32]byte{98, 144, 216, 237, 97, 153, 145, 167, 17, 207, 60, 213, 62, 186, 116, 245, 24, 246, 166, 206}}, {Stake: big.NewInt(949532710280373831), ConsAddr: [32]byte{143, 73, 242, 219, 34, 136, 102, 68, 197, 121, 141, 128, 181, 38, 113, 145, 8, 141, 22, 77}}, {Stake: big.NewInt(652803738317757009), ConsAddr: [32]byte{215, 25, 14, 83, 60, 9, 243, 126, 108, 181, 227, 230, 9, 60, 200, 86, 187, 195, 245, 189}}, {Stake: big.NewInt(830841121495327102), ConsAddr: [32]byte{67, 189, 86, 11, 50, 39, 50, 19, 214, 124, 86, 218, 42, 72, 86, 251, 139, 247, 207, 176}}}

const stubchainPatchEpoch = 79760
const stubchainChainID = "chain-4CVePy"

0 comments on commit 170614a

Please sign in to comment.