30 Commits

Author SHA1 Message Date
nymkappa
90bc1bc28e Update missing "pools.json" -> "pools-v2.json" 2023-02-26 13:54:43 +09:00
nymkappa
e9bc04a20e Use regexes instead of tags 2023-02-25 16:32:03 +09:00
nymkappa
8bd11f0598 Update pool parser to work with no database 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
8337da9b44 Rewrite mining pools parser - Re-index blocks table 2023-02-25 16:31:47 +09:00
nymkappa
1e9dde975a Fix database used when database disabled 2023-02-15 17:45:29 +09:00
nymkappa
4631ba67b7 Cleanup logs 2022-12-01 15:52:06 +01:00
nymkappa
06f0e6b6fa Add support for renaming a mining pool without changing regex or addresses 2022-11-09 06:43:46 +01:00
nymkappa
918d991cdd Disable automatic block re-indexing by default 2022-07-09 19:04:35 +02:00
nymkappa
c089f80685 Re-index related blocks when mining pool.json changes 2022-07-07 13:41:09 +02:00
nymkappa
a0719940f0 Fix pool import crash 2022-06-07 22:18:51 +02:00
nymkappa
570ea6796e Add 'db-less' mining pool tagging support 2022-06-07 11:28:39 +02: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
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