Skip to content

fix(chain): add missing continue in CanonicalIter assumed-tx processing#2170

Open
tnull wants to merge 1 commit intobitcoindevkit:release/chain-0.23.xfrom
tnull:2026-04-fix-canonical-iter-missing-continue
Open

fix(chain): add missing continue in CanonicalIter assumed-tx processing#2170
tnull wants to merge 1 commit intobitcoindevkit:release/chain-0.23.xfrom
tnull:2026-04-fix-canonical-iter-missing-continue

Conversation

@tnull
Copy link
Copy Markdown
Contributor

@tnull tnull commented Apr 10, 2026

Description

Without the continue, the loop falls through to the subsequent processing blocks when assumed-canonical transactions are the only remaining unprocessed source. If the anchored, seen, and leftover iterators are all exhausted, the loop reaches return None and silently drops the assumed transactions that were just marked canonical.

Notes to the reviewers

Co-Authored-By: HAL 9000

Checklists

All Submissions:

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

…essing

Without the `continue`, the loop falls through to the subsequent
processing blocks when assumed-canonical transactions are the only
remaining unprocessed source. If the anchored, seen, and leftover
iterators are all exhausted, the loop reaches `return None` and silently
drops the assumed transactions that were just marked canonical.

Co-Authored-By: HAL 9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant