Merge pull request #239 from joostjager/fix-pending-state

loopdb: classify InvoiceSettled as pending
pull/243/head
Joost Jager 4 years ago committed by GitHub
commit 98faa8c59d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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