stacker.news/worker
ekzyis 2151323c8d
Use LND subscriptions (#726)
* Use parallel invoice subscriptions

* Fix missing idempotency

* Log error

* Use cursor for invoice subscription

* Subscribe to outgoing payments for withdrawals

* Add TODO comments regarding migration to LND subscriptions

* Also use isPoll variable in checkInvoice

* Queue status check of pending withdrawals

* Use for loop to check pending withdrawals

* Reconnect to LND gRPC API on error

* Fix hash modified of applied migrations

* Separate wallet code from worker index

* refactor subscription code some more

* remove unnecessary subWrapper abstraction
* move all wallet related code into worker/wallet.js such that only a single import is needed in worker/index.js

* Migrate from polling to LND subscriptions

* Remove unnecessary reconnect code

* Add FIXME

* Add listener for HODL invoice updates

* Remove obsolete comment

* Update README

* Add job to cancel hodl invoice if expired

* Fix missing else

* small bug fixes and readability enhancements

* refine and add periodic redundant deposit/withdrawal checks

---------

Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-01-08 16:37:58 -06:00
..
Dockerfile use node v18 in docker 2023-08-07 13:19:11 -05:00
auction.js territories 2023-12-04 21:34:06 -06:00
deleteUnusedImages.js territories 2023-12-04 21:34:06 -06:00
earn.js give rewards its own db connection pool 2023-12-21 17:48:16 -06:00
ephemeralItems.js territories 2023-12-04 21:34:06 -06:00
imgproxy.js territories 2023-12-04 21:34:06 -06:00
index.js Use LND subscriptions (#726) 2024-01-08 16:37:58 -06:00
nostr.js territories 2023-12-04 21:34:06 -06:00
ofac.js wallet limit reduction + country list constants 2023-12-15 14:04:09 -06:00
ots.js territories 2023-12-04 21:34:06 -06:00
package.json Convert worker to ESM (#500) 2023-09-23 20:19:35 -05:00
repin.js territories 2023-12-04 21:34:06 -06:00
search.js territories 2023-12-04 21:34:06 -06:00
streak.js territories 2023-12-04 21:34:06 -06:00
territory.js territory billing notifications 2024-01-03 15:20:10 -06:00
trust.js territories 2023-12-04 21:34:06 -06:00
views.js territories 2023-12-04 21:34:06 -06:00
wallet.js Use LND subscriptions (#726) 2024-01-08 16:37:58 -06:00