]> Untitled Git - bdk/commit
fix(electrum): return error when tip height overflows u32
authorbhuvan-somisetty <somisettybhuvan5@gmail.com>
Thu, 8 Oct 2026 02:48:08 +0000 (08:18 +0530)
committer志宇 <hello@evanlinjin.me>
Sun, 18 Oct 2026 14:12:33 +0000 (01:12 +1100)
commit92ca220ce1c3346af9ec8ab7e36dc4280dc2c385
tree41937647be7ae3aaf7f12c5e1e3ac6a049c0c86d
parent2c89f60dfe00e75ad9bb79bf39e12046c2c8a3b5
fix(electrum): return error when tip height overflows u32

Validate that the tip height returned from `block_headers_subscribe`
fits in `u32` via `u32::try_from` instead of silently truncating with
`as u32`.

Signed-off-by: bhuvan-somisetty <somisettybhuvan5@gmail.com>
crates/electrum/src/bdk_electrum_client.rs