lnd.xprv/lnwallet/btcwallet
Wilmer Paulino 255f38e72d
lnwallet/btcwallet: check output is under our control in FetchInputInfo
In this commit, we add an additional check to btcwallet's FetchInputInfo
method to ensure the output is actually under control of the wallet.
Previously, the wallet would assume the output was under its control if
the txid of the output was found within the wallet. This is not a safe
assumption to make however, because if we happened to be the sender of
this transaction, it would be found within the wallet but it's not
actually under our control. To fix this, we explicitly check that there
exists an address in our wallet for this output.
2018-11-14 20:17:36 -08:00
..
blockchain.go lnwallet/btcwallet: update neutrino GetUtxo impl to use new API 2018-07-31 21:28:57 -07:00
btcwallet.go lnwallet: update to new SendOutputs signature 2018-11-10 07:57:19 +01:00
config.go multi: switch over import paths from roasbeef/* to btcsuite/* 2018-07-13 17:05:39 -07:00
driver.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
signer.go lnwallet/btcwallet: check output is under our control in FetchInputInfo 2018-11-14 20:17:36 -08:00