diff --git a/pkg/maintainer/spv/moved_funds_sweep.go b/pkg/maintainer/spv/moved_funds_sweep.go index 5ba49bbe79..a58a1a390f 100644 --- a/pkg/maintainer/spv/moved_funds_sweep.go +++ b/pkg/maintainer/spv/moved_funds_sweep.go @@ -188,12 +188,23 @@ func getUnprovenMovedFundsSweepTransactions( wallet.State != tbtc.StateMovingFunds { // The wallet can only submit moved funds sweep proof if it's `Live` // or `MovingFunds`. If the state is different skip it. + logger.Infof( + "skipped proving moved funds sweep transactions for wallet [%x] "+ + "because of wallet state [%v]", + walletPublicKeyHash, + wallet.State, + ) continue } if wallet.PendingMovedFundsSweepRequestsCount == 0 { // If the wallet does not have any pending moved funds sweep // requests skip it. + logger.Infof( + "skipped proving moved funds sweep transactions for wallet [%x] "+ + "because it has no pending moved funds sweep requests", + walletPublicKeyHash, + ) continue } diff --git a/pkg/maintainer/spv/moved_funds_sweep_test.go b/pkg/maintainer/spv/moved_funds_sweep_test.go index 01e65700bd..a830cedd4c 100644 --- a/pkg/maintainer/spv/moved_funds_sweep_test.go +++ b/pkg/maintainer/spv/moved_funds_sweep_test.go @@ -374,7 +374,7 @@ func TestGetUnprovenMovedFundsSweepTransactions(t *testing.T) { } // The order of returned transaction hashes is random. Sort them before - // comapring. + // comparing. sort.Slice(transactionsHashes, func(i, j int) bool { return transactionsHashes[i].String() < transactionsHashes[j].String() })