Pavol Rusnak
62b0e3fe89
set User-Agent when accessing external resources ( #2100 )
...
* set User-Agent when accessing external resources
* refactor User-Agent into settings.user_agent
2023-11-30 12:54:07 +00:00
dni ⚡
4e6f229db2
[CHORE] string formatting default length 88 ( #1887 )
...
* [CHORE] string formatting default length 88
uses blacks default off 88 and enabled autostringformatting
* formatting
* nitpicks jackstar
fix
2023-08-24 10:26:09 +01:00
dni ⚡
355806608b
[CHORE] E722 bare exception fix ( #1871 )
...
* [CHORE] E722 bare exception fix
remove all bare exceptions from codebase and change it in `.flake8`
2023-08-16 12:17:54 +02:00
callebtc
2d4c9f349b
Wallets: Catch errors during cleanup ( #1829 )
...
* jetz aba
* catch RuntimeError
2023-07-21 09:50:50 +02:00
jackstar12
e6499104c0
Wallets refactor ( #1729 )
...
* feat: cleanup function for wallet
* update eclair implementation
* update lnd implementation
* update lnbits implementation
* update lnpay implementation
* update lnbits implementation
* update opennode implementation
* update spark implementation
* use base_url for clients
* fix lnpay
* fix opennode
* fix lntips
* test real invoice creation
* add small delay to test
* test paid invoice stream
* fix lnbits
* fix lndrest
* fix spark
fix spark
* check node balance in test
* increase balance check delay
* check balance in pay test aswell
* make sure get_payment_status is called
* fix lndrest
* revert unnecessary changes
2023-06-19 12:12:00 +02:00
dni ⚡
c48e2329c5
TEST: fix tests for real wallets ( #1761 )
...
* fix tests for real wallets
* change realinvoice provider to lnd-1
* use lnd-3 for tests
* fix eclair tests
* use bullseye in dockerimage
2023-06-15 12:36:28 +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
a49a654137
fix flake8 F401+F403 (module imported but unused + unable to detect undefined names)
2023-01-30 11:46:45 +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
Pavol Rusnak
20e6ca019e
replace lnbits-legend with lnbits in github links ( #1366 )
2023-01-14 12:26:17 +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
Tiago Vasconcelos
fe5e1241bf
fix some of Vlad's review comments
2022-12-02 14:52:31 +00:00
dni ⚡
ad81bb322a
change settings in wallets
2022-10-05 13:05:11 +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
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
f1ec7e33f0
Mega-merge 2: Invoice/refactor description hash (WIP) ( #814 )
...
* description hashing in backend
2022-08-01 16:20:25 +02:00
ben
817472c036
Merge branch 'main' into fix/mypy
2022-07-27 19:57:23 +01:00
calle
0c5cb8cb9e
Wallets: increase timeouts ( #787 )
...
* increase pay timeouts to infinite
2022-07-27 15:29:44 +02:00
dni
4dfa0873e5
fix isort check
2022-07-25 12:03:06 +02:00
dni
a80fd5de7a
black formating
2022-07-25 12:03:06 +02:00
dni
7f2c25336c
ignore eclair websockets type
2022-07-25 12:03:06 +02:00
dni
25d19244be
mypy fixes, api, eclair
2022-07-25 12:03:06 +02:00
dni
56560fca02
mypy fixes for generic.py, decurators.py, eclair.py
2022-07-25 12:03:06 +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
callebtc
f8400512f7
black formating
2022-06-01 14:53:05 +02:00
Tiago vasconcelos
1695d0ce0e
send 0 fees when not available
2022-05-05 15:47:25 +01:00
Tiago vasconcelos
96df280d49
adding fees
2022-05-05 15:44:34 +01:00
Tiago vasconcelos
2cd6626ca1
get status
2022-04-29 11:39:27 +01:00
Tiago vasconcelos
756b121105
print errors for tracking/debugging
2021-06-25 10:15:50 +01:00
Tiago vasconcelos
4585d97324
small fix on paid_invoices_stream
2021-06-23 18:50:01 +01:00
Tiago vasconcelos
021cf64c1e
Added eclair backend
2021-06-23 16:13:48 +01:00