lnd.xprv/lnwallet/btcwallet
Olaoluwa Osuntokun eaa043f585 lnwallet/btcwallet: use relay fee not tx fee rate for dust check
In this commit we fix a hidden bug in the transaction creating logic
that was only manifested recently due to higher fees on Bitcoin's
mainnet. Before this commit, we would use the target fee rate to
determine if an output was dust or not. However, this is incorrect, as
instead the relay fee should be used as this matches the policy checks
widely deployed in Bitcoin full node today.

To fix this issue we now properly use the relay fee when computing dust.
This fixes the issue for the `EstimateFee` call, but the `SendOutputs`
call also has a similar issue. However, this must be fixed within
`btcwallet` itself, so it has been left out of this commit

Fixes #3217.
2019-06-18 19:55:16 -07:00
..
blockchain.go lnwallet/btcwallet: provide cancel chan as neutrino QuitChan option 2019-05-09 14:44:52 +02:00
btcwallet.go lnwallet/btcwallet: use relay fee not tx fee rate for dust check 2019-06-18 19:55:16 -07:00
config.go lnwallet+chainregistry: remove unused FeeEstimator from wallet cfg 2019-04-16 14:16:56 -07:00
driver.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
signer.go multi: move Input interface and related code 2019-01-31 13:25:33 +01:00