mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopdb: state insufficient confirmed funds
This commit is contained in:
parent
0060e3fe53
commit
0bd4b7cf89
2 changed files with 10 additions and 0 deletions
|
|
@ -291,6 +291,9 @@ func (s *swapClientServer) marshallSwap(loopSwap *loop.SwapInfo) (
|
|||
case loopdb.StateFailAbandoned:
|
||||
failureReason = clientrpc.FailureReason_FAILURE_REASON_ABANDONED
|
||||
|
||||
case loopdb.StateFailInsufficientConfirmedBalance:
|
||||
failureReason = clientrpc.FailureReason_FAILURE_REASON_INSUFFICIENT_CONFIRMED_BALANCE
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown swap state: %v", loopSwap.State)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue