File tree Expand file tree Collapse file tree
pkg/coordinator/tasks/check_consensus_validator_status Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ type Config struct {
77 ValidatorStatus []string `yaml:"validatorStatus" json:"validatorStatus"`
88 FailOnCheckMiss bool `yaml:"failOnCheckMiss" json:"failOnCheckMiss"`
99
10- ValidatorInfoResultVar string `yaml:"validatorInfoResultVar" json:"validatorInfoResultVar"`
10+ ValidatorInfoResultVar string `yaml:"validatorInfoResultVar" json:"validatorInfoResultVar"`
11+ ValidatorPubKeyResultVar string `yaml:"validatorPubKeyResultVar" json:"validatorPubKeyResultVar"`
1112}
1213
1314func DefaultConfig () Config {
Original file line number Diff line number Diff line change @@ -192,6 +192,10 @@ func (t *Task) runValidatorStatusCheck() bool {
192192 }
193193 }
194194
195+ if t .config .ValidatorPubKeyResultVar != "" {
196+ t .ctx .Vars .SetVar (t .config .ValidatorPubKeyResultVar , fmt .Sprintf ("0x%x" , validator .Validator .PublicKey [:]))
197+ }
198+
195199 if len (t .config .ValidatorStatus ) > 0 {
196200 found := false
197201
You can’t perform that action at this time.
0 commit comments