Skip to content

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

Merged
ValuedMammal merged 2 commits intobitcoindevkit:release/chain-0.23.xfrom
tnull:2026-04-fix-canonical-iter-missing-continue
Apr 16, 2026
Merged

fix(chain): add missing continue in CanonicalIter assumed-tx processing#2170
ValuedMammal merged 2 commits 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

@ValuedMammal
Copy link
Copy Markdown
Collaborator

ValuedMammal commented Apr 14, 2026

ACK 8daaad9

@tnull
Copy link
Copy Markdown
Contributor Author

tnull commented Apr 15, 2026

ACK but CI is currently failing.

Right, but that seems unrelated to the change?

ValuedMammal and others added 2 commits April 16, 2026 11:52
ci: update pinned `rustls@0.23.38`

ci: pin `libc` to 0.2.183 for 1.63.0 toolchain

ci: pin `semver` to 1.0.27 for 1.63.0 toolchain

ci: update pinned webpki-roots@1.0.7

ci: update pinned clap@4.6.1
…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
@ValuedMammal ValuedMammal force-pushed the 2026-04-fix-canonical-iter-missing-continue branch from 8daaad9 to 27ab7ee Compare April 16, 2026 16:22
@ValuedMammal
Copy link
Copy Markdown
Collaborator

ACK 27ab7ee

@ValuedMammal ValuedMammal merged commit f07423a into bitcoindevkit:release/chain-0.23.x Apr 16, 2026
19 checks passed
@ValuedMammal
Copy link
Copy Markdown
Collaborator

Updated pin-msrv.sh with changes needed for CI, although some of the CI pinning choices seem perplexing in light of the MSRV situation. I assume in the future the fully functioning end user applications built on clap won't be part of the workspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants