Commit graph

121 commits

Author SHA1 Message Date
Vlad Stan
0ab913e502 chore: code format 2023-01-18 17:38:36 +02:00
Vlad Stan
2edb9da387 fix: name conflict 2023-01-18 17:38:36 +02:00
Vlad Stan
795d05c109 refactor: extract extensions.py 2023-01-18 17:38:36 +02:00
Vlad Stan
ece7a82b3d fix: make function async 2023-01-18 17:38:36 +02:00
Vlad Stan
a6e3b5e049 feat: use hash for unique extension id 2023-01-18 17:38:36 +02:00
Vlad Stan
8f8ebbeeaa refactor: class rename and code format 2023-01-18 17:38:36 +02:00
Vlad Stan
3fbac927e9 chore: clean-up 2023-01-18 17:38:36 +02:00
Vlad Stan
6c41ac841b feat: temporary fix for upgrades 2023-01-18 17:38:36 +02:00
Vlad Stan
66c908e600 chore: migrate after major changes on main 2023-01-18 17:38:36 +02:00
Vlad Stan
dc0c4564af fix: merge conflict 2022-12-16 12:27:26 +02:00
Vlad Stan
2eeef5c1ed
Merge branch 'main' into FinalAdminUI 2022-12-16 12:21:25 +02:00
callebtc
78f94483d0 fix: no stacktrace for validartion errors 2022-12-14 19:10:26 +01:00
callebtc
5b8c5d52da fix: no stack trace for http errors 2022-12-14 19:09:01 +01:00
callebtc
317c17c1b3 make format 2022-12-14 18:42:45 +01:00
callebtc
4a060baa75 feat: error responses work 2022-12-14 18:40:07 +01:00
callebtc
fa7bbb62e2 correct error codes in tests 2022-12-14 14:59:11 +01:00
callebtc
b5eb8b7ee8 add handler for RequestValidationError 2022-12-14 14:33:13 +01:00
callebtc
f47772d528 fix: fastapi exception handling and printing 2022-12-14 14:18:42 +01:00
Vlad Stan
60bb556f2c fix: log init exceptions 2022-12-09 10:31:29 +02:00
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
Aaron Dewes
fc1a87f617
Remove unused proxy_fix (#1007) 2022-10-24 11:50:52 +02: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 ⚡
3bf38884ed log successful connection to backend with logger.success() 2022-10-07 08:30:07 +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