mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-02-09 06:54:24 +01:00
legacy endpoint: no errored invoices
This commit is contained in:
@@ -65,6 +65,10 @@ func (controller *GetTXSController) GetTXS(c echo.Context) error {
|
||||
|
||||
response := make([]OutgoingInvoice, len(invoices))
|
||||
for i, invoice := range invoices {
|
||||
//only return settled invoices
|
||||
if invoice.State != common.InvoiceStateSettled {
|
||||
continue
|
||||
}
|
||||
rhash, _ := lib.ToJavaScriptBuffer(invoice.RHash)
|
||||
response[i] = OutgoingInvoice{
|
||||
RHash: rhash,
|
||||
|
||||
Reference in New Issue
Block a user