]> Untitled Git - bdk/commit
feat(chain): classify outpoints by chain-level spend eligibility
authorDmenec <dmenec@proton.me>
Wed, 22 Jul 2026 15:30:35 +0000 (17:30 +0200)
committerDmenec <dmenec@proton.me>
Tue, 8 Sep 2026 21:17:36 +0000 (23:17 +0200)
commit98a7d5b88e975d529a4c8e6446ef8c3a4314281e
treea4eced0cbf0036a0c2ddfde541599c924a47854d
parentacc06e53220960caa89efd5984d7b43914640dd4
feat(chain): classify outpoints by chain-level spend eligibility

Adds classify_outpoints, which decides per-output whether it's settled,
immature, or pending (trusted, untrusted, or unknown) based on its unsettled
ancestry. Trust is resolved with a memoized ancestry walk: a tainting ancestor
makes it untrusted, one missing from the view makes it unknown, and ancestors
shared by several outputs are only walked once.

Co-authored-by: 志宇 <hello@evanlinjin.me>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
crates/chain/src/canonical.rs