dni ⚡
1f6a961840
fix cln mypy
2023-04-04 07:35:20 +02:00
callebtc
a8103ba091
remove unnecessary checking_id from fakewallet
2023-04-04 07:35:20 +02:00
callebtc
234b508368
shorten and ignore cln.py
2023-04-04 07:35:19 +02:00
dni ⚡
435743a265
add **kwargs to create_invoice functions
2023-04-04 07:34:51 +02:00
dni ⚡
abfee29676
uncomment webhook_listerner and add TODO
2023-04-04 07:34:50 +02:00
Pavol Rusnak
9c8a79eb9b
fix pyright lnbits/wallets
...
Co-authored-by: dni ⚡ <office@dnilabs.com>
2023-04-04 07:34:50 +02:00
Pavol Rusnak
689c443d72
increase readability by using f-strings ( #1597 )
...
* increase readability by using f-strings
* readd merge conflict stuff
---------
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-04-03 15:34:17 +02:00
Ben Arc
cbde5744aa
RIP Lntxbot, thank you for all your help building LN, you will be missed :(
2023-02-23 11:41:44 +00:00
Pavol Rusnak
24fbb9ef5d
fix flake8 F811 (redefinition of unused)
2023-01-30 11:46:45 +00:00
Pavol Rusnak
a49a654137
fix flake8 F401+F403 (module imported but unused + unable to detect undefined names)
2023-01-30 11:46:45 +00:00
Pavol Rusnak
86e8a3a315
fix flake8 E711 (comparison-to-none)
2023-01-30 11:46:44 +00:00
Pavol Rusnak
f6bd8684d3
fix flake8 E712 (comparison-to-bool)
2023-01-30 11:46:44 +00:00
Pavol Rusnak
a0cc55c5a1
fix pylint C0209 (consider-using-f-string)
2023-01-30 11:46:43 +00:00
Pavol Rusnak
35396d7e63
fix pylint R0205 (useless-object-inheritance)
2023-01-30 11:46:43 +00:00
Pavol Rusnak
d29fcca6aa
fix pylint W0612 (unused-variable)
2023-01-30 11:46:43 +00:00
Pavol Rusnak
15d7fbeace
run autoflake
...
```
autoflake -i --remove-unused-variables $(find . -name "*.py")
```
2023-01-30 11:46:43 +00:00
calle
f0d58a8365
Wallets: add custom invoice expiry ( #1396 )
...
* expiry for fakewallet
* expiry for lnd
* lnbits backend
* fix: eclair descriptionHash fixed and expiry added
* cln and sparko
* test expiry
* Eclair from AdminUI and bugfix for nonexistent payments
* add to settings and .env and remove lntxbot
* remove duplicate and format
* add invoice expiry
* add min max and step
* UI works now
* test should fail, sanity check, will revert
* revert, ready for merge
Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
2023-01-26 11:08:40 +01:00
calle
9d3290cd9a
fix: lntips payment lookup error handling ( #1374 )
2023-01-18 12:02:32 +01:00
Pavol Rusnak
20e6ca019e
replace lnbits-legend with lnbits in github links ( #1366 )
2023-01-14 12:26:17 +01:00
callebtc
d8a8614fb9
make format from #967
2023-01-06 15:43:35 +01:00
calle
e357dfe37a
Merge pull request #967 from mrbitcoiner/fix_sparko_get_payment_status
...
Fixing spark string subtraction
2023-01-06 15:42:43 +01:00
Pavol Rusnak
3d0c66f0f6
remove unnecessary argument encoding from bytes.decode() and str.encode()
...
the encoding parameter defaults to utf-8, so it's not needed
2023-01-03 22:38:28 +01:00
Pavol Rusnak
a377381942
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify
2022-12-29 16:46:35 +01:00
ben
940615cb0b
Merge branch 'main' into FinalAdminUI
2022-12-16 22:45:54 +00:00
callebtc
5d4e1dd9bb
fix: rename variable
2022-12-16 17:34:05 +01:00
callebtc
ac87c49603
fix: disable compression
2022-12-16 17:18:02 +01:00
dni ⚡
9e60b5374c
fake wallet queue issue
2022-12-05 12:18:59 +01:00
Tiago Vasconcelos
fe5e1241bf
fix some of Vlad's review comments
2022-12-02 14:52:31 +00:00
dni ⚡
e3e62fc073
formatting
2022-11-30 23:52:13 +01:00
dni ⚡
e740ad3cf8
fix lnbitswallet issue, add ad_space_title, change lntips funding source
2022-11-30 16:53:46 +01:00
dni ⚡
620fd25696
bugfixes and fix topup wallet
2022-10-25 09:24:53 +02:00
dni ⚡
af762bb2ff
fix fake wallet
2022-10-25 09:24:14 +02:00
dni ⚡
807317df64
change settings in wallets
2022-10-25 09:24:14 +02:00
dni ⚡
f9de542361
use new settings and remove unused amdin extension stuff
2022-10-25 09:23:30 +02:00
calle
3bf3c91007
Add backend: ln.tips (LightningTipBot) wallet ( #921 )
...
* add ln.tips
* add wallet
* revert lnbits
* make format
* .env.example
* listener fix
* reconnect fixed
* make format
* make format
2022-10-10 16:12:06 +02:00
Arc
453f57b401
Merge pull request #1027 from lnbits/warning-voidwallet
...
add warning for voidwallet for better coloring in logs
2022-10-06 09:38:22 +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
dni ⚡
41668d6f32
add warning for voidwallet for better coloring in logs
2022-10-01 11:33:58 +02:00
calle
b0bedd53df
Fix lndgrpc preimage ( #998 )
2022-09-22 11:15:28 +03:00
mrbitcoiner
03beeac049
Fixing string subtraction because sparko returns the msat amounts with suffix 'msat'
2022-09-14 12:59:17 +00: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
0f760bf39e
Lnurlp: use unhashed_description
instead of description_hash
( #878 )
...
* dont assume field
* pass unhashed_description instead of description_hash for LNURL stuff
* more
2022-08-14 21:59:36 +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
calle
b83fb1d5d8
VoidWallet: return PaymentStatus(None) ( #845 )
2022-08-04 18:40:46 +02:00
calle
7fc1361475
cln invoice only int ( #844 )
2022-08-04 17:40:04 +02:00
calle
d841690460
try except for check payment status ( #820 )
2022-08-01 16:51:19 +02:00
calle
9c19b61e4a
Mega-merge 3: CLN update client lib with descriptionhash support (WIP) ( #792 )
...
* CoreLightningWallet
2022-08-01 16:41:50 +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
ben
457829de0c
Make format
2022-08-01 10:22:51 +01:00