Compare commits
2 Commits
7000908891
...
c0b1112e49
| Author | SHA1 | Date | |
|---|---|---|---|
| c0b1112e49 | |||
|
|
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
|
||||
|
||||
Reference in New Issue
Block a user