Skip to content

Commit

Permalink
Added new logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed Mar 15, 2024
1 parent cbd5bf8 commit 902f6ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/maintainer/spv/moved_funds_sweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 902f6ea

Please sign in to comment.