]> Untitled Git - bdk/commit
Avoid over-/underflow error in coin_select
authorDaniel Karzel <daniel@comit.network>
Thu, 1 Apr 2021 05:14:59 +0000 (16:14 +1100)
committerDaniel Karzel <daniel@comit.network>
Tue, 6 Apr 2021 00:21:55 +0000 (10:21 +1000)
commite5ecc7f5410aea9d7a108a46d01c7a2fa0822bb7
tree2d3f04f7346e4c9855b0525e76e03f0e3b27f4ad
parent1e6b8e12b22dd2a2ddd05792855cccdc24fef98f
Avoid over-/underflow error in coin_select

Adds fix for edge-cases involving small UTXOs (where value < fee) where the coin_select calculation would panic with overflow/underflow errors.
Bitcoin is limited to 21*(10^6), so any Bitcoin amount fits into i64.
CHANGELOG.md
src/wallet/coin_selection.rs