sweep: log tx label in GetSweepFee methods

Added argument 'label' to GetSweepFee and GetSweepFeeDetails. It is logged
together with expected weight, fee and feerate.
This commit is contained in:
Boris Nagaev 2024-10-21 15:35:32 -03:00
parent f8c1607154
commit 697e8d6255
No known key found for this signature in database
6 changed files with 53 additions and 8 deletions

View file

@ -570,8 +570,11 @@ func (s *Client) getLoopOutSweepFee(ctx context.Context, confTarget int32) (
htlc = swap.QuoteHtlcP2WSH
}
label := "loopout-quote"
return s.sweeper.GetSweepFee(
ctx, htlc.AddSuccessToEstimator, p2wshAddress, confTarget,
label,
)
}