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:
parent
4ea21cee8b
commit
b5a49ed205
@ -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…
Reference in New Issue
Block a user