Skip to content

fix: send every cancel through the cancelling status - #720

Merged
MoonBoi9001 merged 3 commits into
mb9/read-the-chain-correctlyfrom
mb9/send-every-cancel-through-one-path
Oct 2, 2026
Merged

MoonBoi9001 merged 3 commits into
mb9/read-the-chain-correctlyfrom
mb9/send-every-cancel-through-one-path

Conversation

@MoonBoi9001

Copy link
Copy Markdown
Member

Dipper now reads the chain before sending any cancel, so offers that never reached the chain cost no gas, and an agreement it had rejected or cancelled that turns out live on-chain goes back to cancelling for the one cancel retry instead of a separate job with its own retry budget. The old job stays as a thin handler so messages already queued at upgrade still run.

Both the first cancel attempt and the cancel retry marked an agreement cancelled by dipper,
logged it and recorded the cancel, each with its own copy that could drift apart. They now
share one step, which records the cancel whenever its transaction is known.
Starting a cancel sent it blind, so cancelling offers that never reached the chain cost gas each,
and the reassessment waited on every receipt while holding its lock. The agreement is still marked
first, so an offer that lands later withdraws itself, but a cancel now goes out only if it is live.
An agreement dipper had rejected or cancelled that the subgraph showed accepted went to a separate
job with its own 40 minute retry budget, queued again on every poll. The listener now reads the
chain and, if it is live, moves it back to cancelling so the one cancel retry ends it.
@MoonBoi9001
MoonBoi9001 added this pull request to stack #723 October 2, 2026 22:01
@MoonBoi9001
MoonBoi9001 removed this pull request from stack #723 October 2, 2026 22:01
@MoonBoi9001
MoonBoi9001 added this pull request to stack #724 October 2, 2026 22:04
@MoonBoi9001
MoonBoi9001 marked this pull request as ready for review October 2, 2026 22:04
@MoonBoi9001
MoonBoi9001 removed this pull request from stack #724 October 2, 2026 22:10
@MoonBoi9001
MoonBoi9001 added this pull request to stack #725 October 2, 2026 22:10
@MoonBoi9001
MoonBoi9001 merged commit efd4abb into mb9/review Oct 2, 2026
15 of 16 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