Skip to content

Commit 98faa8c

Browse files
authored
Merge pull request #239 from joostjager/fix-pending-state
loopdb: classify InvoiceSettled as pending
2 parents 4ea21ce + b5a49ed commit 98faa8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

loopdb/swapstate.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ const (
8181
// Type returns the type of the SwapState it is called on.
8282
func (s SwapState) Type() SwapStateType {
8383
if s == StateInitiated || s == StateHtlcPublished ||
84-
s == StatePreimageRevealed || s == StateFailTemporary {
84+
s == StatePreimageRevealed || s == StateFailTemporary ||
85+
s == StateInvoiceSettled {
8586

8687
return StateTypePending
8788
}

0 commit comments

Comments
 (0)