Skip to content

Commit

Permalink
use Keymanager() in validator client
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed Jul 20, 2024
1 parent 39eedb5 commit b5f2616
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion consensus-types/mock/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ go_library(
"//config/fieldparams:go_default_library",
"//consensus-types/interfaces:go_default_library",
"//consensus-types/primitives:go_default_library",
"//proto/eth/v1:go_default_library",
"//proto/engine/v1:go_default_library",
"//proto/eth/v1:go_default_library",
"//proto/prysm/v1alpha1:go_default_library",
"//proto/prysm/v1alpha1/validator-client:go_default_library",
"@com_github_prysmaticlabs_fastssz//:go_default_library",
Expand Down
6 changes: 5 additions & 1 deletion validator/client/payload_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ func (v *validator) signPayloadAttestation(ctx context.Context, p *ethpb.Payload
}

// Sign the payload attestation data
sig, err := v.keyManager.Sign(ctx, signReq)
m, err := v.Keymanager()
if err != nil {
return nil, errors.Wrap(err, "could not get key manager")
}
sig, err := m.Sign(ctx, signReq)
if err != nil {
return nil, errors.Wrap(err, "could not sign payload attestation")
}
Expand Down

0 comments on commit b5f2616

Please sign in to comment.