Commit Graph

18 Commits

Author SHA1 Message Date
softsimon
6919393e6c
Refactored the DB class into a regular singleton class. 2022-04-13 17:38:42 +04:00
nymkappa
6fb0571b06
Refactor database pool use 2022-04-13 21:46:39 +09:00
nymkappa
bee0dbd400
Cleanup mining related backend logs 2022-04-13 16:30:49 +09:00
nymkappa
1969f2a275
Use github api to fetch and update the pools database, once a week 2022-04-07 14:37:16 +09:00
nymkappa
7ab950d03c
Add slug when we insert a mining pool for the first time 2022-03-29 16:31:26 +09:00
nymkappa
f51ea5b537
Fix query to insert unknown mining pool 2022-03-29 14:37:17 +09:00
nymkappa
810c335759
If pool slug does not exist, generate one on the fly, avoid crash 2022-03-25 12:31:09 +09:00
nymkappa
bb0fd78f28
Added slug into pools table 2022-03-24 19:44:22 +09:00
nymkappa
33897b029f
Set db connection to UTC - Fix hashrate indexing 2022-03-13 16:08:31 +01:00
nymkappa
df960ab9ba
Import pools file for testnet and signet as well - Added missing express routes 2022-01-28 15:01:21 +09:00
nymkappa
1322298a06
Make sure to wait for all mining pools queries before continuing 2022-01-24 14:34:03 +09:00
nymkappa
87175869dd
Fix typescript miss use 2022-01-20 23:31:32 +09:00
nymkappa
a1a2e9363f
Make sure to release all db connections 2022-01-20 23:07:20 +09:00
nymkappa
19a564062b
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
8d1cc40459
Fix add 'Unknown' pool logic 2022-01-20 16:56:25 +09:00
nymkappa
1210643e8e
Fix linter issues and typo 2022-01-20 16:34:14 +09:00
nymkappa
979c52d3c4
Add pools.json to EXTERNAL_ASSETS - Now supports updating the table 2022-01-20 13:53:08 +09:00
nymkappa
2848f56c2b
Import mining pools into the database - Increment db schema to 3 2022-01-19 18:50:52 +09:00