]> Untitled Git - bdk/commit
fix(esplora): `chain_update` errors if no point of connection
authorvalued mammal <valuedmammal@protonmail.com>
Thu, 5 Jun 2025 17:17:21 +0000 (13:17 -0400)
committervalued mammal <valuedmammal@protonmail.com>
Tue, 1 Jul 2025 15:24:25 +0000 (11:24 -0400)
commitdd394cb31869df89c5e5b3bbbf88e26763348878
treed2e5b78bb875490c545b3ba4133fb574ddd8fb67
parent63923c63dc5dbd7850ae8fa4f4d1b832170fe957
fix(esplora): `chain_update` errors if no point of connection

Before, the `chain_update` function would hit a panic if the
local checkpoint was not on the same network as the remote
server. Now if we have iterated all of the blocks of the
`local_cp` and do not find a "point of agreement", then we
return early with a `esplora_client::Error::HeaderHashNotFound`.
crates/esplora/src/async_ext.rs
crates/esplora/src/blocking_ext.rs