17 Commits

Author SHA1 Message Date
nymkappa
6ba7d5c9ad Make mining pools url configurable 2022-08-09 15:52:24 +02:00
nymkappa
1599d202fd Implement our own price indexer with historical data 2022-06-23 15:42:42 +02:00
nymkappa
a507dfe2cb Cleanup some ops logs 2022-06-13 10:12:27 +02:00
wiz
5953939dda Merge branch 'master' into nymkappa/bugfix/db-disabled 2022-06-08 01:56:52 +09:00
nymkappa
570ea6796e Add 'db-less' mining pool tagging support 2022-06-07 11:28:39 +02:00
Ayanami
02a0ac14fd Add an ability to change circuits 2022-06-07 04:16:37 +09:00
Ayanami
31192d1893 Include SocksProxyAgent inside while loop
To address error Socks5 proxy rejected connection - Failure
2022-06-07 04:16:37 +09:00
Ayanami
1629d8f1c6 Added configurable user-agent for axios
Will use `mempool/v${backendInfo.getBackendInfo().version}` for default
2022-06-07 04:16:36 +09:00
Ayanami
cdf645f68e Handle Error with basic retry while syncing external assets ( Price Data )
+ Removed unused External Assets value

+ Make static URL dynamic

+ Added config options for syncing pool data

+ Added retry interval & max retry
2022-06-07 04:16:36 +09:00
nymkappa
1638fe4883 Don't try to run pools parser if db is not enabled 2022-05-27 10:31:49 +02:00
Ayanami
939edbb8e9 pools-updater: Support secure Tor connection to sync data with Github
Use Axios instead of native https
2022-05-18 11:20:28 +09:00
softsimon
427c1ca075 Refactored the DB class into a regular singleton class. 2022-04-13 17:38:42 +04:00
nymkappa
c18d525f4a Refactor database pool use 2022-04-13 21:46:39 +09:00
nymkappa
d7d8fda3f6 Cleanup mining related backend logs 2022-04-13 16:30:49 +09:00
nymkappa
c1f011d64b Catch http request error - Fix 24h retry period 2022-04-07 16:14:43 +09:00
nymkappa
733bcc7118 Upon error, re-run the PoolsUpdater within 24h instead of 7d 2022-04-07 14:51:23 +09:00
nymkappa
a7260211ca Use github api to fetch and update the pools database, once a week 2022-04-07 14:37:16 +09:00