Commit Graph

227 Commits

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