]> Untitled Git - bdk/commit
test(chain): cover taint propagation and eligibility classification
authorDmenec <dmenec@proton.me>
Wed, 22 Jul 2026 16:43:47 +0000 (18:43 +0200)
committerDmenec <dmenec@proton.me>
Thu, 10 Sep 2026 18:35:51 +0000 (20:35 +0200)
commit01b466018c98af9aa3b7335b31c1ea23de0e3f42
tree372a98383ef4480b0f1c7f34a5f6cf0ed0801895
parent3f7c1bde852826cd3df0a12dd0ae8023a6f0bb07
test(chain): cover taint propagation and eligibility classification

- taint propagates through a pending output's unsettled ancestry
- is_settled alone decides the settled boundary, even for unconfirmed outputs
- taint never crosses a settled ancestor
- an immature coinbase is classified apart from a settled output
- two UTXOs sharing a tainting ancestor are both untrusted (shared taint cache)
- classify_outpoints skips spent and out-of-view outpoints

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