25 Commits

Author SHA1 Message Date
nymkappa
cb0febabbb Document --update-pools - Added some logs 2023-02-26 14:19:10 +09:00
nymkappa
38d5774c52 Log the whole exception in pool parser 2023-02-25 17:12:50 +09:00
nymkappa
6549a54554 Remove duplicated db transaction 2023-02-25 17:05:58 +09:00
nymkappa
e9bc04a20e Use regexes instead of tags 2023-02-25 16:32:03 +09:00
nymkappa
6861e1dadc Disable mining pools update if AUTOMATIC_BLOCK_REINDEXING is not set - Re-index unknown blocks when a new pool is added 2023-02-25 16:32:03 +09:00
nymkappa
533f0ac897 Point to the new mining pool files pools-v2.json 2023-02-25 16:32:02 +09:00
nymkappa
8337da9b44 Rewrite mining pools parser - Re-index blocks table 2023-02-25 16:31:47 +09:00
nymkappa
4631ba67b7 Cleanup logs 2022-12-01 15:52:06 +01:00
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