mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopd: new loopin state for incorrect amount sweeps
This commit is contained in:
parent
6f3c68fb21
commit
755d5dc68e
2 changed files with 13 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue