From 0fc17238cd889ec8ce28908081ab0c0e9db093c0 Mon Sep 17 00:00:00 2001 From: Bjarne Magnussen Date: Tue, 26 Oct 2021 12:52:17 +0200 Subject: [PATCH 1/2] sweep: add label to sweep transactions --- sweep/sweeper.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sweep/sweeper.go b/sweep/sweeper.go index 2530306f..80feb948 100644 --- a/sweep/sweeper.go +++ b/sweep/sweeper.go @@ -15,6 +15,7 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/lightningnetwork/lnd/chainntnfs" "github.com/lightningnetwork/lnd/input" + "github.com/lightningnetwork/lnd/labels" "github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwallet/chainfee" ) @@ -1237,7 +1238,9 @@ func (s *UtxoSweeper) sweep(inputs inputSet, feeRate chainfee.SatPerKWeight, }), ) - err = s.cfg.Wallet.PublishTransaction(tx, "") + err = s.cfg.Wallet.PublishTransaction( + tx, labels.MakeLabel(labels.LabelTypeSweepTransaction, nil), + ) // In case of an unexpected error, don't try to recover. if err != nil && err != lnwallet.ErrDoubleSpend { From d342457ab244ac42015163d4e06cbfe416fe53c3 Mon Sep 17 00:00:00 2001 From: Bjarne Magnussen Date: Tue, 26 Oct 2021 13:14:04 +0200 Subject: [PATCH 2/2] release notes 0.14.0 --- docs/release-notes/release-notes-0.14.0.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/release-notes/release-notes-0.14.0.md b/docs/release-notes/release-notes-0.14.0.md index 35e34bde..6de9e240 100644 --- a/docs/release-notes/release-notes-0.14.0.md +++ b/docs/release-notes/release-notes-0.14.0.md @@ -434,6 +434,8 @@ messages directly. There is no routing/path finding involved. * [Fix REST/WebSocket API itest that lead to overall test timeout](https://github.com/lightningnetwork/lnd/pull/5845). +* [Fix missing label on sweep transactions](https://github.com/lightningnetwork/lnd/pull/5895). + ## Database * [Ensure single writer for legacy