mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopd: add loop in state InvoiceSettled
This commit is contained in:
parent
a7f4feb9ea
commit
b5d2fb3894
7 changed files with 242 additions and 190 deletions
|
|
@ -51,6 +51,10 @@ const (
|
|||
|
||||
// StateHtlcPublished means that the client published the on-chain htlc.
|
||||
StateHtlcPublished = 8
|
||||
|
||||
// StateInvoiceSettled means that the swap invoice has been paid by the
|
||||
// server.
|
||||
StateInvoiceSettled = 9
|
||||
)
|
||||
|
||||
// SwapStateType defines the types of swap states that exist. Every swap state
|
||||
|
|
@ -114,6 +118,9 @@ func (s SwapState) String() string {
|
|||
case StateFailTemporary:
|
||||
return "FailTemporary"
|
||||
|
||||
case StateInvoiceSettled:
|
||||
return "InvoiceSettled"
|
||||
|
||||
default:
|
||||
return "Unknown"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue