mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopout: improve log messages
Original message "Checking preimage reveal height 231435 exceeded" was not clear and could be interpreted that the swap has expired. Now the same message looks like this: "Checking if preimage reveal height 231435 was exceeded".
This commit is contained in:
parent
188e56785e
commit
80fcf19009
1 changed files with 3 additions and 3 deletions
|
|
@ -949,8 +949,8 @@ func (s *loopOutSwap) waitForConfirmedHtlc(globalCtx context.Context) (
|
|||
MinLoopOutPreimageRevealDelta
|
||||
|
||||
checkMaxRevealHeightExceeded := func() bool {
|
||||
s.log.Infof("Checking preimage reveal height %v "+
|
||||
"exceeded (height %v)",
|
||||
s.log.Infof("Checking if preimage reveal height %v "+
|
||||
"was exceeded (current height is %v)",
|
||||
maxPreimageRevealHeight, s.height)
|
||||
|
||||
if s.height <= maxPreimageRevealHeight {
|
||||
|
|
@ -958,7 +958,7 @@ func (s *loopOutSwap) waitForConfirmedHtlc(globalCtx context.Context) (
|
|||
}
|
||||
|
||||
s.log.Infof("Max preimage reveal height %v "+
|
||||
"exceeded (height %v)",
|
||||
"exceeded (current height %v)",
|
||||
maxPreimageRevealHeight, s.height)
|
||||
|
||||
s.state = loopdb.StateFailTimeout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue