From 902f6eac52dd83d412ddda99ec897978edb36ef0 Mon Sep 17 00:00:00 2001 From: Tomasz Slabon Date: Fri, 15 Mar 2024 14:13:10 +0100 Subject: [PATCH] Added new logs --- pkg/maintainer/spv/moved_funds_sweep.go | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 }