Commit Graph

45 Commits

Author SHA1 Message Date
nymkappa
bb0fd78f28
Added slug into pools table 2022-03-24 19:44:22 +09:00
nymkappa
185dddd8c7
Truncate hashrates after #1435 - Fix hashrate indexing logs 2022-03-24 07:40:03 +09:00
nymkappa
ffb5db69a8
Store hex in coinbase raw - Improve scripsig parsing 2022-03-16 12:10:18 +01:00
nymkappa
94dbec46cf
Index asciiScriptSig and display it in /mining/blocks 2022-03-15 23:33:51 +01:00
nymkappa
edddf25917
Remove unnecessary migration version 15 2022-03-13 16:08:33 +01:00
nymkappa
bec3f214b5
Make sure to set avg_hashrate field to double unsigned 2022-03-13 16:08:32 +01:00
nymkappa
33897b029f
Set db connection to UTC - Fix hashrate indexing 2022-03-13 16:08:31 +01:00
nymkappa
0dbc725c39
int -> bigint for all satoshis related indexed data 2022-03-12 15:48:22 +01:00
nymkappa
cd12e9bde9
Only insert hashrate states for bitcoin 2022-03-12 15:48:21 +01:00
nymkappa
afe7a360f7
Make blocks.fees larger data type 2022-03-11 20:42:07 +01:00
nymkappa
8ca3f6e72b
Index more data using getblockstats core RPC 2022-03-10 14:21:11 +01:00
nymkappa
d82f9c4998
Index more data using getblockstats core RPC 2022-03-10 14:08:01 +01:00
nymkappa
643e5ceb7f
Increment db version to 10 (26ee4204ac) 2022-03-09 18:51:27 +01:00
nymkappa
26ee4204ac
Index blocks.blockTimestamp 2022-03-08 17:10:29 +01:00
nymkappa
32d66c03c6
Truncate hashrates table only for bitcoin (db migration v9) 2022-03-07 15:56:07 +01:00
nymkappa
4b859eb4f6
Re-index hashrates because we have different timestamp handling 2022-03-06 16:48:14 +01:00
nymkappa
89411f23d8
Set connection pool timezone to UTC - Close mysql connections upon error 2022-03-06 16:44:09 +01:00
nymkappa
7314582dd1
Split network daily hashrate indexing and weekly pool hashrate indexing 2022-03-06 12:52:38 +01:00
nymkappa
ec40231f93
warn on re-index - fix hash indexing state issue - cleanup ui mining 2022-02-24 20:21:14 +09:00
nymkappa
78fa3e33cd
Create stacked pools historical hashrates to see dominance over time 2022-02-24 20:21:12 +09:00
nymkappa
976017dbef
Update database migration log levels 2022-02-21 23:57:44 +09:00
nymkappa
bb1c5d0b31
Add --reindex command line parameter to force full re-indexing 2022-02-21 16:38:18 +09:00
nymkappa
e61df324ea
Index new hashrates once every 24 hours 2022-02-21 14:48:59 +09:00
nymkappa
6fe8f6fa1e
Generate daily average hashrate data 2022-02-21 14:48:57 +09:00
nymkappa
15ba487ee4
When blocks need re-indexing, truncate the table 2022-02-17 18:02:55 +09:00
nymkappa
0c1fa2b4aa
Cleanup blocks/pools fields data type - Index more block data 2022-02-16 15:22:55 +09:00
nymkappa
fac49d0b98
Added /api/v1/blocksExtras endpoint 2022-02-10 22:11:10 +09:00
nymkappa
9df490373b
Fixes post rebase 2022-01-28 15:01:24 +09:00
nymkappa
5b32ab6dde
DROP -> DROP IF EXISTS 2022-01-28 15:01:20 +09:00
nymkappa
aa457e316b
Drop legacy blocks table during migration - Fix linter issues 2022-01-28 15:01:19 +09:00
nymkappa
4b9bfd6ca0
Basic block indexing WIP - Default mining pool icon - Only show mining hashrate on 1d scale 2022-01-28 15:01:15 +09:00
nymkappa
18a63933fa
Increment migration schema version to 3 and re-add pools and blocks table creation queries 2022-01-28 13:53:29 +09:00
nymkappa
1a22923cd8
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
703b4cc92a
Remove useless autocommit=0 in db migration script 2022-01-25 16:45:52 +09:00
nymkappa
2848f56c2b
Import mining pools into the database - Increment db schema to 3 2022-01-19 18:50:52 +09:00
nymkappa
2944f0b805
Added missing log tags 2022-01-12 17:43:32 +09:00
nymkappa
f494bd6d6a
Sleep 10 seconds before ending the process after critical error in database migration 2022-01-12 17:26:10 +09:00
nymkappa
ae2cb05dc5
Extract all CREATE commands from transaction 2022-01-12 16:41:27 +09:00
nymkappa
4e322fe006
Print database engine version when migration script starts 2022-01-12 16:06:45 +09:00
nymkappa
fc878b696d
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
6bfd9da08c
Refactor migrations - Wrap with TRANSACTION 2022-01-11 20:43:59 +09:00
nymkappa
0e6cc67c0a
Only create INDEX 'added' when it does not already exist 2022-01-11 11:47:04 +09:00
nymkappa
1e78326ee4
INDEX 'added' in statistics table 2022-01-10 19:48:29 +09:00
softsimon
350b4922da
Fix backend support for 'liquidtestnet' network 2021-12-31 01:26:45 +04:00
softsimon
2281116504
Automated database creation and migration
fixes #1002
2021-12-13 11:32:04 +04:00