]> Untitled Git - bdk/commit
fix(chain): Unconfirmed coinbase txs should never be canonical
author志宇 <hello@evanlinjin.me>
Fri, 13 Jun 2025 03:07:37 +0000 (13:07 +1000)
committer志宇 <hello@evanlinjin.me>
Thu, 10 Jul 2025 03:04:24 +0000 (03:04 +0000)
commite8da007011c3c7e247c26a1c9984319229bb0afa
treecb9dfac10e4b7568323139fe48657305721b74b5
parenta7c1bcc37d67965e331faf09510937109b167df4
fix(chain): Unconfirmed coinbase txs should never be canonical

The logic in `CanonicalIter` will consider txs that are anchored to
blocks not in the best chain since they still can appear in the mempool.

However, coinbase txs can never be unconfirmed - which the old logic
failed to exclude.
crates/chain/src/canonical_iter.rs