From b5a49ed2053ae805cb683925c907a7dc965a78ce Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Thu, 25 Jun 2020 12:39:02 +0200 Subject: [PATCH] loopdb: classify InvoiceSettled as pending --- loopdb/swapstate.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loopdb/swapstate.go b/loopdb/swapstate.go index 1227f16..87c21f3 100644 --- a/loopdb/swapstate.go +++ b/loopdb/swapstate.go @@ -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 }