Skip to content

Commit 80fcf19

Browse files
committed
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".
1 parent 188e567 commit 80fcf19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

loopout.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,16 +949,16 @@ func (s *loopOutSwap) waitForConfirmedHtlc(globalCtx context.Context) (
949949
MinLoopOutPreimageRevealDelta
950950

951951
checkMaxRevealHeightExceeded := func() bool {
952-
s.log.Infof("Checking preimage reveal height %v "+
953-
"exceeded (height %v)",
952+
s.log.Infof("Checking if preimage reveal height %v "+
953+
"was exceeded (current height is %v)",
954954
maxPreimageRevealHeight, s.height)
955955

956956
if s.height <= maxPreimageRevealHeight {
957957
return false
958958
}
959959

960960
s.log.Infof("Max preimage reveal height %v "+
961-
"exceeded (height %v)",
961+
"exceeded (current height %v)",
962962
maxPreimageRevealHeight, s.height)
963963

964964
s.state = loopdb.StateFailTimeout

0 commit comments

Comments
 (0)