Skip to content

Commit

Permalink
add validatorPubKeyResultVar to check_consensus_validator_status
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed May 15, 2024
1 parent 44cef81 commit 7f1febe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ type Config struct {
ValidatorStatus []string `yaml:"validatorStatus" json:"validatorStatus"`
FailOnCheckMiss bool `yaml:"failOnCheckMiss" json:"failOnCheckMiss"`

ValidatorInfoResultVar string `yaml:"validatorInfoResultVar" json:"validatorInfoResultVar"`
ValidatorInfoResultVar string `yaml:"validatorInfoResultVar" json:"validatorInfoResultVar"`
ValidatorPubKeyResultVar string `yaml:"validatorPubKeyResultVar" json:"validatorPubKeyResultVar"`
}

func DefaultConfig() Config {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ func (t *Task) runValidatorStatusCheck() bool {
}
}

if t.config.ValidatorPubKeyResultVar != "" {
t.ctx.Vars.SetVar(t.config.ValidatorPubKeyResultVar, fmt.Sprintf("0x%x", validator.Validator.PublicKey[:]))
}

if len(t.config.ValidatorStatus) > 0 {
found := false

Expand Down

0 comments on commit 7f1febe

Please sign in to comment.