Commit graph

35 commits

Author SHA1 Message Date
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
ben
3a28ff1020 added swagger to extensions 2022-07-27 19:21:04 +01:00
calle
f4e7d62ca3
make format everything (#743) 2022-07-16 14:23:03 +02:00
calle
c626e12fa3
LNDHhub for fastapi with LIMIT (#499)
* add limit to get_payments

* add limit to lndhub

* fix defaults

* default memo

* add offset cluase

* offset for the api
2022-02-17 13:10:34 +01:00
Ben Arc
dbab181759 Admin users can credit accounts 2022-01-31 16:29:42 +00:00
Stefan Stammberger
efec7cb8f0 Revert "chore: apply black to all .py files"
This reverts commit 83b7779972.
2021-11-26 05:56:30 +00:00
Stefan Stammberger
83b7779972
chore: apply black to all .py files 2021-11-24 14:31:55 +01:00
benarc
267dea4f75 black 2021-11-12 04:14:55 +00:00
Tiago vasconcelos
d4d3ef2594 lndhub model required fields 2021-11-03 10:30:43 +00:00
Tiago vasconcelos
70885ce160 clean up (black, sort) 2021-10-18 10:58:09 +01:00
benarc
1d3bb016a2 I want them to turn black 2021-10-17 18:33:29 +01:00
Stefan Stammberger
70facdaa93
fix(lndhub): require admin key for sending funds 2021-10-17 10:30:59 +02:00
Tiago vasconcelos
2282e79f4d hack to stop paying invoices if not admin key 2021-10-16 22:27:21 +01:00
Stefan Stammberger
570e8d28dd
fix: lndhub auth handling 2021-10-15 19:55:24 +02:00
Tiago vasconcelos
36d55db4fc fix argument order 2021-10-15 16:39:45 +01:00
Tiago vasconcelos
9096ed38b9 fix routing issues 2021-10-15 16:20:23 +01:00
benarc
08bc771fbe LNDHub loading, prob not working 2021-10-13 16:47:24 +01:00
Tiago vasconcelos
6edac8ae8d remove extensions 2021-10-01 10:49:11 +01:00
Tiago vasconcelos
fc68e0a6da fastAPI refactoring 2021-08-22 12:17:43 +01:00
Ben Arc
bbdb96f4ac Converted views 2021-08-21 01:55:07 +01:00
Ben Arc
fe123d6d31 Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
Ben Arc
9c313586bd removed all but one extension, so we can focus on core 2021-08-16 18:12:48 +01:00
fiatjaf
e0496fb244 fix postgres type translation bug and add some logs. 2021-08-01 10:30:27 -03:00
Ben Arc
aa1c83cdc4 added dynamic titles for continuity 2021-07-25 14:26:20 +01:00
Ben Arc
45738beb59 few text tweaks 2021-06-23 20:28:01 +01:00
fiatjaf
d4d069fc77 make all methods from all wallets async. 2021-03-24 01:01:09 -03:00
fiatjaf
42bd5ea989 remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
fiatjaf
d84915cb00 oops: formatting. 2020-11-21 23:23:11 -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
0b1f3c22e0 lndhub: fix "token" -> "refresh_token". 2020-10-06 21:53:43 -03:00
fiatjaf
f01028eac7 migrate from flask to quart.
also remove all flaskiness from static file serving.
and reference all vendored scripts on the base tempĺate for simplicity.
2020-09-14 16:03:25 -03:00
fiatjaf
e6ad42dbe1 update prettier to 2.1.1 2020-09-14 09:14:51 -03:00
fiatjaf
f4fffc19aa lndhub extension frontend. 2020-09-12 21:55:13 -03:00
fiatjaf
6210305791 checking pending invoices and payments from lndhub interface. 2020-09-12 21:55:13 -03:00
fiatjaf
ce038193cf lndhub extension backend. 2020-09-12 21:55:13 -03:00