]> Untitled Git - bdk/commit
fix(core): `Checkpoint::insert` now evicts on `prev_blockhash` mismatch
author志宇 <hello@evanlinjin.me>
Tue, 13 Jan 2026 13:33:48 +0000 (21:33 +0800)
committer志宇 <hello@evanlinjin.me>
Wed, 22 Apr 2026 04:48:17 +0000 (04:48 +0000)
commitf10ba0ecb1e60aef40820298a357eb394bc190e9
treef040bc91bbfcb08166f5c3b85273751672edef63
parent046a771b7842dac74d5cb82a56b28fbbbbe1a33a
fix(core): `Checkpoint::insert` now evicts on `prev_blockhash` mismatch

Additionally, `insert` now panics if the genesis block gets displaced (if
it existed in the first place).

Co-authored-by: valued mammal <valuedmammal@protonmail.com>
crates/core/src/checkpoint.rs