lnd.xprv/lnwallet/btcwallet
Olaoluwa Osuntokun 4a0a657eb0
lnwallet/btcwallet: fix bug in implementation of GetUxo
This commit fixes a bug within the btcwallet implementation of the
BlockChainIO interface. The exact nature of the bug was a rounding
error that would only manifest if the value of the UTXO was below 1
BTC.

The tests within this package currently test channels with mostly whole
values of BTC, as a result the bug went unnoticed until now.

The fix itself is trivial: convert to an int64 AFTER performing the
multiplication to convert to satoshis from Bitcoin.
2016-12-27 16:43:51 -08:00
..
blockchain.go lnwallet/btcwallet: fix bug in implementation of GetUxo 2016-12-27 16:43:51 -08:00
btcwallet.go lnwallet: add new method IsSynced to the WalletController interface 2016-12-12 15:56:33 -08:00
config.go lnwallet: add a BtcWallet implementation of WalletController 2016-09-08 12:25:32 -07:00
driver.go lnwallet: add a BtcWallet implementation of WalletController 2016-09-08 12:25:32 -07:00
signer.go lnwallet/btcwallet: add compile-time interface assertions for Signer+BlockChainIO 2016-12-27 16:43:31 -08:00