Commit graph

215 commits

Author SHA1 Message Date
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
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