28 Commits

Author SHA1 Message Date
nymkappa
ce14cd2496 Split network daily hashrate indexing and weekly pool hashrate indexing 2022-03-06 12:52:38 +01:00
nymkappa
abb96ca064 warn on re-index - fix hash indexing state issue - cleanup ui mining 2022-02-24 20:21:14 +09:00
nymkappa
d751662010 Create stacked pools historical hashrates to see dominance over time 2022-02-24 20:21:12 +09:00
nymkappa
e573f03b9e Update database migration log levels 2022-02-21 23:57:44 +09:00
nymkappa
c770d15dad Add --reindex command line parameter to force full re-indexing 2022-02-21 16:38:18 +09:00
nymkappa
ad51a0101c Index new hashrates once every 24 hours 2022-02-21 14:48:59 +09:00
nymkappa
5a6f9269b1 Generate daily average hashrate data 2022-02-21 14:48:57 +09:00
nymkappa
c0082547c8 When blocks need re-indexing, truncate the table 2022-02-17 18:02:55 +09:00
nymkappa
11d771e477 Cleanup blocks/pools fields data type - Index more block data 2022-02-16 15:22:55 +09:00
nymkappa
a79609ff5c Added /api/v1/blocksExtras endpoint 2022-02-10 22:11:10 +09:00
nymkappa
e3696bca61 Fixes post rebase 2022-01-28 15:01:24 +09:00
nymkappa
dcf613e065 DROP -> DROP IF EXISTS 2022-01-28 15:01:20 +09:00
nymkappa
a8e5f44937 Drop legacy blocks table during migration - Fix linter issues 2022-01-28 15:01:19 +09:00
nymkappa
16ab9b38a0 Basic block indexing WIP - Default mining pool icon - Only show mining hashrate on 1d scale 2022-01-28 15:01:15 +09:00
nymkappa
cd61bcf85a Increment migration schema version to 3 and re-add pools and blocks table creation queries 2022-01-28 13:53:29 +09:00
nymkappa
1a856574aa Migrate pools.json to the database in one command - Updated latest pools.json file from Blockchain-Known-Pools master 2022-01-28 13:50:58 +09:00
nymkappa
159c4224bd Remove useless autocommit=0 in db migration script 2022-01-25 16:45:52 +09:00
nymkappa
49689d8807 Import mining pools into the database - Increment db schema to 3 2022-01-19 18:50:52 +09:00
nymkappa
de16205d1c Added missing log tags 2022-01-12 17:43:32 +09:00
nymkappa
d6d02c6d22 Sleep 10 seconds before ending the process after critical error in database migration 2022-01-12 17:26:10 +09:00
nymkappa
2fcf2f1d40 Extract all CREATE commands from transaction 2022-01-12 16:41:27 +09:00
nymkappa
3a75f578db Print database engine version when migration script starts 2022-01-12 16:06:45 +09:00
nymkappa
7cfdf90bb9 Only create statistics.index if needed (supports old mariadb) - Make sure all db connections are released - Fix linter issues - Remove .toString() 2022-01-12 14:10:16 +09:00
nymkappa
50e828995e Refactor migrations - Wrap with TRANSACTION 2022-01-11 20:43:59 +09:00
nymkappa
68881df2a4 Only create INDEX 'added' when it does not already exist 2022-01-11 11:47:04 +09:00
nymkappa
6c0dd4a5b3 INDEX 'added' in statistics table 2022-01-10 19:48:29 +09:00
softsimon
331e3b4c3e Fix backend support for 'liquidtestnet' network 2021-12-31 01:26:45 +04:00
softsimon
dbd0901641 Automated database creation and migration
fixes #1002
2021-12-13 11:32:04 +04:00