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

loopdb: classify InvoiceSettled as pending
This commit is contained in:
Joost Jager 2020-06-25 14:21:49 +02:00 committed by GitHub
commit 98faa8c59d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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