Vlad Stan
c370bd18c6
refactor: remove redundant # type: ignore
2023-01-10 09:45:12 +02:00
calle
7a406786f6
Merge pull request #1246 from prusnak/drop-binascii
...
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify
2023-01-03 10:52:28 +01:00
Pavol Rusnak
a377381942
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify
2022-12-29 16:46:35 +01:00
callebtc
cd11f92ed9
make format
2022-12-27 15:00:41 +01:00
callebtc
ead5ae0d82
refactor: remove unused imports
2022-12-27 14:50:42 +01:00
Vlad Stan
1d509fb9d2
fix: typo Setings
-> Settings
2022-12-19 11:07:24 +02:00
Vlad Stan
1751831e57
fix: create default wallet for auto created super_user
2022-12-16 12:09:13 +02:00
Vlad Stan
d596992993
feat: .env
super_user
overwrites DB super_user
2022-12-16 11:22:32 +02:00
Vlad Stan
4ee68628cc
fix: use super_admin
from .env
if present
2022-12-16 10:29:43 +02:00
dni ⚡
04f0f5b83b
improve wording
2022-12-12 12:27:52 +01:00
Vlad Stan
7e2b1e65a0
fix: super-user is a special read-only value that is logged to the console
2022-12-12 10:12:35 +02:00
Vlad Stan
bed2eff7fb
fix: send_admin_user_to_saas
is not a settings
method
2022-12-12 09:45:08 +02:00
Vlad Stan
e28dea97d8
fix: update the in-memory settings object when the DB is updated
2022-12-09 14:53:51 +02:00
Vlad Stan
99e7bf5cd0
chore: code format
2022-12-09 14:09:16 +02:00
Vlad Stan
4cd2fe7ee1
Merge branch 'main' into FinalAdminUI
2022-12-09 14:06:47 +02:00
Vlad Stan
d15782521d
refactor: include admin extension into core
2022-12-08 15:41:52 +02:00
ben
8ca390e0b0
format
2022-12-01 18:41:58 +00:00
benarc
a220acb583
Removed id, using param instead
2022-12-01 14:41:57 +00:00
ben
31d9f2e2ee
Removed returns and reverted socket check so multiple clients can join
2022-11-29 11:09:54 +00:00
ben
bb84f6b0e8
Black
2022-11-28 13:24:10 +00:00
ben
aefd1fad69
isort
2022-11-28 13:13:45 +00:00
ben
746e119046
added vlads suggestion
2022-11-28 13:04:35 +00:00
ben
c2a737ab84
Black
2022-11-24 00:34:46 +00:00
ben
f876f0659f
Moved into correct files, and added payment example
2022-11-24 00:21:39 +00:00
dni ⚡
c845502f28
fix WALLET initialisation
2022-10-05 13:05:09 +02:00
dni ⚡
1ffc8c3498
use new settings and remove unused amdin extension stuff
2022-10-05 13:04:36 +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
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
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
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
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
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
dni
00dba54ac8
remove FIXME add couple of ignores
2022-07-26 12:21:21 +02:00
dni
df00a018f0
added FIXME tags and fix WalletTypeInfo
2022-07-25 12:05:16 +02:00
dni
704b572349
fix PaymentKwargs class for mypy
2022-07-25 12:03:06 +02:00
Tiago Vasconcelos
ed2c5cc586
Fix/lnurl auth ( #757 )
...
* remove g() and add wallet
* wallet type
* add wallet object
* send wallet as param
* make lnurlauth work
* remove g() and add wallet
* wallet type
* add wallet object
* send wallet as param
* make lnurlauth work
* black'ed
* blacked
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-07-19 11:35:28 +02:00
calle
f4580955b9
loguru warnings ( #751 )
2022-07-17 22:25:37 +02:00
calle
6646fce549
Core: add internal flag for invoice creation to use FakeWallet ( #646 )
...
* add internal flag for invoice creation to use FakeWallet
2022-07-17 14:34:25 +02:00
calle
f4e7d62ca3
make format
everything (#743 )
2022-07-16 14:23:03 +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
Arc
b4ad0e101d
Revert "Check invoice status outgoing"
2022-05-20 14:35:00 +01:00
callebtc
f08fbc2487
core: check_invoice_status for outgoing payments
2022-05-10 21:48:24 +02:00
calle
1209526147
remove get_payment_status ( #562 )
...
* remove get_payment_status
* remove comments
2022-03-18 18:51:28 +01:00
calle
0f97f8f18b
Fee reserve for lightning backends ( #557 )
...
* preparing fees
* fee_limit_msat
* await resp result
* clightning
* fix tests
* fix test
* add fee to test
* mypy
* invoice_status
* checking id fix
* fee reserve error message
* only for external payments
2022-03-16 07:20:15 +01:00
benarc
228717195b
back
2022-01-30 19:43:30 +00:00
mrbitcoiner
cdeccec01b
2% reserve only for external payments
2021-12-29 11:55:52 -03:00
benarc
907714838b
Added check to explain fee reserve
2021-12-02 21:22:30 +00:00
Arc
b4ad8cb5b2
Merge pull request #443 from lnbits/fastapi_fix_lndrestwallet_fee_limit
...
(FastAPI) LNDRest fee limit
2021-11-30 09:04:01 +00:00
callebtc
12c2a04b2a
LNDRest fee limit
2021-11-29 18:10:11 +01:00