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
dni ⚡
ad81bb322a
change settings in wallets
2022-10-05 13:05:11 +02:00
calle
b0bedd53df
Fix lndgrpc preimage ( #998 )
2022-09-22 11:15:28 +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
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
f1ec7e33f0
Mega-merge 2: Invoice/refactor description hash (WIP) ( #814 )
...
* description hashing in backend
2022-08-01 16:20: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
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
calle
0764f4fdf1
Support for encrypted macaroons ( #521 )
...
* encrypted macaroons
* fix GRPC env entry
* example config entry
* add pycryptodomex to requirements
* documentation
* Added pycryptodomex to pip file
Co-authored-by: Ben Arc <ben@arc.wales>
2022-02-14 17:54:05 +01:00
Stefan Stammberger
8ea2d20389
fix: wallets not loading when protobuf is missing
2021-11-09 18:15:07 +01:00
Stefan Stammberger
768aa05b11
fix: switch from purerpc to grpcio for LND Wallet
...
purerpc is unmaintained and had some old dependencies.
2021-11-07 17:24:22 +01:00
benarc
1d3bb016a2
I want them to turn black
2021-10-17 18:33:29 +01:00
Tiago vasconcelos
a32e43b2bb
fix having LND_GRPC_MACAROON as HEXSTRING issue #268
2021-08-06 12:37:30 -03:00
fiatjaf
d4d069fc77
make all methods from all wallets async.
2021-03-24 01:01:09 -03:00
fiatjaf
42bd5ea989
remove exception to black line-length and reformat.
2021-03-24 00:40:32 -03:00
fiatjaf
b1f30390b0
retrieve preimage from wallet backends, save it and show on UI dialog.
...
closes https://github.com/lnbits/lnbits/issues/77
2020-10-12 23:19:16 -03:00
fiatjaf
b5a07c7ae7
add status() method to wallets to be used in initial check.
2020-10-12 22:30:19 -03:00
fiatjaf
1d00060419
harden sse connections to backends a little.
2020-10-09 20:55:58 -03:00
fiatjaf
9185342c72
simplify environment variables required.
...
instead of multiple keys/macaroons with different permissions we request only one.
if someone wants to use lnbits with an invoice macaroon they're free to do it and
we will just fail on 'pay' methods, as before.
this also grandfathers the previous environment variables names so everything keeps
working without people having to change their setups.
in the meantime some bugs with lntxbot and c-lightning were fixed and the `requests`
dependency was eliminated because I can't organize myself into meaningful chunks of
changes.
2020-10-08 16:03:21 -03:00
fiatjaf
1ce9936561
better handling of missing dependencies on lndgrpc.
2020-10-05 08:45:32 -03:00
fiatjaf
f5b8ed8fc6
make lndgrpc work using the purerpc library and a manually-declared method.
2020-10-04 12:06:54 -03:00
fiatjaf
e74cf33f90
broken invoice listener on c-lightning and other fixes around wallets.
2020-10-04 12:05:59 -03:00
fiatjaf
b3c69ad49c
invoice listeners support on lnd and other fixes around wallets/
2020-10-04 12:05:01 -03:00
Eneko Illarramendi
23cfe0d417
chore: update github workflows
2020-09-03 23:10:41 +02:00
fiatjaf
68b0adfe66
fix: description_hash as an optional param to create_invoice.
...
fixes https://github.com/lnbits/lnbits/issues/74
2020-08-30 23:54:50 -03:00
fiatjaf
bc27293315
support description_hash across all APIs.
2020-07-03 20:04:04 -03:00
Eneko Illarramendi
2c5e539795
refactor: make some wallet dependencies optional
2020-05-02 19:16:10 +02:00
Eneko Illarramendi
c3e337a319
fix: mypy errors
2020-04-26 16:58:29 +02:00
Arc
708b2f2652
Update lndgrpc.py
2020-04-13 22:23:42 +01:00
Arc
8db35ca1af
Update lndgrpc.py
2020-04-03 12:27:07 +01:00
Arc
127f1ee258
Update lndgrpc.py
2020-04-02 15:03:32 +01:00
Arc
1db380d88e
Update lndgrpc.py
2020-04-02 15:01:38 +01:00
Arc
d194ba5fe1
Update lndgrpc.py
2020-04-02 12:43:48 +01:00
Arc
c2a116b713
Update lndgrpc.py
2020-04-02 12:43:23 +01:00
Arc
efc847d381
Update lndgrpc.py
2020-04-02 12:03:10 +01:00
Arc
b02bee01e5
Update lndgrpc.py
2020-04-02 07:45:00 +01:00
Arc
73ec8deee1
Create lndgrpc.py
...
Doesn't work, but hopefully will soon
2020-04-02 07:44:03 +01:00