Skip to content

Commit

Permalink
chore: add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ckartik committed Dec 11, 2024
1 parent 0af20be commit c81342d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2p/integrationtest/provider/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ func (b *ProviderClient) CheckAndStake(_ []string) error {
b.logger.Error("failed to marshal public key", "error", err)
return fmt.Errorf("failed to marshal public key: %w", err)
}
b.logger.Info("generated BLS key pair",
"public_key", hex.EncodeToString(pubkeyb),
"signature", hex.EncodeToString(signature))

// Register a provider
_, err = b.client.Stake(context.Background(), &providerapiv1.StakeRequest{
Expand Down
2 changes: 2 additions & 0 deletions p2p/pkg/rpc/provider/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ func (s *Service) Stake(
if err != nil {
return nil, status.Errorf(codes.Internal, "decoding bls signature: %v", err)
}

s.logger.Info("adding verified bls key", "blsPublicKey", hex.EncodeToString(blsPublicKey), "blsSignature", hex.EncodeToString(blsSignature))
tx, txErr = s.registryContract.AddVerifiedBLSKey(opts, blsPublicKey, blsSignature)
if txErr != nil {
return nil, status.Errorf(codes.Internal, "adding verified bls key: %v", txErr)
Expand Down

0 comments on commit c81342d

Please sign in to comment.