calle
0c5cb8cb9e
Wallets: increase timeouts ( #787 )
...
* increase pay timeouts to infinite
2022-07-27 15:29:44 +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
0f97f8f18b
Fee reserve for lightning backends ( #557 )
...
* preparing fees
* fee_limit_msat
* await resp result
* clightning
* fix tests
* fix test
* add fee to test
* mypy
* invoice_status
* checking id fix
* fee reserve error message
* only for external payments
2022-03-16 07:20:15 +01:00
Graham Krizek
251e6a8233
Add a fallback to LND_REST_CERT to use the system chain if its not present ( #539 )
2022-03-01 22:58:54 +03:00
calle
0764f4fdf1
Support for encrypted macaroons ( #521 )
...
* encrypted macaroons
* fix GRPC env entry
* example config entry
* add pycryptodomex to requirements
* documentation
* Added pycryptodomex to pip file
Co-authored-by: Ben Arc <ben@arc.wales>
2022-02-14 17:54:05 +01:00
benarc
228717195b
back
2022-01-30 19:43:30 +00:00
calle
43b48376bb
lndrest fees for fastapi ( #459 )
2021-12-09 00:26:08 +01:00
callebtc
12c2a04b2a
LNDRest fee limit
2021-11-29 18:10:11 +01:00
benarc
1d3bb016a2
I want them to turn black
2021-10-17 18:33:29 +01:00
Stefan Stammberger
d9849d43d2
refactor: replace Trio with asyncio/uvloop
2021-08-30 19:55:02 +02:00
fiatjaf
688149fade
add trio typing.
2021-06-20 21:17:32 -03:00
fiatjaf
59aaea47fd
lndrest: capture the pay error properly.
2021-04-06 10:22:37 -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
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
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
fiatjaf
f2ea8a0c74
fix lndrest payment checking: b64/hex mismatch.
...
finally fixes https://github.com/lnbits/lnbits/issues/55
and https://github.com/lnbits/lnbits/issues/110
2020-10-12 23:18:58 -03:00
fiatjaf
b5a07c7ae7
add status() method to wallets to be used in initial check.
2020-10-12 22:30:19 -03:00
fiatjaf
1d00060419
harden sse connections to backends a little.
2020-10-09 20:55:58 -03:00
fiatjaf
6f72f1fe6d
fix typo: LND_MACAROON -> LND_REST_MACAROON
2020-10-08 16:24:23 -03:00
fiatjaf
76633fb71f
lndrest: check last 20 payments instead of first 20.
...
fixes https://github.com/lnbits/lnbits/issues/110
2020-10-08 16:08:13 -03:00
fiatjaf
9185342c72
simplify environment variables required.
...
instead of multiple keys/macaroons with different permissions we request only one.
if someone wants to use lnbits with an invoice macaroon they're free to do it and
we will just fail on 'pay' methods, as before.
this also grandfathers the previous environment variables names so everything keeps
working without people having to change their setups.
in the meantime some bugs with lntxbot and c-lightning were fixed and the `requests`
dependency was eliminated because I can't organize myself into meaningful chunks of
changes.
2020-10-08 16:03:21 -03:00
fiatjaf
0b1f3c22e0
lndhub: fix "token" -> "refresh_token".
2020-10-06 21:53:43 -03:00
fiatjaf
4e68a0e7e6
lndrest: two small fixes.
2020-10-05 22:43:49 -03:00
fiatjaf
bb965e4119
lndrest: account for when there are pending checking_ids from other sources.
2020-10-05 22:16:28 -03:00
fiatjaf
6e6ce093f0
guard against lndrest URLs without a leading http...
2020-10-05 08:45:57 -03:00
fiatjaf
c3ded859df
fix requirements after rebase.
2020-10-04 14:07:52 -03:00
fiatjaf
e74cf33f90
broken invoice listener on c-lightning and other fixes around wallets.
2020-10-04 12:05:59 -03:00
fiatjaf
b3c69ad49c
invoice listeners support on lnd and other fixes around wallets/
2020-10-04 12:05:01 -03:00
Eneko Illarramendi
23cfe0d417
chore: update github workflows
2020-09-03 23:10:41 +02:00
fiatjaf
68b0adfe66
fix: description_hash as an optional param to create_invoice.
...
fixes https://github.com/lnbits/lnbits/issues/74
2020-08-30 23:54:50 -03:00
fiatjaf
bc27293315
support description_hash across all APIs.
2020-07-03 20:04:04 -03:00
Eneko Illarramendi
c3e337a319
fix: mypy errors
2020-04-26 16:58:29 +02:00
Arc
976a3d4e5c
Update lndrest.py
2020-04-26 01:10:57 +01:00
Arc
5d128523c7
Update lndrest.py
2020-04-25 22:41:27 +01:00
Arc
435f9c9773
Add files via upload
2020-04-25 22:10:45 +01:00