loopdb: classify InvoiceSettled as pending

pull/239/head
Joost Jager 4 years ago
parent 4ea21cee8b
commit b5a49ed205
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -81,7 +81,8 @@ const (
// Type returns the type of the SwapState it is called on.
func (s SwapState) Type() SwapStateType {
if s == StateInitiated || s == StateHtlcPublished ||
s == StatePreimageRevealed || s == StateFailTemporary {
s == StatePreimageRevealed || s == StateFailTemporary ||
s == StateInvoiceSettled {
return StateTypePending
}

Loading…
Cancel
Save