]> Untitled Git - bdk/commit
docs(chain): state that an anchor names the confirming block
author志宇 <hello@evanlinjin.me>
Fri, 11 Sep 2026 01:46:53 +0000 (01:46 +0000)
committer志宇 <hello@evanlinjin.me>
Tue, 13 Oct 2026 01:33:18 +0000 (01:33 +0000)
commit306e052be996ed8ed62ce3e6613dadffe8e04235
tree7e990e8ea0caf048405a87783e3c0808072fd403
parent8b15e743e99a67be7d1d06a632b5f96bb7e365da
docs(chain): state that an anchor names the confirming block

The `Anchor` trait doc claimed an anchored transaction "could also mean
transaction A is confirmed in a parent block of B". No chain source in
this repo produces such an anchor: electrum only builds one after
`validate_merkle_proof` succeeds, esplora uses `TxStatus`'s confirming
block, and `TxPosInBlock` carries the transaction's index within that
block. The framing only leaves ambiguity for a case that does not occur.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NND8BhEmYTYdLRv4dbUUro
crates/chain/src/tx_data_traits.rs