Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion harnesses/solana-exec/cmd/collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ func collect(ctx context.Context, db *store.DB, h *helius.Client, plt string, fe
}

const sigLimit = 1000
const maxPages = 30 // cap backfill at 30k sigs per account to avoid unbounded first-run pagination
var sigs []helius.SigEntry
before := ""
for {
for page := 0; page < maxPages; page++ {
batch, err := h.GetSignaturesForAddress(ctx, feeAccount, sigLimit, cursor.LastSig, before)
if err != nil {
return fmt.Errorf("get sigs %s (before=%s): %w", feeAccount, before, err)
Expand Down
Loading