110 Commits

Author SHA1 Message Date
nymkappa
d1cfdd5931 Merge Lightning backend into Mempool backend 2022-07-08 18:55:26 +02:00
nymkappa
d2ab72390f Save block predictions results in db and show results in a chart 2022-07-06 22:27:45 +02:00
nymkappa
c4810bf7a1 Replace json prices.avg_prices with table columns - update prices logs 2022-07-06 10:46:00 +02:00
nymkappa
36d9425853 Index difficulty adjustments 2022-07-05 16:52:56 +02:00
nymkappa
1599d202fd Implement our own price indexer with historical data 2022-06-23 15:42:42 +02:00
nymkappa
1b1e058251 Set block/:hash/summary expiration to 1 month - Support re-org for block summaries 2022-06-20 16:35:10 +02:00
nymkappa
f98b829678 Index block summaries in db 2022-06-18 16:48:02 +02:00
nymkappa
a507dfe2cb Cleanup some ops logs 2022-06-13 10:12:27 +02:00
nymkappa
79fd45127e Create rates table on all networks 2022-05-31 11:20:31 +02:00
nymkappa
4591489e8c Save bisq aggregate exchange rates in the database for each new block 2022-05-25 10:51:35 +02:00
nymkappa
68bc7de131 Index blocks.hash 2022-05-19 12:13:43 +02:00
Felipe Knorr Kuhn
4f3556084c Fix datababse typo 2022-04-29 22:01:22 -07:00
nymkappa
452ffb20cf Wait for external assets file writers to complete 2022-04-22 04:03:08 -04: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
884e3efc19 Added slug into pools table 2022-03-24 19:44:22 +09:00
nymkappa
2d8a8ae4a1 Truncate hashrates after #1435 - Fix hashrate indexing logs 2022-03-24 07:40:03 +09:00
nymkappa
fdea74db0a Store hex in coinbase raw - Improve scripsig parsing 2022-03-16 12:10:18 +01:00
nymkappa
acaa6c6e45 Index asciiScriptSig and display it in /mining/blocks 2022-03-15 23:33:51 +01:00
nymkappa
2900374bc8 Remove unnecessary migration version 15 2022-03-13 16:08:33 +01:00
nymkappa
aa2480507c Make sure to set avg_hashrate field to double unsigned 2022-03-13 16:08:32 +01:00
nymkappa
c601f92732 Set db connection to UTC - Fix hashrate indexing 2022-03-13 16:08:31 +01:00
nymkappa
cfbfa2f443 int -> bigint for all satoshis related indexed data 2022-03-12 15:48:22 +01:00
nymkappa
d7a270f0da Only insert hashrate states for bitcoin 2022-03-12 15:48:21 +01:00
nymkappa
e48df811a6 Make blocks.fees larger data type 2022-03-11 20:42:07 +01:00
nymkappa
74d9762821 Index more data using getblockstats core RPC 2022-03-10 14:21:11 +01:00
nymkappa
950be63da0 Index more data using getblockstats core RPC 2022-03-10 14:08:01 +01:00
nymkappa
a455e769e5 Increment db version to 10 (26ee4204ac68ee718338db0adb4789cce2976112) 2022-03-09 18:51:27 +01:00
nymkappa
91bef41b7e Index blocks.blockTimestamp 2022-03-08 17:10:29 +01:00
nymkappa
020e09f86f Truncate hashrates table only for bitcoin (db migration v9) 2022-03-07 15:56:07 +01:00
nymkappa
b60e0844e9 Re-index hashrates because we have different timestamp handling 2022-03-06 16:48:14 +01:00
nymkappa
085f5e5cca Set connection pool timezone to UTC - Close mysql connections upon error 2022-03-06 16:44:09 +01:00
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