18 Commits

Author SHA1 Message Date
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
a7260211ca Use github api to fetch and update the pools database, once a week 2022-04-07 14:37:16 +09:00
nymkappa
f60b419767 Add slug when we insert a mining pool for the first time 2022-03-29 16:31:26 +09:00
nymkappa
443e12b384 Fix query to insert unknown mining pool 2022-03-29 14:37:17 +09:00
nymkappa
64637c2b5e If pool slug does not exist, generate one on the fly, avoid crash 2022-03-25 12:31:09 +09:00
nymkappa
884e3efc19 Added slug into pools table 2022-03-24 19:44:22 +09:00
nymkappa
c601f92732 Set db connection to UTC - Fix hashrate indexing 2022-03-13 16:08:31 +01:00
nymkappa
8b9e3e0ea1 Import pools file for testnet and signet as well - Added missing express routes 2022-01-28 15:01:21 +09:00
nymkappa
3528ca35bd Make sure to wait for all mining pools queries before continuing 2022-01-24 14:34:03 +09:00
nymkappa
0df75cb3a9 Fix typescript miss use 2022-01-20 23:31:32 +09:00
nymkappa
0b8244d19a Make sure to release all db connections 2022-01-20 23:07:20 +09:00
nymkappa
1abfa4a82e Add pools.json file in default config.ts - Handle file exception - Only import pools for MAINNET 2022-01-20 22:59:10 +09:00
nymkappa
a9eb0ab4bb Fix add 'Unknown' pool logic 2022-01-20 16:56:25 +09:00
nymkappa
16f13fff32 Fix linter issues and typo 2022-01-20 16:34:14 +09:00
nymkappa
43b255bef1 Add pools.json to EXTERNAL_ASSETS - Now supports updating the table 2022-01-20 13:53:08 +09:00
nymkappa
49689d8807 Import mining pools into the database - Increment db schema to 3 2022-01-19 18:50:52 +09:00