Skip to content

fix: keep retrying an offer while the indexer can accept it - #686

Merged
MoonBoi9001 merged 1 commit into
mainfrom
mb9/retry-offer-submissions-until-the-acceptance-deadline
Aug 3, 2026
Merged

fix: keep retrying an offer while the indexer can accept it#686
MoonBoi9001 merged 1 commit into
mainfrom
mb9/retry-offer-submissions-until-the-acceptance-deadline

Conversation

@MoonBoi9001

Copy link
Copy Markdown
Member

This PR sizes the retry budget for an on-chain offer from the window the indexer has to accept it, so the job keeps trying while the offer can still land instead of stopping after 3 attempts. Dipper posts an offer on chain for every agreement an indexer accepts off-chain, and until now that job retried a fixed 3 times whatever the deadline was. On 30 July an RPC provider answered with HTTP 500 for about 95 seconds, which was enough to spend all 3 attempts; the offer was then abandoned with 8 minutes of the 10-minute window still open, and the agreement expired without the indexer ever getting it.

With the default 600-second window that works out at 7 attempts spread across the window rather than 3 bunched at the start. An attempt that falls past the deadline ends the job on its own, because the handler already skips an agreement the expiry sweep has moved out of the created state.

Dipper posts an offer on chain for each agreement an indexer accepts, and that job gave up after
3 tries: a 95-second outage at the RPC provider burned all 3, leaving 8 minutes of the indexer's
10-minute window to accept unused and the offer lost. The count now follows that window.
@MoonBoi9001
MoonBoi9001 marked this pull request as ready for review August 3, 2026 20:10
@MoonBoi9001
MoonBoi9001 merged commit 7803ce7 into main Aug 3, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant