]> Untitled Git - bdk/commitdiff
Merge bitcoindevkit/bdk#2376: docs(chain): document that `apply_block` trusts the... master github/master
authormerge-script <hello@evanlinjin.me>
Sun, 18 Oct 2026 04:08:23 +0000 (15:08 +1100)
committermerge-script <hello@evanlinjin.me>
Sun, 18 Oct 2026 04:08:23 +0000 (15:08 +1100)
2cce69780e6ca215c450cb9d8ebd1c752339c99b docs(chain): document that `apply_block` trusts the given block (志宇)

Pull request description:

  Fixes #2278. Supersedes #2373.

  Documents that `apply_block` and `apply_block_relevant` don't validate the block (chain membership or merkle root), so the caller must supply it from a trusted source. No `debug_assert!`: a bad block comes from a bad source at runtime, where the assert is compiled out.

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  oleonardolima:
    utACK 2cce69780e6ca215c450cb9d8ebd1c752339c99b

Tree-SHA512: bf155a1b7c94a5e23078b23449085f028a76852e72c0d6c2a52867337398c3f9331eb8072a52fb57d5b093d9afd685d3b901d540513f0557656910e110f312a3


Trivial merge