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
ben
cf85018f9d
Queens English
2022-08-01 10:19:07 +01:00
Arc
f7a675962a
Update lnbits/wallets/cliche.py
...
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-01 09:51:52 +01:00
ben
3e40d91466
changed to hex
2022-08-01 09:50:24 +01:00
ben
84cb581207
mypy
2022-08-01 09:48:00 +01:00
ben
0d4ccad6d7
some mypy
2022-08-01 09:41:03 +01:00
ben
c6b72f7f47
Make format
2022-08-01 08:56:37 +01:00
ben
940ef26003
format
2022-07-31 23:51:57 +01:00
ben
cac7e1e3c0
Works almost
...
Stream needs work
2022-07-31 23:46:42 +01:00
ben
166618c452
make format
2022-07-29 12:37:19 +01:00
ben
1b1a7cc3ed
Dirty fix
...
Will look at adding webhook url back
2022-07-29 12:36:29 +01: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
7667c2f531
doesnt touch class invoice and leave fake wallet as is
2022-07-26 12:31:29 +02:00
dni
27ce17cd74
blacked
2022-07-26 10:10:07 +02:00
dni
1c543e3a84
ignore macaroon type errors
2022-07-26 09:56:46 +02:00
dni
345cf86544
fix another fastapi type
2022-07-26 09:52:57 +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
dni
8e9b3190e4
mypy fakewallet, macaroon, bolt11 invoice
2022-07-25 12:03:06 +02:00
dni
808bd36e23
some more mypy fixes
2022-07-25 12:02:59 +02:00
calle
b8c99a15d1
do not mark payments as failed ( #750 )
2022-07-19 12:33:28 +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
357860d849
Spark: increase timeout and improved error handling ( #718 )
...
* increase timeout and more error handling
* more error handling
* add timeout exception
2022-07-12 13:22:55 +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
b90eb0a3ba
Merge pull request #648 from lnbits/black_formatting
...
Code cleanup: black formatting
2022-06-20 20:57:44 +01:00
mrbitcoiner
b03da7b9c2
Added maxfee paramenter to Spark pay method (working on c-lightning 0.11.0.1) ( #641 )
2022-06-02 12:11:48 +02:00
callebtc
f8400512f7
black formating
2022-06-01 14:53:05 +02:00
Arc
9d6382294a
Merge pull request #616 from talvasconcelos/eclair-backend
...
Add Eclair backend/funding wallet
2022-05-17 14:19:28 +01:00
fiatjaf
436c3dd51a
fix: spark fee when pay_invoice pending.
2022-05-06 20:10:42 -03: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
96c7decae7
Merge branch 'main' into eclair-backend
2022-04-28 15:30:26 +01:00
fiatjaf
2f381960a0
fix sparko invoice checking ("expired" was being considered as "paid").
2022-04-05 08:44:41 -03: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
Ben Arc
ff70efd1eb
Removes LNDRPC, if someone wants to fix we can implement again
2022-03-11 14:13:28 +00:00