Commit Graph
25 Commits
Author SHA1 Message Date
fiatjaf 21598f862d internal invoices resolved internally. 2019-12-16 18:24:06 +00:00
fiatjaf ce94fc8984 fix schema so payments can be sent between lnbits wallets. 2019-12-16 16:23:06 +00:00
fiatjaf 7616b4ec89 check pending payments and invoices on startup. 2019-12-15 20:33:25 +00:00
fiatjaf ad1c561862 fix /wallet for usr&nme case. 2019-12-15 18:15:13 +00:00
fiatjaf 76403793c0 check errors and adapt sql for older sqlite versions. 2019-12-15 18:15:00 +00:00
Eneko Illarramendi 0ddf6f76c9 chore: use lnurl.LnurlWithdrawResponse instead of a magic .handle() 2019-12-15 09:39:59 +01:00
Eneko Illarramendi da6b67a1ad fix: redirect to homepage when no more user_wallets are found 2019-12-15 09:18:06 +01: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
Eneko Illarramendi 80c43701b3 refactor: clean lnurlwallet view 2019-12-14 12:24:21 +01:00
Eneko Illarramendi 21a6958458 fix: minor issues 2019-12-14 11:08:54 +01:00
Eneko Illarramendi 5849ffc678 refactor: abstract wallets 2019-12-14 10:13:27 +01: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 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
Eneko Illarramendi e5dc309eb1 refactor: clean database calls in api_checkinvoice view 2019-12-13 23:22:49 +01:00
Eneko Illarramendi 3f7c7e7807 chore: clean imports 2019-12-13 23:02:56 +01:00
Eneko Illarramendi d875bb84bd refactor: clean database calls in api_transactions view
And minor fixes.
2019-12-13 23:02:56 +01:00
Eneko Illarramendi badc60f44e chore: this looks better 2019-12-13 23:02:56 +01:00
Eneko Illarramendi dfd00cfe05 refactor: clean database calls in /v1/invoices view
And return fails first to simplify if..else and make the
code more readable.
2019-12-13 23:02:56 +01:00
Eneko Illarramendi 52f31da4f8 refactor: clean database calls in wallet view 2019-12-13 18:41:22 +01:00
Eneko Illarramendi 69a979eb8f refactor: ad a Database class and clean deletewallet view 2019-12-13 18:14:25 +01:00
Eneko Illarramendi 7c6c7a2bf6 refactor: move encrypt() function to helpers 2019-12-13 17:59:40 +01:00
Eneko Illarramendi 3d3632a06f refactor: add some dev files and black original code
Original server code has been moved to __init__ file, so we can
work on `lnbits` as a package.
2019-12-13 17:56:19 +01:00