File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
pkg/coordinator/tasks/check_consensus_validator_status Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111 "github.com/attestantio/go-eth2-client/spec/phase0"
1212 "github.com/ethereum/go-ethereum/common"
1313 "github.com/ethpandaops/assertoor/pkg/coordinator/types"
14+ "github.com/ethpandaops/assertoor/pkg/coordinator/vars"
1415 "github.com/sirupsen/logrus"
1516)
1617
@@ -160,6 +161,12 @@ func (t *Task) runValidatorStatusCheck() bool {
160161
161162 matchingValidators ++
162163
164+ if body , err := vars .GeneralizeData (validator ); err == nil {
165+ t .ctx .Outputs .SetVar ("validator" , body )
166+ } else {
167+ t .logger .Warnf ("Failed encoding validator info for validator output: %v" , err )
168+ }
169+
163170 if t .config .ValidatorInfoResultVar != "" {
164171 validatorJSON , err := json .Marshal (validator )
165172 if err == nil {
@@ -176,6 +183,8 @@ func (t *Task) runValidatorStatusCheck() bool {
176183 }
177184 }
178185
186+ t .ctx .Outputs .SetVar ("pubkey" , fmt .Sprintf ("0x%x" , validator .Validator .PublicKey [:]))
187+
179188 if t .config .ValidatorPubKeyResultVar != "" {
180189 t .ctx .Vars .SetVar (t .config .ValidatorPubKeyResultVar , fmt .Sprintf ("0x%x" , validator .Validator .PublicKey [:]))
181190 }
You can’t perform that action at this time.
0 commit comments