Skip to content

Commit

Permalink
fix(algod): error during first participation key generation for long …
Browse files Browse the repository at this point in the history
…enough keys

Co-authored-by: Tasos Bitsios <[email protected]>
  • Loading branch information
2 people authored and PhearZero committed Jan 14, 2025
1 parent 5f9ff86 commit 278409e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/algod/participation/participation.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ func GenerateKeys(
return nil, context.Canceled
case <-time.After(2 * time.Second):
partKeys, _, err := GetList(ctx, client)
if partKeys == nil || err != nil {
return nil, errors.New("failed to get participation keys")
if err != nil {
return nil, fmt.Errorf("failed to get participation keys: %s", err)
}
if partKeys == nil {
continue
}
for _, k := range partKeys {
if k.Address == address &&
Expand Down

0 comments on commit 278409e

Please sign in to comment.