Commit Graph

100 Commits

Author SHA1 Message Date
Vlad Stan
d15782521d refactor: include admin extension into core 2022-12-08 15:41:52 +02:00
dni ⚡
89933c2d30 test should pass now, WALLET is initialised after the settings are loaded from db. 2022-12-07 13:38:33 +01:00
dni ⚡
d2cd972663 refactor from settings.py into admin crud, but broke frontend
formatting
2022-12-06 11:02:01 +01:00
dni ⚡
b4126e664b nitpicks from vlad 2022-12-05 12:28:26 +01:00
dni ⚡
9e60b5374c fake wallet queue issue 2022-12-05 12:18:59 +01:00
dni ⚡
d862598179 readd global baseurl needed for lnurlp 2022-11-24 11:44:55 +01:00
dni ⚡
1b675f295b add get settings endpoint with only values you can also save 2022-10-21 11:13:40 +02:00
dni ⚡
c9ead25d50 bugfixes and fix topup wallet 2022-10-12 13:08:59 +02:00
dni ⚡
91a5f7d214 add callback for saas app 2022-10-10 23:27:46 +02:00
dni ⚡
83de83993c fix signal handler 2022-10-06 09:38:17 +02:00
dni ⚡
282ef34d11 reintroduce signalhandler and ad encrypted macaroon 2022-10-05 13:12:16 +02:00
dni ⚡
c845502f28 fix WALLET initialisation 2022-10-05 13:05:09 +02:00
dni ⚡
ada5cd4330 remove unused function 2022-10-05 13:04:38 +02:00
dni ⚡
92e52cd883 overall fixes 2022-10-05 13:04:38 +02:00
dni ⚡
9e2f1f6545 big app rework, startup ordering, remove admin extension stuff 2022-10-05 13:03:13 +02:00
dni ⚡
a78ebbacd7 use logger in app.py 2022-10-05 13:01:59 +02:00
dni ⚡
cadb6b2161 fix merge error 2022-10-05 13:01:59 +02:00
dni ⚡
6c2a9b2258 format black 2022-10-05 13:01:59 +02:00
dni ⚡
e4c310d197 format 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
c32e0cbecb fix main merge missing settings 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
1adfb674cc cleanup and info to user on startup 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
08e54de99b fix sqlite and show user account 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
313574df19 make removeEmptyString fn as helper fn 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
582cc52ac6 make it work from g() 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
32a6a6ae2f get admin settings at startup 2022-10-05 13:01:59 +02:00
calle
5a12f4f237
Improved SSE listeners (#865)
* logging listeners

* comments

* generate privkey upon init

* listener queue

* remove duplicate check

* make format

* reuse channel

* error handling in sse listener

* uuid for listeners

* register named invoices

* uuid for listeners and listener list

* fix poetry lock

* setuptools

* requirements asyncio timeout

* setuptool;s

* make format

* remove async-timeout

* async_timeout readd

* try lower setuptools version

* try lower lower setuptools version

* back to current version + fix, maybe

* fix worflows to use poetry 1.2.1

* remove uneeded setuptools from build-system

* fix up formatting workflow

* debug to trace

* more traces

* debug logs to trace

Co-authored-by: dni  <office@dnilabs.com>
2022-10-04 09:51:47 +02:00
calle
2ee10e28c5
Backend: Unstuck outgoing payments (#857)
* first attempts

* lndrest works

* fix details

* optional fee update

* use base64.urlsafe_b64encode

* return paymentstatus

* CLN: return pending for pending invoices

* grpc wip

* lndgrpc works

* cln: return pending for pending invoices really this time

* retry wallet out of exception

* wip eclair

* take all routines into try except

* cliche: return error

* rename payment.check_pending() to payment.check_status()

* rename payment.check_pending() to payment.check_status()

* eclair: works

* eclair: better error check

* opennode: works

* check payment.checking_id istead of payment.ok

* payment.ok check as well

* cln: works?

* cln: works

* lntxbot: works

* lnbits/wallets/lnpay.py

* cln: error handling

* make format

* lndhub full detail update

* spark: wip

* error to False

* wallets: return clean PaymentResponse

* opennode: strict error

* cliche: works

* lnbits: works

* cln: dont throw error

* preimage not error

* fix cln

* do not add duplicate payments

* revert cln

* extra safety for cln

* undo crud changes until tests work

* tasks: better logging and 0.5s sleep for regular status check

* 0.1 s

* check if wallet exists

* lnbits unhashed description

* remove sleep

* revert app.py

* cleanup

* add check

* clean error

* readd app.py

* fix eclaid
2022-08-30 13:28:58 +02:00
calle
befe96257d
Fix/header_check_fix_2 (#880)
* dont assume field

* check better
2022-08-14 23:17:53 +02:00
calle
9bc99f796b
Fix/header_lookup_none (#879)
* dont assume field

* fix header lookup
2022-08-14 22:59:02 +02:00
calle
c85be8dd22
dont assume field (#875) 2022-08-14 19:40:46 +02:00
dni ⚡
034813a1ab
stuck in retrying backend loop, fix issue #652 (#862)
* maybe solution to issue #652

* formatting, when precommit merge?

* Update lnbits/app.py

* Update lnbits/app.py

Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 14:46:47 +02:00
ben
817472c036 Merge branch 'main' into fix/mypy 2022-07-27 19:57:23 +01:00
ben
58659d2f47 Added meta for api /docs 2022-07-27 18:20:36 +01:00
Tiago Vasconcelos
41dc1b0512
Fix/hotfix tpos 2 (#783)
* fix older tpos without tips

* bad math requesting invoice

* make format
2022-07-27 16:45:17 +02:00
dni
895770e26a remove commented out and unused code in app object, it is now used in lnbits/__main__.py directly, fixes mypy error 2022-07-25 12:00:22 +02:00
ben
244d6f23bf Merge branch 'main' into matthewcroughan/nixify 2022-07-23 20:09:24 +01:00
calle
6a3a72b944
Uvicorn loguru format (#741)
* use loguru formatting for uvicorn logs

* remove depth from logging interceptor

* format for uvicorn

* black

* isort

* black again

* python3-dev

* python3-dev

* leaner pipeline

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-15 19:54:12 +02:00
matthewcroughan
36e92765d3 treewide: use StaticFiles() rather than rel path
This commit is not exhaustive, and it is a trend in this codebase to not
use StaticFiles() and instead use relative paths. This means the code
cannot run anywhere other than the source code directory, as it will not
find the files it is looking for
2022-07-08 11:06:26 +01:00
calle
262bd32f44
debug format more expressive (#715) 2022-07-07 16:24:36 +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
e7dd3ec64f
reactivate actions (#682)
* reactivate other actions

* black

* codeql 2

* black only

* remove mock event loop

* do not follow grpc
2022-06-27 01:11:35 +02:00
Tiago vasconcelos
3e8d2a5ba1 fix response 2022-06-15 16:49:39 +01:00
Tiago vasconcelos
1ebba9f846 send json response basic error 2022-06-15 16:37:10 +01:00
Tiago vasconcelos
626a93a46c add json response for basic error 2022-06-15 16:20:20 +01:00
Tiago vasconcelos
c4f9206c10 change status code 2022-06-13 21:43:17 +01:00
Tiago vasconcelos
5ceb8639f9 clean up and comment 2022-06-13 16:18:16 +01:00
Tiago vasconcelos
9279129f07 check if request is from browser 2022-06-13 15:18:14 +01:00
callebtc
36952981c2 remove success var 2022-02-21 09:25:45 +01:00
callebtc
fbafe2b8f1 Retry backend connection on startup 2022-02-21 09:17:36 +01:00
benarc
228717195b back 2022-01-30 19:43:30 +00:00