loopd: add loop in state InvoiceSettled

This commit is contained in:
Joost Jager 2019-04-02 10:51:51 +02:00
parent a7f4feb9ea
commit b5d2fb3894
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
7 changed files with 242 additions and 190 deletions

View file

@ -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"
}