loopd: new loopin state for incorrect amount sweeps

This commit is contained in:
Slyghtning 2024-01-12 11:35:42 +01:00
parent 6f3c68fb21
commit 755d5dc68e
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
2 changed files with 13 additions and 5 deletions

View file

@ -306,6 +306,9 @@ func (s *swapClientServer) marshallSwap(loopSwap *loop.SwapInfo) (
case loopdb.StateFailInsufficientConfirmedBalance:
failureReason = clientrpc.FailureReason_FAILURE_REASON_INSUFFICIENT_CONFIRMED_BALANCE
case loopdb.StateFailIncorrectHtlcAmtSwept:
failureReason = clientrpc.FailureReason_FAILURE_REASON_INCORRECT_HTLC_AMT_SWEPT
default:
return nil, fmt.Errorf("unknown swap state: %v", loopSwap.State)
}