Commit Graph

66 Commits

Author SHA1 Message Date
nymkappa
cdf0fe0335 Fix first diff adjustmeent if INDEXING_BLOCK_AMOUNT is not -1 2022-07-10 12:39:22 +02:00
nymkappa
07cb4a49bc Index weekly mining pool hashrate only if there are blocks mined 2022-07-09 22:34:18 +02:00
nymkappa
067ee168dd Use oldest consecutive block timestamp as hashrate indexing limit 2022-07-09 22:11:27 +02:00
nymkappa
d8a90cce47 Use raw db hashrate instead of avg for indexing 2022-07-09 22:11:27 +02:00
nymkappa
e303a4c374 Removed hardcoded genesis timestamp
Fix duplicated genesis hashrate attempt
Add log during difficulty adjustment indexing
2022-07-09 22:11:26 +02:00
nymkappa
5943b88ffe [Hashrate indexing] - Signet started in 2020 and not in 2009 2022-07-07 21:55:28 +02:00
nymkappa
0887428066 Save block predictions results in db and show results in a chart 2022-07-06 22:27:45 +02:00
wiz
327b2aa070 Merge branch 'master' into nymkappa/feature/hashrate-resolution 2022-07-06 21:10:18 +02:00
nymkappa
9ed7b2aad3 Add hashrate & difficulty chart resolution scaling 2022-07-06 21:03:55 +02:00
nymkappa
bbc9df486e If any indexing fails | chain of hash invalid, try again in 10 seconds 2022-07-06 10:36:26 +02:00
nymkappa
acfdc8163b Index difficulty adjustments 2022-07-05 16:52:56 +02:00
nymkappa
1074d23a90 Cleanup some ops logs 2022-06-13 10:12:27 +02:00
nymkappa
be3d8b5ed9 Mining dashboard still runs fine if Bitcoin Core becomes unavailable 2022-05-27 11:26:56 +02:00
nymkappa
c402422682 Remove last trace of legacy oldestIndexedBlockTimestamp 2022-05-25 12:10:09 +02:00
Felipe Knorr Kuhn
9fbd014df9 Merge branch 'master' into nymkappa/bugfix/reindex-when-fast-forward 2022-05-23 21:08:54 -07:00
nymkappa
2a8314efc5 Move indexing logic into Indexer class 2022-05-19 16:41:14 +02:00
nymkappa
f402bfb097 Remove unescessary log 2022-05-18 15:01:24 +02:00
nymkappa
3e90650536 Add /api/v1/mining/blocks/sizes-weights/:interval API 2022-05-10 16:41:23 +02:00
nymkappa
de7c4774ec Added indexing progress indicator for hashrates, update logging 2022-05-10 15:48:21 +02:00
nymkappa
b56f110f28 Run hashrate indexing after midnight 2022-04-30 17:54:49 +09:00
nymkappa
078c7ac228 Add /api/v1/mining/blocks/fee-rates/{interval} API 2022-04-15 16:14:20 +09:00
nymkappa
bee0dbd400 Cleanup mining related backend logs 2022-04-13 16:30:49 +09:00
nymkappa
8fb488a675 Add block rewards chart 2022-04-11 20:57:13 +09:00
nymkappa
7dd0173e84 Improve mining graphs timespan selection UX 2022-04-11 18:17:36 +09:00
nymkappa
08e19a612c Add block fees graph 2022-04-11 15:32:16 +09:00
nymkappa
c4db7ec5f6 Updated pool summary page to display more info on hashrate and blocks 2022-04-05 00:36:00 +09:00
nymkappa
f393cb0839 Wrap initial query in try/catch to reset the flag upon error 2022-04-03 15:47:33 +09:00
nymkappa
2ef2a34766 Avoid parralel hashrate indexing when initial query is too slow 2022-04-03 15:47:29 +09:00
nymkappa
352ea950a2 Use mining pool slug in urls 2022-03-25 14:22:22 +09:00
nymkappa
185dddd8c7 Truncate hashrates after #1435 - Fix hashrate indexing logs 2022-03-24 07:40:03 +09:00
softsimon
dcaa7fc4e8 Last hashrate indexing check needs to be in milliseconds 2022-03-24 00:24:17 +04:00
nymkappa
a91fa797fa Merge branch 'master' into nymkappa/bugfix/hashrate-native-js-timestamp 2022-03-23 19:10:21 +09:00
nymkappa
2644f2fb07 Move reward stats to component - Add /api/v1/mining/reward-stats/{blockCount} 2022-03-23 11:54:31 +09:00
nymkappa
e5fd92b734 Most recent week was missing from indexing - Post merge fixes 2022-03-22 09:20:16 +09:00
nymkappa
74f4a6fcb4 Work using native javascript milliseconds timestamp 2022-03-22 08:44:54 +09:00
nymkappa
077177ecc4 If we have incomplete data for the day/week, don't index hashrate 2022-03-21 20:32:57 +09:00
nymkappa
33897b029f Set db connection to UTC - Fix hashrate indexing 2022-03-13 16:08:31 +01:00
nymkappa
9ccb23f651 Index weekly hashrates using last Monday midnight - Fix charts tooltip 2022-03-10 11:53:49 +01:00
nymkappa
f23f7f1cfa Cleanup empty block in api response - Update cache warmer 2022-03-08 20:46:19 +01:00
nymkappa
2b5d972e8d Only show relevant hashrate in the pool page 2022-03-08 20:46:18 +01:00
nymkappa
3d1a10cdfc Use the latest timestamp in hashrate data ticker 2022-03-06 16:57:40 +01:00
nymkappa
89411f23d8 Set connection pool timezone to UTC - Close mysql connections upon error 2022-03-06 16:44:09 +01:00
nymkappa
1ced44d970 Remove useless mining function wrapper in backend 2022-03-06 12:52:39 +01:00
nymkappa
8532d13a0d Update hashrate indexing logs 2022-03-06 12:52:39 +01:00
nymkappa
7314582dd1 Split network daily hashrate indexing and weekly pool hashrate indexing 2022-03-06 12:52:38 +01:00
nymkappa
92dc5a78d8 Make sure to reset hashrates indexing flags upon error 2022-03-05 16:25:38 +01:00
nymkappa
5f6c1c6ccf Only reset hashrate state flag after database migration - Fix weekly hashrate indexing bug 2022-03-05 13:54:07 +01:00
nymkappa
78fa3e33cd Create stacked pools historical hashrates to see dominance over time 2022-02-24 20:21:12 +09:00
nymkappa
a214c5ca20 Disable difficulty adjustment table for now until loadMore is implemented 2022-02-24 20:21:12 +09:00
nymkappa
807ef2288a Don't assume two difficulty with the same value is impossible 2022-02-22 22:53:47 +09:00