lnwallet test: add TestCoinSelect

This commit is contained in:
Johan T. Halseth committed 2019-07-18 00:33:14 +02:00
1 parent 78da62c6f7
commit 2f5c1a69fb
2 files changed
+182

No files matched your search

+2
View File
@@ -1428,6 +1428,8 @@ func coinSelect(feeRate SatPerKWeight, amt btcutil.Amount,
//
// TODO: Handle wallets that generate non-witness change
// addresses.
// TODO(halseth): make coinSelect not estimate change output
// for dust change.
weightEstimate.AddP2WKHOutput()
// The difference between the selected amount and the amount