fiatjaf
e408febf97
hypercorn -k trio
2020-10-04 23:09:11 -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
90c640b659
fix async so now it is a mess that works.
2020-10-04 12:05:01 -03:00
fiatjaf
28e6f40bea
async fixes on _invoice_listener.
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
74117ffc57
lnurlp webhooks.
2020-10-04 12:04:49 -03:00
fiatjaf
04222f1f01
basic invoice listeners.
2020-10-04 12:04:47 -03:00
fiatjaf
e2f6c20e3b
update docs so master is runnable.
2020-10-02 14:59:29 -03:00
fiatjaf
08b2ce5c05
update requirements.txt
2020-10-02 08:40:50 -03:00
fiatjaf
88b8826bfd
fix balance calculation vue glitch.
2020-09-29 20:04:02 -03:00
fiatjaf
211ac0391b
overengineered async fix for /lnurlwallet internal hanging.
2020-09-29 18:24:08 -03:00
fiatjaf
e0b8470d40
show unpaid invoices, balance calculated on server-side so isn't affected.
2020-09-29 15:43:11 -03:00
fiatjaf
2dfae9ecc1
adapt Procfile hypercorn call.
2020-09-28 21:11:34 -03:00
fiatjaf
49baa07141
fix proxyfix.
2020-09-28 00:21:53 -03:00
fiatjaf
39cd96594e
pass appropriate parameters to create_payment on lnurlwallet.
2020-09-24 13:09:02 -03:00
fiatjaf
cd8a447ba0
pytest quibbles and dev dependencies.
2020-09-17 22:41:30 -03:00
fiatjaf
ef0bdf8363
mypy quibbles.
2020-09-16 20:24:17 -03:00
fiatjaf
75047c5bc3
fix static extensions js url.
2020-09-16 20:21:42 -03:00
fiatjaf
2b38207100
mimic x_proto, x_host params from old ProxyFix.
2020-09-15 17:19:34 -03:00
fiatjaf
5513b34a66
change 1 to true on env vars because that is supported now.
2020-09-15 17:19:11 -03:00
fiatjaf
6928f431a7
poor man's flask-assets.
2020-09-15 15:54:05 -03:00
fiatjaf
3a0762ff82
proxy fix (x-forwarded-...).
2020-09-14 23:56:25 -03:00
fiatjaf
42c6620a07
quart run settings and hypercorn on docker/Procfile.
2020-09-14 23:28:14 -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
f452b9c00d
withdraw: replace location.hostname with location.host.
...
fixes https://github.com/lnbits/lnbits/issues/88
2020-09-14 15:46:25 -03:00
fiatjaf
1e2dd412c7
lnurlp: remove wrong /pay/ segments from docs.
2020-09-14 09:35:58 -03:00
fiatjaf
e6ad42dbe1
update prettier to 2.1.1
2020-09-14 09:14:51 -03:00
fiatjaf
1faf0b152c
remove annoying print().
2020-09-13 21:48:46 -03:00
fiatjaf and fiatjaf
f4fffc19aa
lndhub extension frontend.
2020-09-12 21:55:13 -03:00
fiatjaf and fiatjaf
6210305791
checking pending invoices and payments from lndhub interface.
2020-09-12 21:55:13 -03:00
fiatjaf and fiatjaf
ce038193cf
lndhub extension backend.
2020-09-12 21:55:13 -03:00
fiatjaf
5ac91ee2cf
db commits at the right places when sending payments.
...
fixing vulnerabilities introduced in https://github.com/lnbits/lnbits/pull/90
2020-09-11 21:25:44 -03:00
fiatjaf and fiatjaf
4855e2cd3d
make every request a database transaction.
2020-09-11 14:17:09 -03:00
fiatjaf and fiatjaf
487f082eb2
take extra care on check_internal()
2020-09-11 14:17:09 -03:00
fiatjaf
130beaf38a
fix undeclared ok error.
2020-09-06 23:39:46 -03:00
fiatjaf
ab6229806c
fix: column is called hash, not payment_hash.
2020-09-06 22:15:29 -03:00
fiatjaf and fiatjaf
ffa3c3f6a6
python -m lnbits
2020-09-04 21:33:30 -03:00
fiatjaf and fiatjaf
b8de30423f
remove walrus operator because python3.7
2020-09-04 21:33:30 -03:00
fiatjaf and fiatjaf
c965bca41d
migration tracking.
2020-09-04 21:33:30 -03:00
fiatjaf
8b7028d728
add VoidWallet and make it the default.
2020-09-03 21:43:32 -03:00
fiatjaf
dcd3f80974
fix: invoice.payee is None by default.
2020-09-03 08:53:17 -03:00
fiatjaf
753e9c5b15
make linting workflow reflect what is done locally (Makefile).
2020-09-02 23:16:23 -03:00
fiatjaf
dc3d96c6a8
fix many mypy complaints, specially on bolt11.py
2020-09-02 22:21:56 -03:00
fiatjaf
ce28db76c9
add a dialog with payment details for each payment.
...
for outgoing payments this needs a preimage to be good,
but we don't have it yet because we don't get it from
backends.
2020-09-02 19:19:19 -03:00
fiatjaf
197af922d0
use {"tag": ext} for extension-related payments.
2020-09-02 12:44:54 -03:00
fiatjaf
4447a48724
deleting expired invoices based on their actual expiry date.
...
also fixes a possible bug that could have caused pending outgoing
payments to be deleted and affecting the balance. probably never happened.
2020-09-02 11:10:48 -03:00
fiatjaf
d2650d6e2c
don't try to check payments that start with temp_ or internal_.
2020-09-02 11:10:48 -03:00
fiatjaf
b56877d470
make db.py context manager operate in a transaction.
2020-09-02 11:10:48 -03:00
fiatjaf
bf3c44b3c4
extra fields on apipayments + index payments by payment_hash
2020-09-02 11:10:48 -03:00
fiatjaf
b4a6b45645
only check pending payments on "check_pending".
2020-08-31 22:55:19 -03:00
fiatjaf
fadddc995a
get_wallet_payments with more fine-grained, explicit filters.
2020-08-31 22:16:19 -03:00
fiatjaf
d09e624eb6
fix: wallet.balance computed property self-reference.
2020-08-31 16:19:27 -03:00
fiatjaf
5d523519c3
bring back code mysteriously deleted in 79d5befe0c
...
fixes https://github.com/lnbits/lnbits/issues/73
2020-08-31 00:09:34 -03: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
660d56d400
run black on everything.
2020-08-30 23:19:43 -03:00
fiatjaf
2cecaa229b
bolt11.py now supports everything.
2020-08-30 17:40:28 -03:00
fiatjaf
ac20e06dc3
fix: correct db.cursor() usage on lnurlp.
2020-08-29 22:33:01 -03:00
fiatjaf
79d5befe0c
mypy on Makefile and apply prettier.
2020-08-29 14:10:26 -03:00
fiatjaf
3ce1e72e10
lnurlp lnurl explanation slightly different from lnurlw.
2020-08-29 14:06:07 -03:00
fiatjaf
1e4f39954e
fix: spark create_invoice error case.
2020-08-29 13:48:16 -03:00
fiatjaf
01b19add79
format: prettier lnurlp files.
2020-08-29 13:41:59 -03:00
fiatjaf
96b80fb3fc
lnurlp: store description as memo.
2020-08-29 13:11:19 -03:00
fiatjaf
3645e0ac38
fix: lnpay invoices with description_hash.
2020-08-29 13:04:11 -03:00
fiatjaf
0c7284be31
description_hash fix.
2020-08-29 12:23:17 -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
fiatjaf
c3ce18c8d9
allow inkey endpoints to be accessed with adminkeys.
2020-05-05 05:46:05 -03:00
fiatjaf
4730500ed7
apply prettier to everything.
2020-05-03 13:55:17 -03:00
fiatjaf
b89753abd5
400->200 on invoice check timeout.
2019-12-30 10:59:11 -03:00
fiatjaf
cedce73f07
order transaction chart by date.
2019-12-29 07:56:10 -03:00
fiatjaf
1812b4a803
fix hexlify bytes -> str.
2019-12-14 17:35:35 -03:00
fiatjaf
463ee21c9f
take JS out of HTML, fix transactions chart, add apipayments.time.
2019-12-14 17:26:26 -03:00
fiatjaf
14dfa9ecc6
big bundle of changes.
...
* reorganize templates even more (and a small layout break)
* rename wallets.hash and accounts.userhash to id
* refactor /wallets so it's idempotent for each param combination
* many small changes
2019-12-14 15:49:41 -03:00
fiatjaf
1cee6dad42
reorganize templates with jinja2.
2019-12-14 11:48:53 -03:00
fiatjaf
8d9ab6cc77
fix balances view.
2019-12-14 09:18:48 -03:00
fiatjaf
b4426ba021
hashes as hex.
2019-12-14 09:18:42 -03:00
fiatjaf
23ffa40f30
balances view and other minor edits.
2019-12-14 00:11:41 -03:00
fiatjaf
582aaa812b
payment logic safer and adapt db calls to new schema.
2019-12-13 22:59:35 -03:00
fiatjaf
754782b598
super naïve bolt11 decoder.
2019-12-13 21:57:22 -03:00
fiatjaf
7097d01f9e
move schema to sqlfile, create on init.
2019-12-13 20:34:19 -03:00
fiatjaf
978854fc72
move variables to environment.
2019-12-13 19:41:39 -03:00