From 170614a9be66df3e2a4daa8de64a3b01055310a6 Mon Sep 17 00:00:00 2001 From: georgiypetrov Date: Thu, 29 Aug 2024 19:00:42 +0530 Subject: [PATCH] fix stubchain patch --- x/symStaking/keeper/symbiotic_state_change.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/symStaking/keeper/symbiotic_state_change.go b/x/symStaking/keeper/symbiotic_state_change.go index 1ae097c57..697cad2f2 100644 --- a/x/symStaking/keeper/symbiotic_state_change.go +++ b/x/symStaking/keeper/symbiotic_state_change.go @@ -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) @@ -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"