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
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
d5d85d16e6
fix: auth headers variable name on opennode.py
2020-10-12 20:59:09 -03:00
fiatjaf
1d00060419
harden sse connections to backends a little.
2020-10-09 20:55:58 -03:00
fiatjaf
7f41d73a84
SSE-based invoices stream for LNbitsWallet.
2020-10-09 17:06:50 -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
39c331a7b9
fix opennode stupid syntax errors.
2020-10-05 08:46:20 -03:00
fiatjaf
6e6ce093f0
guard against lndrest URLs without a leading http...
2020-10-05 08:45:57 -03:00
fiatjaf
1ce9936561
better handling of missing dependencies on lndgrpc.
2020-10-05 08:45:32 -03:00
fiatjaf
c3ded859df
fix requirements after rebase.
2020-10-04 14:07:52 -03:00
fiatjaf
f5b8ed8fc6
make lndgrpc work using the purerpc library and a manually-declared method.
2020-10-04 12:06:54 -03:00
fiatjaf
9994e61615
migrate to trio so c-lightning sockets stop hanging.
2020-10-04 12:06:20 -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
fiatjaf
bbe8d05af4
migrate from aiohttp to httpx following master.
2020-10-04 12:04:59 -03:00
fiatjaf
2c92205703
async invoice listeners through webhooks: lnpay and opennode.
2020-10-04 12:04:49 -03:00
fiatjaf
04222f1f01
basic invoice listeners.
2020-10-04 12:04:47 -03:00
fiatjaf
8b7028d728
add VoidWallet and make it the default.
2020-09-03 21:43:32 -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
1e4f39954e
fix: spark create_invoice error case.
2020-08-29 13:48:16 -03:00
fiatjaf
3645e0ac38
fix: lnpay invoices with description_hash.
2020-08-29 13:04:11 -03:00
fiatjaf
0de08dda0b
add spark backend and fix c-lightning.
2020-08-29 12:23:01 -03:00
fiatjaf
a79ec8f4a4
lnurlp extension.
2020-08-28 23:03:12 -03:00
fiatjaf
24dc6e5415
fix validation rules so description_hash works.
2020-07-04 22:28:08 -03:00
fiatjaf
bc27293315
support description_hash across all APIs.
2020-07-03 20:04:04 -03:00
Arc
a40823de43
Update lntxbot.py
2020-05-09 17:29:24 +01:00
Eneko Illarramendi
9eb253fe55
fix: typo
2020-05-04 17:34:53 +02:00
Eneko Illarramendi
b37af0c600
feat: use github pages and jekyll for docs
2020-05-04 17:20:36 +02:00
Eneko Illarramendi
2c5e539795
refactor: make some wallet dependencies optional
2020-05-02 19:16:10 +02: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
99cfdd5531
Update __init__.py
2020-04-25 22:11:27 +01:00
Arc
435f9c9773
Add files via upload
2020-04-25 22:10:45 +01:00
Eneko Illarramendi
ab190454f4
fix: LNbits backend wallet
2020-04-25 20:13:49 +02:00
Eneko Illarramendi
dd23b20090
chore: various tweaks
2020-04-16 20:58:16 +02:00
Arc
708b2f2652
Update lndgrpc.py
2020-04-13 22:23:42 +01:00
Eneko Illarramendi
8dc2143080
chore: update requirements
2020-04-03 22:52:08 +02:00
Arc
de187559a8
Update lnbits.py
2020-04-03 13:50:54 +01:00