47 Commits

Author SHA1 Message Date
ce0421f8c8 add option for timing issues in tests
On my powerful machine, running tests resulted in some errors.
After a bit of digging I found out that it was a timing issues.
This PR adds a config option TIMING_EXTRA_IN_TESTS that when set to
True, it take some time where it should so that the tests do not fail.
If the config option is not present (default) nothing is changed.
I had this issue very sporadically on my laptop, and every time when
running on an other powerful machine.
2025-05-28 17:49:06 +02:00
c9c9971601 Fix invoice cleanup 2025-03-24 00:11:04 +01:00
0a8d648fa4 Better logs 2025-03-01 23:52:30 +01:00
ee4fe15c6c Allow multiple takers 2025-02-28 21:26:08 +01:00
7d7a3a39e7 Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
4f2ec020a9 Store status notifications 2024-09-16 15:54:14 +02:00
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
60c72e4239 Add tracking of old locked invoices to follow-invoices 2023-05-22 03:43:43 -07:00
547a7212a0 Do not watch all locked invoices in follow-invoices 2023-05-20 07:52:30 -07:00
b0ffe150c0 Refactor expiry_height into follow_invoices 2023-05-13 08:51:22 -07:00
70b6d88321 Improve lookup invoice status updates delay 2023-05-13 08:38:13 -07:00
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
3a49902a7c Fix invoice-follower output logs and order_update 2023-04-30 09:32:15 -07:00
c693faacde Optimize follow-invoices service performance (#480) 2023-04-30 13:46:23 +00:00
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
ee8becebd9 Add stray locked htlc handler (#410) 2023-04-06 10:59:50 +00:00
399f8102f2 Add notification for new in-app chat messages (#403)
* Add TG message for new in-app chat messages

* Add emojis and collect phrases
2023-03-27 09:37:36 +00:00
f5853c6e7b Improve LN retry handling and logs 2023-03-16 11:11:39 -07:00
94bc44ad0e Improve tasks reliability (#390)
* Add broadcasted flag

* Improve celery tasks reliability
2023-03-16 00:53:37 +00:00
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
7643e524f1 Fix all files with pre-commit 2022-10-25 11:04:12 -07:00
4d5c60239f Conform to pep8 rules (#295)
* Conform to pep8 rules

* Fix some more flake8 linting errors
2022-10-20 20:53:51 +00:00
3d3da78f8a Fix code style issues with Black 2022-10-20 09:56:10 +00:00
5c06cab195 Rework concurrent payments. in_flight true/false 2022-04-18 15:19:58 -07:00
f00bafb5d8 Rework concurrent payments. in_flight true/false 2022-04-18 06:57:03 -07:00
14b4c16fa3 Fix for UI & Spanish translation. Implement concurrent invoice payments. 2022-04-15 17:04:17 -07:00
8001e148d7 Fix copy not loading. Send publish message only one 2022-03-11 07:40:04 -08:00
fc4ccd5281 Re-format all python code 2022-02-17 11:50:10 -08:00
d257848940 Add statsfornerds: alternative site, node alias, node id, 1ML link 2022-02-12 05:59:59 -08:00
db2d7cc922 Small fixes 2022-02-06 06:50:42 -08:00
1a6aa8a9ee Improve failure logics. Add platform rating. 2022-02-04 10:07:09 -08:00
3f6731d3e0 Improve response time of confirm fiat receive; improve failure routing handling 2022-02-03 17:37:24 -08:00
d2dbc0d249 Add async background catches expiry height 2022-01-25 07:20:56 -08:00
5a677067f7 Record expiry height into lnpayment and admin panel 2022-01-25 06:46:02 -08:00
2d1a2e4c5c Add logics for payment retry, first iteration. 2022-01-24 14:53:55 -08:00
51d65fd15e Implement CLTV_expiries for each hold invoice duration. Invoice expiry matches status time to lock it. 2022-01-24 09:54:44 -08:00
6377b052ce Add sounds to tradebox 2022-01-23 04:30:41 -08:00
fb5cb8fb4a Cancel frontend clean up. Try and go for management commands 2022-01-20 12:50:25 -08:00
7218b9b0d3 Logics update: escrow settles exactly at buyer payout time. 2022-01-19 11:37:10 -08:00
bfa0cd84d1 Update readme 2022-01-19 05:32:54 -08:00
285f85aaf2 Add check if attribute order exists when triggering an order status 2022-01-18 14:17:41 -08:00
7a6c29fe64 Silence initialization of nick generator 2022-01-18 12:52:10 -08:00
5e0639cfb3 Make payment_hash the primary key of LNpayment model 2022-01-18 08:57:55 -08:00
e31bc1adad Bug fix invoice follow. Copy user token button. 2022-01-18 05:20:19 -08:00
28d18a4842 Add background order updates. Add confirm boxes for Dispute and Fiat Received 2022-01-17 15:11:41 -08:00
0db73c7c82 Convert order cleaning task into admin command 2022-01-17 10:11:44 -08:00
eddd4674f6 Add admin background task: follow all active hold invoices 2022-01-17 08:41:55 -08:00