benarc
2d2ba0bcf2
initial commit
4 years ago
fiatjaf
2863653261
lnurlp: accept comments, USD prices, min/max ranges.
4 years ago
fiatjaf
2552fd8fc9
internal payments get reported on async listeners.
4 years ago
fiatjaf
a773584f6f
tags and extras metadata in payment details dialog.
4 years ago
fiatjaf
85ec111ff0
return proper error codes on /lnurlscan
so the notification works.
4 years ago
fiatjaf
52619ecc0f
improve querystring handling on lnurl fallback scheme.
4 years ago
fiatjaf
11e04e4314
fix CSS bundle order issue.
a final fix for https://github.com/lnbits/lnbits/issues/99
4 years ago
fiatjaf
32d75f7a60
support the lnurl fallback scheme.
completing https://github.com/lnbits/lnbits/issues/63
4 years ago
fiatjaf
435f5405c6
minor prettier change.
4 years ago
fiatjaf
a46ca45de0
some readme and docs clarification.
4 years ago
fiatjaf
9cb58833ad
make httpx calls async when doing them from view functions.
this is important so lnbits can call itself without hanging forever.
and these functions are already async so it should have been this way since ever.
4 years ago
fiatjaf
c81e61e4fe
guards and safety timeouts around paymentChecker intervals.
4 years ago
fiatjaf
bdbb58b2b0
wrap memo columns in payments table.
4 years ago
fiatjaf
be7d36214a
use payments/sse on the core wallet UI.
still fallback to the invoice polling (now with a 5 seconds interval
because less than that is too annoying).
this fixes issues with /lnurlwallet invoices not getting paid in time,
so we update the UI automatically when they do get paid.
(see https://t.me/lnbits/7069 )
4 years ago
fiatjaf
f02ec67f35
add lntxbot invoices listener.
4 years ago
fiatjaf
d528d4e09e
fix: wallet layout.
4 years ago
fiatjaf
ec4b558638
fix: domain variable assignment in pay_lnurl.
4 years ago
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.
4 years ago
fiatjaf
3a56aaa3ad
Merge pull request #113 from lnbits/lnurl
4 years ago
fiatjaf
e1501e8ed6
fix bug with lnurl-withdraw dialog being skipped directly to the previous invoice shown.
4 years ago
fiatjaf
1529ebb689
lnurlpay comment.
4 years ago
fiatjaf
bcdc065cc0
mypy fixes.
4 years ago
fiatjaf
cf0bd7ece8
displaying lnurlpay success_actions.
4 years ago
Gabriel Comte
c6bd060d19
docs: fix typo in command
4 years ago
fiatjaf
8d135489ab
fix: invoice parsing JS bug from the lnurl implementation.
4 years ago
fiatjaf
69063190ab
also catch httpx.ConnectError whenever we do catch httpx.RequestError.
4 years ago
fiatjaf
bc2207ba27
actually paying and withdrawing with lnurl.
4 years ago
fiatjaf
3cd15c40fc
lnurl-pay and lnurl-withdraw UI.
4 years ago
fiatjaf
7a5159f293
send/create/scan buttons for clear LNURL support.
4 years ago
Arc
fa8713de17
move scan to outside of receive.
4 years ago
fiatjaf
b1f30390b0
retrieve preimage from wallet backends, save it and show on UI dialog.
closes https://github.com/lnbits/lnbits/issues/77
4 years ago
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
4 years ago
fiatjaf
b5a07c7ae7
add status() method to wallets to be used in initial check.
4 years ago
fiatjaf
d5d85d16e6
fix: auth headers variable name on opennode.py
4 years ago
fiatjaf
2894944b1e
pending=False on /sse payments.
4 years ago
fiatjaf
31820e041c
/sse returns payment as objects instead of arrays.
4 years ago
fiatjaf
1d00060419
harden sse connections to backends a little.
4 years ago
fiatjaf
7f41d73a84
SSE-based invoices stream for LNbitsWallet.
4 years ago
fiatjaf
f638a1088e
lnurlp: fix querystring handling in success_url.
4 years ago
fiatjaf
ea3418c21d
lnurlp: support success_text and success_url.
4 years ago
fiatjaf
f6bcff01f4
presort vendored paths list.
an attempt to fix https://github.com/lnbits/lnbits/issues/99 .
4 years ago
fiatjaf
33fa540744
adjust docs to match 91853
4 years ago
fiatjaf
6f72f1fe6d
fix typo: LND_MACAROON -> LND_REST_MACAROON
4 years ago
fiatjaf
76633fb71f
lndrest: check last 20 payments instead of first 20.
fixes https://github.com/lnbits/lnbits/issues/110
4 years ago
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.
4 years ago
HamishMacEwan
fc6e49b821
Change .env variable names to match lnbits.py
The required values are expected in LNBITS_INVOICE_KEY & LNBITS_ADMIN_KEY according to https://github.com/lnbits/lnbits/blob/master/lnbits/wallets/lnbits.py
4 years ago
fiatjaf
35f8e3334c
fix typo: LnbitsWallet -> LNbitsWallet.
4 years ago
fiatjaf
0b1f3c22e0
lndhub: fix "token" -> "refresh_token".
4 years ago
fiatjaf
24c8201920
add current git commit to summary.
4 years ago
fiatjaf
9a16dfa960
remove annoying warnings and unnecessary prints.
show a summary of some settings on startup when running __main__.py
4 years ago