Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #734: commands: add weights before converting to vbytes
176859e commands: add weights before converting to vbytes (jp1ac4) Pull request description: The `sanity_check_psbt()` function checks, among other things, that the feerate in sats/vbytes is in the required range. When estimating the transaction size, converting each part to vbytes first can lead to a larger result due to rounding multiple times and therefore a lower feerate, which could fall below 1 and fail the sanity check. This issue has arisen in #560 when creating a transaction using coin selection. ACKs for top commit: darosior: utACK 176859e -- great catch Tree-SHA512: 5e4fc795c5977c71a0f02b21c09cd71d59c9412f94bcafd5a4adb429c4ae3a568a25c4174bd305e0be927f06ae4e9be9aef791ffbbee2a7ac1c40740f639ab10
- Loading branch information