2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-04 06:00:21 +00:00

loopdb: classify InvoiceSettled as pending

This commit is contained in:
Joost Jager 2020-06-25 12:39:02 +02:00
parent 4ea21cee8b
commit b5a49ed205
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

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
}