Skip to content

Commit

Permalink
cln: Fix typo in probe payment
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeShimizu committed Dec 19, 2023
1 parent 49b72cf commit 0b59602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clightning/clightning.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,8 @@ func (cl *ClightningClient) ProbePayment(scid string, amountMsat uint64) (bool,
if !ok {
return false, "", fmt.Errorf("WaitSendPay() %w", err)
}
faiCodeWireIncorrectOrUnknownPaymentDetails := 203
if pe.RpcError.Code != faiCodeWireIncorrectOrUnknownPaymentDetails {
failCodeWireIncorrectOrUnknownPaymentDetails := 203
if pe.RpcError.Code != failCodeWireIncorrectOrUnknownPaymentDetails {
log.Debugf("send pay would be failed. reason:%w", err)
return false, pe.Error(), nil
}
Expand Down

0 comments on commit 0b59602

Please sign in to comment.