Commit Graph

78 Commits

Author SHA1 Message Date
jerryfletcher21
7b3c62e14f
split host and port in .env variables 2024-07-13 15:03:56 +02:00
daywalker90
62e6258f0f
Feat: fix CLN and reactivate cln integration tests (#1336)
* update cln holdinvoice plugin

DecodeBolt11 was removed in:
d51fd03390

* update CLN to v24.05 and holdinvoice to v3.0.0

* reactivate CLN integration tests

---------

Co-authored-by: jerryfletcher21 <jerryfletcher@cock.email>
2024-06-17 21:33:49 +00:00
Reckless_Satoshi
69537d4c00
Fix comment out unused functionalities and add LND 0.17.2 to tests 2023-11-30 15:53:30 +00:00
Reckless_Satoshi
01c4a28dae
Refactor trade tests, add onchain payout test 2023-11-23 17:53:39 +00:00
Reckless_Satoshi
b2a130afca Add LN payout test 2023-11-20 14:54:04 +00:00
Reckless_Satoshi
3e0d451e97 Add tests for onchain address, pgp sign verification. Improve Dockerfile 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
3a42195bba Fix tests failures when LND node is not used 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
605a37bb87 Add CLN regtest to integration tests 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
ebd0a287c3 Add dev dependencies and regtest test environments 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
bece7c7d4e Refactor CLN stubs to allow for mocking 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
4efc59d416 Refactor gRPC and mocks. Add coordinator info test. 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
89ae6cd4a6 Add draft LND gRCP mocks 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
4270f2d0a2 Add LND mock up classes 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
1ecd1ec7dc
Fix estimate minning fee on testnet 2023-10-27 09:45:18 -07:00
Reckless_Satoshi
54a59872fb
Add django utils tests (#911)
* Add util tests

* Enable coordinator test workflow
2023-10-23 22:48:38 +00:00
daywalker90
ae9fdd72c6
Update to newer CLN hold plugin (#816)
* update to newer cln hold plugin

* fix docker stuff

* forgotten rename

* add proto files from cln repo

* add CLN_GRPC_HOLD_HOST to .env-sample
2023-09-06 15:18:22 +00:00
Reckless_Satoshi
4383d14f88
feat(coordinator): add verbose order logs as table to admin (#764)
* add logs field

* Log some order events

* Add more logs. Format as table.

* Add more logs

* Add admin panel hyperlinks to order logs

* Add lasts set of logs

* Some fixes
2023-08-06 17:48:20 +00:00
Reckless_Satoshi
067ba38668
Fix exceptions for no CLN nodes 2023-05-25 04:19:45 -07:00
Reckless_Satoshi
5ff70bccb7
Add core-lightning as backend lightning node vendor (#611)
* Add CLN node backend image and service (#418)

* Add cln service

* Add hodlvoice Dockerfile and entrypoint

* Add lnnode vendor switch (#431)

* Add LNNode vendor switch

* Add CLN version to frontend and other fixes

* init

* first draft

* add unsettled_local_balance and unsettled_remote_balance

* gen_hold_invoice now takes 3 more variables to build a label for cln

* remove unneeded payment_hash from gen_hold_invoice

* remove comment

* add get_cln_version

* first draft of clns follow_send_payment

* fix name of get_lnd_version

* enable flake8

* flake8 fixes

* renaming cln file, class and get_version

* remove lnd specific commented code

* get_version: add try/except, refactor to top to mimic lnd.py

* rename htlc_cltv to htlc_expiry

* add clns lookup_invoice_status

* refactored double_check_htlc_is_settled to the end to match lnds file

* fix generate_rpc

* Add sample environmental variables, small fixes

* Fix CLN gRPC port

* Fix gen_hold_invoice, plus some other tiny fixes (#435)

* Fix channel_balance to use int object inside Amount (#438)

* Add CLN/LND volume to celery-beat service

* Add CLN/LND volume to celery-beat service

* Bump CLN to v23.05

* changes for 0.5 and some small fixes

* change invoice expiry from absolute to relative duration

* add try/except to catch timeout error

* fix failure_reason to be ln_payment failure reasons, albeit inaccurate sometimes

* refactor follow_send_payment and add pending check to expired case

* fix status comments

* add send_keysend method

* fix wrong state ints in cancel and settle

* switch to use hodlinvoicelookup in double_check

* move pay command after lnpayment status update

* remove loop in follow_send_payment and add error result for edge case

* fix typeerror for payment_hash

* rework follow_send_payment logic and payment_hash, watch harder if pending

* use fully qualified names for status instead of raw int

* missed 2 status from prev commit

* Always copy the cln-grpc-hodl plugin on start up

* Fix ALLOW_SELF_KEYSEND linting error

* Fix missing definition of failure_reason

---------

Co-authored-by: daywalker90 <admin@noserver4u.de>
2023-05-22 14:56:15 +00:00
Reckless_Satoshi
20f4a7b471
Add qualified lnd grpc variables 2023-05-21 15:22:15 -07:00
Reckless_Satoshi
0a620901a7
Add keysend devfund donations functionality (#589) 2023-05-16 17:12:15 +00:00
Reckless_Satoshi
73eb4df291
Delete commited proto files 2023-05-15 04:11:27 -07:00
Reckless_Satoshi
7b6ebd0eab
Simplify coordinator updates, automatic migrations and collect statics (#583) 2023-05-15 09:46:59 +00:00
Reckless_Satoshi
b0ffe150c0
Refactor expiry_height into follow_invoices 2023-05-13 08:51:22 -07:00
Reckless_Satoshi
3b77a473f8
Coordinator db performance clean up (#561)
* Improve DB writes performance and concurrency. Add order coordinator proceeds field.

* Fix checks on order GET inducing 400
2023-05-08 12:49:21 -07:00
Reckless_Satoshi
a1f0a85646
Small fixes 2023-05-01 10:35:55 -07:00
Reckless_Satoshi
75f04579ed
Refactor models into a module (#481)
* Refactor models into a module

* Rename Profile model as Robot

* Underscore numeric literals
2023-05-01 10:30:53 +00:00
Reckless_Satoshi
c693faacde
Optimize follow-invoices service performance (#480) 2023-04-30 13:46:23 +00:00
Reckless_Satoshi
b1e9081ff8
Handle expired invoices that are in_flight 2023-04-25 04:46:07 -07:00
Reckless_Satoshi
52df958be8
Add full semver string (v) 2023-04-23 13:44:38 -07:00
Reckless_Satoshi
df7f034667
Small variable name fixes 2023-04-22 12:41:17 -07:00
Reckless_Satoshi
ac24c310c5
Refactor LNNode, use versioner for LND get_version, refactor macaroon (#432)
* Add Versioner rpc, use versioner for LND get_version, refactor macaroon

* Move LND specific rpc calls from the follow-invoices thread to LNNode

* Move LND specific rpc calls from tasks to LNNode
2023-04-22 18:54:03 +00:00
Reckless_Satoshi
9158bd4c98
Fix reject too low mining fees (< 12 blocks conf target) 2023-03-17 15:06:15 -07:00
Reckless_Satoshi
94bc44ad0e
Improve tasks reliability (#390)
* Add broadcasted flag

* Improve celery tasks reliability
2023-03-16 00:53:37 +00:00
Reckless_Satoshi
82c8f2280b
Add MAX_SWAP_AMOUNT envvar (#389) 2023-03-14 19:54:31 +00:00
Reckless_Satoshi
42f208fad4
Fix race condition onchain (#388)
* Fix race condition swaps

* Collect new phrases

* Increase random delay interval
2023-03-14 17:23:11 +00:00
Reckless_Satoshi
ef55207812
Add envvar for spend_unconfirmed 2023-03-10 04:52:33 -08:00
Reckless_Satoshi
b02fdcb084
Deprecate old routing budget pipeline (#347)
Delete old routing budget routines. Clients older than 0.3.1 are now incompatible!
2023-02-10 13:34:35 +00:00
Reckless_Satoshi
86e6bed37c
Add advanced options to LN payout form (#326)
* Add advanced options to LN payout form

* Complete amount calcs

* Temporary working solution for lnproxy web only (uses text instead of json)

* Update LNpayment model and logics to use user's routing budget

* Add handle lnproxyserver networks (i2p, tor, clearnet) / (mainnet,testnet)

* Small fixes
2022-11-24 17:42:30 +00:00
Reckless_Satoshi
7643e524f1
Fix all files with pre-commit 2022-10-25 11:04:12 -07:00
Reckless_Satoshi
5723cde20e
Fix onchain payouts bug 2022-10-22 07:23:22 -07:00
redphix
4d5c60239f
Conform to pep8 rules (#295)
* Conform to pep8 rules

* Fix some more flake8 linting errors
2022-10-20 20:53:51 +00:00
Lint Action
3d3da78f8a Fix code style issues with Black 2022-10-20 09:56:10 +00:00
Reckless_Satoshi
8423896285
Tight CLTV expiry dynamically 2022-07-21 06:19:47 -07:00
Reckless_Satoshi
c12c18a5c7
Update wallet docs relating to Muun 2022-06-21 05:07:45 -07:00
Reckless_Satoshi
43b85d79d4
Fix invoice payouts. Add onchain summary to accounting days. 2022-06-16 15:48:35 -07:00
Reckless_Satoshi
5c87c5ad85
Add UI elements for swap fee and TXID payout. Fix bugs. 2022-06-16 13:01:10 -07:00
Reckless_Satoshi
efed6b3c0a
Pay buyer onchain-tx 2022-06-16 08:31:30 -07:00
Reckless_Satoshi
cf82a4d6ae
Add onchain logics pt2 2022-06-06 13:37:51 -07:00
Reckless_Satoshi
8d0b518222
Add onchain logics pt1 2022-06-06 10:57:04 -07:00