Skip to content

fix: record reopened accepts and quiet expected races - #730

Merged
MoonBoi9001 merged 7 commits into
mb9/abandon-stale-agreements-through-cancellingfrom
mb9/record-reopened-accepts-and-quiet-expected-races
Oct 5, 2026
Merged

MoonBoi9001 merged 7 commits into
mb9/abandon-stale-agreements-through-cancellingfrom
mb9/record-reopened-accepts-and-quiet-expected-races

Conversation

@MoonBoi9001

Copy link
Copy Markdown
Member

When the chain listener moves an agreement dipper had cancelled back to cancelling because it is live after all, it now also records the accept, so the cancel retry treats it as paying. An agreement that ends between being listed and being marked is now logged at debug level and no longer counted as a failure, and test helpers that nothing read or wrote are removed.

When the listener found an agreement dipper had cancelled live after all and moved it back to
cancelling, it then checked the old status and skipped recording the accept, so the cancel retry
treated a paying agreement as an unaccepted offer. The accept is now recorded.
An agreement that ended, or started cancelling, between being listed and being marked was logged
as a failure, with an ERROR and a failure count in reassessment. That race is expected and needs
nothing more, so it is now logged at debug level and not counted.
A list of queued cancels that was never filled made its assertion always pass, and a way to mark
an agreement already cancelled on-chain was never read, so tests using it passed for another
reason. Both are gone, along with a comment naming code that no longer exists.
…b9/record-reopened-accepts-and-quiet-expected-races
@MoonBoi9001
MoonBoi9001 added this pull request to stack #731 October 5, 2026 10:03
…b9/record-reopened-accepts-and-quiet-expected-races
The comment ended with "True if it was" straight after "unless the chain shows it already
ended", which read as the opposite of what it returns.
@MoonBoi9001
MoonBoi9001 marked this pull request as ready for review October 5, 2026 10:45
…b9/record-reopened-accepts-and-quiet-expected-races
@MoonBoi9001
MoonBoi9001 merged commit 768f426 into mb9/review Oct 5, 2026
11 checks passed
@MoonBoi9001
MoonBoi9001 deleted the mb9/record-reopened-accepts-and-quiet-expected-races branch October 5, 2026 15:02
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