Commit graph

236 commits

Author SHA1 Message Date
Tiago vasconcelos
09bfa35cd5 avoid voidwallet crash 2022-01-17 15:52:19 -03:00
calle
43b48376bb
lndrest fees for fastapi (#459) 2021-12-09 00:26:08 +01:00
Arc
b4ad8cb5b2
Merge pull request #443 from lnbits/fastapi_fix_lndrestwallet_fee_limit
(FastAPI) LNDRest fee limit
2021-11-30 09:04:01 +00:00
callebtc
12c2a04b2a LNDRest fee limit 2021-11-29 18:10:11 +01:00
benarc
56397026c8 Chore, applied black 2021-11-26 05:58:20 +00:00
benarc
78f7a3914f Fixed error reporting for lntxbot source 2021-11-12 10:16:15 +00:00
benarc
267dea4f75 black 2021-11-12 04:14:55 +00:00
Ben Arc
860709f48c async wrap 2021-11-10 21:14:47 +00:00
Stefan Stammberger
8ea2d20389
fix: wallets not loading when protobuf is missing 2021-11-09 18:15:07 +01:00
Stefan Stammberger
768aa05b11
fix: switch from purerpc to grpcio for LND Wallet
purerpc is unmaintained and had some old dependencies.
2021-11-07 17:24:22 +01:00
Stefan Stammberger
54f4dfd838
fix: paid_invoices_stream for C-Lightning wallet 2021-11-04 19:49:48 +01:00
benarc
2eed8b620c removed header 2021-11-03 22:55:44 +00:00
benarc
a4ca6910fa tidied spark 2021-11-03 22:35:01 +00:00
benarc
7af0b786d1 cln sse should be working 2021-11-03 19:15:02 +00:00
benarc
92ea0635d7 another cln rpc sse try 2021-11-03 16:14:47 +00:00
benarc
a486cbe278 broken cln sse rpc 2021-11-03 16:07:04 +00:00
benarc
13bec714d5 lighningd payment stream not working 2021-11-03 15:24:24 +00:00
benarc
abff990ec3 Changed lnbits wallet check to detail from message 2021-11-03 10:29:39 +00:00
benarc
573ad3fb73 Added a try to fix lnbits funding source errors 2021-11-03 10:02:21 +00:00
benarc
1d3bb016a2 I want them to turn black 2021-10-17 18:33:29 +01: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
Tiago vasconcelos
a32e43b2bb fix having LND_GRPC_MACAROON as HEXSTRING issue #268 2021-08-06 12:37:30 -03:00
fiatjaf
e0496fb244 fix postgres type translation bug and add some logs. 2021-08-01 10:30:27 -03:00
fiatjaf
2f309c9863 postgres support. 2021-07-02 17:34:31 -03:00
Tiago vasconcelos
756b121105 print errors for tracking/debugging 2021-06-25 10:15:50 +01:00
Tiago vasconcelos
4585d97324 small fix on paid_invoices_stream 2021-06-23 18:50:01 +01:00
Tiago vasconcelos
021cf64c1e Added eclair backend 2021-06-23 16:13:48 +01:00
fiatjaf
688149fade add trio typing. 2021-06-20 21:17:32 -03:00
fiatjaf
232de067a4 expect more errors from SSE connection. 2021-04-21 23:27:57 -03:00
fiatjaf
3d489bf2ee make it so LNbitsWallet reconnects if the listener stream goes off. 2021-04-18 10:29:22 -03:00
fiatjaf
42b3359d12 fix invoice listener for LNbitsWallet. 2021-04-18 00:05:45 -03:00
fiatjaf
fdf4f6c1ae catch errors in multiple places that might be destroying the async flow and causing lnbits to die silently. 2021-04-10 17:37:48 -03:00
fiatjaf
59aaea47fd lndrest: capture the pay error properly. 2021-04-06 10:22:37 -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
3215b5d2bb catch some errors on spark. 2021-03-27 21:24:08 -03:00
fiatjaf
a787d60d93 be extra safe when failing a payment if pay_invoice throws on sparko. 2021-03-24 02:02:54 -03: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
e6ea77e682 catch exception on invalid hash passed to sparko. 2021-03-21 18:12:26 -03:00
fiatjaf
9dd040186d fix fee on lntxbot wallets. 2021-01-05 19:50:06 -03:00
fiatjaf
a67b93108b log errors on faulty lnpay webhooks. 2020-11-12 15:33:02 -03:00
fiatjaf
8f1ae1646e opennode: fix webhook handling (json -> urlencoded data). 2020-11-09 09:38:06 -03:00
benarc
d75c69cd10 fixed first opennode bug
Opennode funding source isnt working, there are a few bugs. This fixes the first
2020-11-08 23:15:27 +00:00
fiatjaf
f02ec67f35 add lntxbot invoices listener. 2020-10-14 23:58:57 -03:00
fiatjaf
0dc60d4795 increase timeouts for http wallets when stuff may take more than 5 seconds.
before we were using requests which had no default timeouts, but httpx has a
default timeout of 5 seconds. should have noticed that earlier.

when the timeout expires we are left with a pending payment on the db with a
temporary checking_id so we can never know if it was completed or not.

this is still an issue, because technically a lightning payment may take 2 weeks
or more, and we must have a way to dispatch a payment and check for it later.

that should be the default (and we already do check for the payment status later,
so half of the work is done), but on the other hand backends like lnpay and
opennode do not give us a checking_id before the thing is already settled.
2020-10-13 20:39:24 -03:00
fiatjaf
bcdc065cc0 mypy fixes. 2020-10-13 14:46:23 -03:00
fiatjaf
cf0bd7ece8 displaying lnurlpay success_actions. 2020-10-13 13:57:26 -03:00
fiatjaf
b1f30390b0 retrieve preimage from wallet backends, save it and show on UI dialog.
closes https://github.com/lnbits/lnbits/issues/77
2020-10-12 23:19:16 -03:00