]> Untitled Git - bdk/commit
Take into account the segwit tx header when...
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 12 Jul 2022 13:51:27 +0000 (15:51 +0200)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 2 Aug 2022 10:08:53 +0000 (12:08 +0200)
commitae919061e2b341ae74c90f0133ba392e835cb4e1
tree9323af33c791b7f3345c2aacae0819b31d1ddbe1
parent7ac87b8f99fc0897753ce57d48ea24adf495a633
Take into account the segwit tx header when...
...selecting coins

We take into account the larger segwit tx header for every
transaction, not just the segwit ones. The reason for this is that
we prefer to overestimate the fees for the transaction than
underestimating them - the former might create txs with a slightly
higher feerate than the requested one, while the latter might
create txs with a slightly lower one - or worse, invalid (<1 sat/vbyte)!
src/wallet/mod.rs