Vlad Stan
6cab77ece4
Merge branch 'main' into FinalAdminUI
2022-12-12 10:49:31 +02:00
callebtc
167c2ce9f1
make format
2022-12-02 18:51:52 +01:00
callebtc
7a6450f032
add expiry to Payment model
2022-12-02 18:51:18 +01:00
callebtc
1a98f15d48
remove STARTUP_INVOICE_EXPIRY_CHECK
2022-12-02 17:39:56 +01:00
callebtc
79ffbb7bc2
merge main
2022-12-02 11:23:20 +01:00
Vlad Stan
4319836195
fix: important info, should be visible in the logs
2022-12-01 12:21:25 +01:00
Vlad Stan
ead710e591
fix: important info, should be visible in the logs
2022-11-25 11:32:30 +02:00
dni ⚡
c845502f28
fix WALLET initialisation
2022-10-05 13:05:09 +02:00
callebtc
3b70d45091
.env variable for STARTUP_INVOICE_EXPIRY_CHECK
2022-10-04 09:56:15 +02:00
calle
5a12f4f237
Improved SSE listeners ( #865 )
...
* logging listeners
* comments
* generate privkey upon init
* listener queue
* remove duplicate check
* make format
* reuse channel
* error handling in sse listener
* uuid for listeners
* register named invoices
* uuid for listeners and listener list
* fix poetry lock
* setuptools
* requirements asyncio timeout
* setuptool;s
* make format
* remove async-timeout
* async_timeout readd
* try lower setuptools version
* try lower lower setuptools version
* back to current version + fix, maybe
* fix worflows to use poetry 1.2.1
* remove uneeded setuptools from build-system
* fix up formatting workflow
* debug to trace
* more traces
* debug logs to trace
Co-authored-by: dni ⚡ <office@dnilabs.com>
2022-10-04 09:51:47 +02:00
calle
d0ca0b18da
Fix/db reuse connection mark pending ( #964 )
...
* check if wallet exists
* check wallet existence in key check
* reuse connection for stataus update
* make format
2022-09-12 20:57:23 +03:00
calle
d757154125
print time of expiration ( #952 )
2022-09-09 16:27:37 +03:00
calle
54305c8f91
reuse db connection for pending and expired tasks ( #951 )
...
* reuse db connection for pending and expired tasks
* make format
2022-09-09 15:02:07 +03:00
calle
2ee10e28c5
Backend: Unstuck outgoing payments ( #857 )
...
* first attempts
* lndrest works
* fix details
* optional fee update
* use base64.urlsafe_b64encode
* return paymentstatus
* CLN: return pending for pending invoices
* grpc wip
* lndgrpc works
* cln: return pending for pending invoices really this time
* retry wallet out of exception
* wip eclair
* take all routines into try except
* cliche: return error
* rename payment.check_pending() to payment.check_status()
* rename payment.check_pending() to payment.check_status()
* eclair: works
* eclair: better error check
* opennode: works
* check payment.checking_id istead of payment.ok
* payment.ok check as well
* cln: works?
* cln: works
* lntxbot: works
* lnbits/wallets/lnpay.py
* cln: error handling
* make format
* lndhub full detail update
* spark: wip
* error to False
* wallets: return clean PaymentResponse
* opennode: strict error
* cliche: works
* lnbits: works
* cln: dont throw error
* preimage not error
* fix cln
* do not add duplicate payments
* revert cln
* extra safety for cln
* undo crud changes until tests work
* tasks: better logging and 0.5s sleep for regular status check
* 0.1 s
* check if wallet exists
* lnbits unhashed description
* remove sleep
* revert app.py
* cleanup
* add check
* clean error
* readd app.py
* fix eclaid
2022-08-30 13:28:58 +02:00
dni
808bd36e23
some more mypy fixes
2022-07-25 12:02:59 +02:00
calle
f4e7d62ca3
make format
everything (#743 )
2022-07-16 14:23:03 +02:00
calle
089313f613
Logging with loguru ( #708 )
...
* logging
* requirements
* add loguru dependency
* restore it
* add loguru
* set log level in .env file
* remove service fee print
* set log level
* more logging
* more logging
* more logging
* pyament.checking_id
* fix
2022-07-07 14:30:16 +02:00
calle
2f62d98299
Delete expired invoices after one pending check ( #531 )
...
* delete expired invoices regularly and after pending check
* fix mistake
* delete expired invoices only once
2022-06-26 19:12:55 +02:00
calle
906f0166bd
Core: fix internal webhooks ( #649 )
...
* fix internal webhooks
* argument annotation
2022-06-03 14:33:31 +02:00
Stefan Stammberger
63d0242685
fix: more return types
2021-09-11 11:02:48 +02:00
Stefan Stammberger
d9849d43d2
refactor: replace Trio with asyncio/uvloop
2021-08-30 19:55:02 +02:00
Stefan Stammberger
3e5af8c1d1
refactor: purge Quart from the codebase
...
Most functionality is still broken
2021-08-27 20:54:42 +02:00
fiatjaf
e0496fb244
fix postgres type translation bug and add some logs.
2021-08-01 10:30:27 -03:00
fiatjaf
b1b487bc48
catch everything and restart in main background tasks.
2021-07-30 19:29:54 -03:00
fiatjaf
688149fade
add trio typing.
2021-06-20 21:17:32 -03:00
fiatjaf
8cff11bf72
global quart errorhandler.
2021-05-06 23:22:02 -03:00
fiatjaf
efd9c6917f
lnurl balanceCheck and balanceNotify.
2021-04-17 23:21:19 -03:00
fiatjaf
e112258c39
improve checking routine.
...
check pending invoices only once on startup,
then check outgoing payments every 30 minutes,
and delete outgoing payments that return False (meaning they have failed).
also fix a bug on sparko.
2021-03-28 00:11:45 -03:00
fiatjaf
9cc7052920
actually wait 2 hours between each checkpending routine.
2021-03-24 10:15:00 -03:00
fiatjaf
aabe3364f4
only check pending from the last 15 days.
2021-03-24 01:41:19 -03:00
fiatjaf
42bd5ea989
remove exception to black line-length and reformat.
2021-03-24 00:40:32 -03:00
fiatjaf
8e62d9287d
actually repeat the check once every 5 minutes just to be sure.
...
also because the stream doesn't cover outgoing payments.
2021-03-21 17:59:59 -03:00
fiatjaf
7e4a42e7ff
stop doing the check_invoices thing on each call. do it once on lnbits starup and then rely on the invoices listener.
2021-03-21 17:57:33 -03:00
fiatjaf
d3fc52cd49
migrate to sqlalchemy-aio.
...
a big refactor that:
- fixes some issues that might have happened (or not) with asynchronous
reactions to payments;
- paves the way to https://github.com/lnbits/lnbits/issues/121 ;
- uses more async/await notation which just looks nice; and
- makes it simple(r?) for one extension to modify stuff from other extensions.
2020-11-21 23:02:14 -03:00
fiatjaf
2552fd8fc9
internal payments get reported on async listeners.
2020-10-22 15:36:37 -03:00
fiatjaf
9a16dfa960
remove annoying warnings and unnecessary prints.
...
show a summary of some settings on startup when running __main__.py
2020-10-06 12:59:08 -03:00
fiatjaf
c5352c0309
register channel listeners instead of callbacks.
...
makes for a little less black magic and more reasonable use of nurseries
and less unnecessary pseudo-requests.
2020-10-06 01:50:56 -03:00
fiatjaf
95e8573ff8
SSE endpoint for paid invoices.
...
also move very essential stuff from core/tasks.py to tasks.py so things
are more organized.
2020-10-06 00:40:18 -03:00