Commit Graph

458 Commits

Author SHA1 Message Date
dni ⚡
a6bdd8c575 format 2022-10-25 09:20:16 +02:00
ben
3129692ab1 reverted other try 2022-10-25 09:20:16 +02:00
ben
429217f5a4 Had to add a couple of tries 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
a07fbf0187 allow user settings without restart 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
2a63fb1914 allow html to be passed to description 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
48d6a89e5b remove core admin.html 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
b4885de9e2 remove core admin html (renamed for now) 2022-10-25 09:20:16 +02:00
benarc
a3b1d9528c old admin setup UI 2022-10-25 09:20:16 +02:00
dni ⚡
09cf654427
Proper Error Handling for qrcode-stream components (#1076)
* proper errorhandling for camera

* fix javascript for calle
2022-10-24 12:32:20 +02:00
Anton Kovalenko
193d037ad6
Allow more than 2-nd level domain in incoming ln-addresses (#914) 2022-10-24 12:23:11 +02:00
calle
d1302e4868
show progress (#987) 2022-10-11 08:52:39 +02:00
Arc
00667badfd
Merge pull request #1022 from tehelsper/main
Add MYNODE Image
2022-10-06 17:50:31 +01: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
Taylor Helsper
148789a86f
Fix formatting 2022-09-30 10:19:17 -05:00
Taylor Helsper
04cfdc2bf3
Update index.html 2022-09-29 23:06:45 -05:00
dni ⚡
325139066c
fix service-worker.js issue #1009 (#1017)
* service-worker.js fix for issue #1009

fixup

* remove weird comment
2022-09-29 20:40:58 +02:00
Gene Takavic
e75610a04f
API auditor (#1002)
* just quick auditor

* fix for none balance

* handle node down case

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-09-23 16:33:51 +03:00
dni ⚡
a98c5f9a85
fixes issue #977 (#999)
* fixes issue #977

* fix prettier formatting, when pre-commit
2022-09-23 11:00:45 +03:00
calle
b0bedd53df
Fix lndgrpc preimage (#998) 2022-09-22 11:15:28 +03:00
calle
e7a6e86e7a
Fix/duplicate payments (#973)
* check if wallet exists

* check wallet existence in key check

* fix duplicate removal
2022-09-18 16:27:03 +03:00
calle
232d50baaa
Fix: tasks.py reuse db connection for invoice deletion (#971)
* check if wallet exists

* check wallet existence in key check

* reuse db connection for payment deletion
2022-09-15 14:48:59 +03:00
Arc
2782a92aaa
Merge pull request #957 from iWarpBTC/fix/withdrawQR
fix for uppercase QR
2022-09-13 15:49:27 +01:00
Arc
9e652d98ea
Merge pull request #958 from AaronDewes/patch-1
Change message about login functionality
2022-09-13 15:48:37 +01:00
calle
d0ca0b18da
Fix/db reuse connection mark pending (#964)
* check if wallet exists

* check wallet existence in key check

* reuse connection for stataus update

* make format
2022-09-12 20:57:23 +03:00
calle
1660b9dcf1
Revert "Revert "API key check: assert that wallet exists (#961)" (#962)" (#963)
This reverts commit 57fffa0c7f.
2022-09-12 18:49:57 +03:00
calle
57fffa0c7f
Revert "API key check: assert that wallet exists (#961)" (#962)
This reverts commit 0930fca7ec.
2022-09-12 18:41:27 +03:00
calle
0930fca7ec
API key check: assert that wallet exists (#961)
* check if wallet exists

* check wallet existence in key check
2022-09-12 18:39:53 +03:00
dni ⚡
d6e3eb5837
Fix donate link on start page 2022-09-12 14:38:37 +02:00
Aaron Dewes
b8531f9e0e
Change message about login functionality
According to the README, Lnbits is already at 0.9. Claiming a feature will be added in 0.2 doesn't make sense.
2022-09-12 12:32:03 +02:00
Gene Takavic
8c75ea600f
fix for uppercase QR 2022-09-12 10:17:45 +02:00
calle
4662a79c3b
little more logging (#953) 2022-09-09 16:46:27 +03:00
calle
d757154125
print time of expiration (#952) 2022-09-09 16:27:37 +03: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
dni ⚡
5fecb02b8d
fix typo in view api.py (#933) 2022-08-29 17:32:36 +02:00
Tiago Vasconcelos
551c75c2cf
set focus on amount (#916) 2022-08-21 23:07:18 +02:00
calle
24de8f6611
isort api.py (#898) 2022-08-17 14:27:52 +02:00
calle
790f0efda7
Chore/unhashed description expressive error (#894)
* dont assume field

* expressive error for desciprion_hash and unhashed_description in format that isnt hex
2022-08-17 00:59:11 +02:00
dni ⚡
3dc00f67db
add pending column to CSV export on wallet page, issue #887 (#889)
* add pending, isPaid columns to CSV export on wallet page, issue #887

* prettier formatting

* remove isPaid from csv export

* added comment

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-16 17:01:32 +02:00
Tiago Vasconcelos
197ff7d054
Core: reserve fee as an .env variable (#631)
* reserve fee as an .env variable

* fixed bad import

* Update .env.example

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/core/services.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/core/services.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/settings.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* variable consistent names

* fix services.py variable names

* percent default fix

* Update lnbits/settings.py

int to float

* Update lnbits/settings.py

int to float

* Update .env.example

int to float

* make format

* fixed failing bleskomat test, expecting 2000 msats fee

* Update tests/extensions/bleskomat/test_lnurl_api.py

revert to 2 sat

* Update .env.example

* Update lnbits/settings.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 20:19:08 +02:00
calle
28661903b6
return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing (#869)
* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing

* fix regtest (#867)

Co-authored-by: dni <dni.khr@gmail.com>

* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing

Co-authored-by: dni  <office@dnilabs.com>
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-13 14:41:44 +02:00
calle
e5d8c500d2
Wallets/unhashed_description (#870)
* new argument: unhashed_description

* accept in api

* set unhashed_description for memo case

* bolt11.py: dont be like CLN, accept the hash

* send hash to lnd in b64

* fix cln

* skip descr_hash for cln

* skip

* format
2022-08-13 14:29:04 +02:00
calle
05edd908f0
fix lnurlw balance_check (#854) 2022-08-09 12:48:10 +02:00
calle
4fc0a25d41
Mega-merge 4: Reenable LndWallet gRPC and use TrackPaymentV2 (#745)
* readd lndgrpc

* debug logging

* Use TrackPaymentV2

* /v2/router/track

* lnd_router_grpc

* flag for blocking check

* error handling

* fix name

* regtest lndgrpc

* new test pipeline

* fix env

* check for description hash

* remove unnecessary asserts for clarity

* assume that description_hash is a hash already

* no lock

* description hashing in backend

* restore bolt11.py

* /api/v1/payments with hex of description

* comment

* refactor wallets

* forgot eclair

* fix lnpay

* bytes directly

* make format

* mypy check

* make format

* remove old code

* WIP status check

* LND GRPC docs

* restore cln to main

* fix regtest

* import

* remove unused import

* format

* do not expect ok

* check ok

* delete comments
2022-08-09 11:49:39 +02:00
calle
b3c866fd1d
Code health: Small linting fix (#813)
* small linting fix

* je lint therefore je suis
2022-08-02 16:17:47 +02:00
calle
f1ec7e33f0
Mega-merge 2: Invoice/refactor description hash (WIP) (#814)
* description hashing in backend
2022-08-01 16:20:25 +02:00
Tiago Vasconcelos
925a7735da
change z-index for wallet tab (#818) 2022-08-01 12:56:56 +02:00
ben
618717b529 Merge branch 'main' into qrcodemaker 2022-07-28 12:40:25 +01:00
ben
4199f1bf98 Make format 2022-07-28 11:02:49 +01:00
calle
730add5116
Core/tag check get (#797)
* safer tag checking

* annotate
2022-07-28 11:53:40 +02:00
ben
4c8641fe00 Merge remote-tracking branch 'origin/main' into qrcodemaker 2022-07-28 10:48:12 +01:00