Hide unsuccessful outgoing lndhub txs in list
This commit is contained in:
parent
7000908891
commit
259e72167b
@ -86,6 +86,10 @@ class Services::LightningController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
# Handle an edge case where lndhub.go includes a failed payment in the
|
||||
# list, which wasn't actually booked
|
||||
txs.reject!{ |tx| tx["type"] == "paid_invoice" && tx["payment_preimage"].blank? }
|
||||
|
||||
txs.sort{ |a,b| b["datetime"] <=> a["datetime"] }
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user