sweep: change outputs are now P2TR

This commit is contained in:
Olaoluwa Osuntokun committed 2022-08-11 17:26:16 -07:00
1 parent dc16f5df53
commit b711120dca
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ func newTxInputSet(wallet Wallet, feePerKW chainfee.SatPerKWeight,
func (t *txInputSet) enoughInput() bool {
// If we have a change output above dust, then we certainly have enough
// inputs to the transaction.
if t.changeOutput >= lnwallet.DustLimitForSize(input.P2WPKHSize) {
if t.changeOutput >= lnwallet.DustLimitForSize(input.P2TRSize) {
return true
}