Skip to content

Commit

Permalink
check until before
Browse files Browse the repository at this point in the history
  • Loading branch information
anjor committed Jan 10, 2025
1 parent 8b3fe05 commit a1854b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gsfa/gsfa-read-multiepoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ epochLoop:
if err != nil {
return nil, fmt.Errorf("error while getting signature at index=%v: %w", txLoc, err)
}
if tx.Slot < int(until) {
break epochLoop
}
sig, err := tx.Signature()
if err != nil {
return nil, fmt.Errorf("error while getting signature: %w", err)
Expand All @@ -291,9 +294,6 @@ epochLoop:
break epochLoop
}
transactions[epochNum] = append(transactions[epochNum], tx)
if tx.Slot < int(until) {
break epochLoop
}
}
}
}
Expand Down

0 comments on commit a1854b4

Please sign in to comment.