Pavol Rusnak
5ac1f8dd62
Use LndHub capitalization consistently
2022-07-15 01:08:34 +02:00
kiwiidb
c5f5ab12b9
remove memo
2022-06-08 14:46:32 +02:00
kiwiidb
2423b67ee0
add test that reproduces the issue
2022-05-28 10:25:19 +02:00
Michael Bumann
26fe80bf7d
Fix: start invoice subscription from last NOT expired invoice
...
Currently we checked all payments which means we start the subscription from an index for an invoice that can no longer be paid because it is expired.
And because it is expired we do not need to listen for updates for it anymore
2022-05-24 18:10:33 +02:00
kiwiidb
a0c6cd4729
fix internal keysends
2022-05-18 13:14:31 +02:00
kiwiidb
d01b9c492f
internal keysend payments
2022-05-18 11:46:15 +02:00
kiwiidb
8d91b1d92d
move keysend logic to it's own function
2022-05-18 10:04:04 +02:00
kiwiidb
045305585b
move constant to other TLV constants
2022-05-17 11:30:36 +02:00
kiwiidb
0ade09e8ac
keysend payments: don't process already-seen invoices
2022-05-17 11:21:21 +02:00
kiwiidb
db37c52624
accept keysend payments
2022-05-17 10:46:40 +02:00
kiwiidb
36ee813ff6
fix merge conflicts
2022-05-03 09:04:54 +02:00
kiwiidb
cd72e81b24
Update lib/service/invoicesubscription.go
...
Add user ID
Co-authored-by: Michael Bumann <hello@michaelbumann.com >
2022-05-02 12:39:42 +02:00
kiwiidb
f99409d145
invoice: use rawinvoice amt paid
2022-05-02 11:30:17 +02:00
kiwiidb
017bf282fd
publish incoming and outgoing payments to respective topics
2022-04-27 12:25:28 +02:00
kiwiidb
b150d8c8ec
change topic type to string
2022-04-27 12:21:15 +02:00
kiwiidb
624909484e
background routine: add context cancel support
2022-04-22 14:32:48 +02:00
kiwiidb
a5ae01a5f2
add proper pubsub
2022-04-06 18:00:04 +02:00
kiwiidb
93ad471dac
feature: settled invoice stream
2022-03-20 13:17:38 +01:00
Stefan Kostic
f93bdd54f9
Replace hardcoded strings with common constants
2022-02-09 22:27:01 +01:00
Stefan Kostic
3f4cc70d22
Revert commits related to constants
2022-02-09 22:24:52 +01:00
Stefan Kostic
3152f6f2e6
Replace hardcoded strings with common constants
2022-02-09 22:17:49 +01:00
kiwiidb
c3bec5f80c
chore: wrap LND client
2022-02-04 12:13:40 +01:00
kiwiidb
1ae5df6b8c
Feature: integration testing
...
Add integration tests with testify/suite. Moved some structs
outside of controller funcs so we can re-use them in the testing
package. Add CI workflow for running tests on every push.
2022-02-01 11:47:11 +01:00
Michael Bumann
3f01c3304d
Calculate timestamp in Go to not use PostgreSQL specific function
2022-01-30 20:30:19 +01:00
Michael Bumann
d10701ad2f
Custom HTTP error handler and send sentry notifications
2022-01-24 23:37:03 +01:00
Michael Bumann
9b292398da
Add sentry notification to invoice subscription
2022-01-24 23:05:08 +01:00
Michael Bumann
55b7943579
Do not handle invoices not found in the subscription handler as errors
...
the app will get notfied of any invoice and not just the invoices we have created.
Thus we ignore the updates for invoices we do not know about. This is not an error
2022-01-24 23:04:53 +01:00
Michael Bumann
a2c75110c2
Log correct error
2022-01-23 21:06:34 +02:00
Michael Bumann
af8c72d2c9
Store invoice expiry and use search for not expired invoices in the invoice subscription
...
When subscribing for invoice updates we only subscribe to not expired invoices.
We assume expired invoices will never get paid.
2022-01-22 21:11:19 +01:00
Michael Bumann
d90a695172
Context how do they work...
2022-01-22 13:32:15 +01:00
Michael Bumann
b54f04701f
Start invoice subscription from the last unsettled invoice
...
We want to get updates starting from those invoices.
This allows us to catch up in case the app was offline while some invoices got settled
2022-01-22 13:24:51 +01:00
Michael Bumann
c75e703d80
Try reconnecting on invoice subscription errors
2022-01-22 12:57:00 +01:00
Michael Bumann
71eabae443
Split up process invoice updates
2022-01-21 21:29:16 +01:00
Michael Bumann
12dbb48c8d
First draft to subscribe for LND invoice update
2022-01-21 20:57:41 +01:00