643 Commits

Author SHA1 Message Date
Antoni Spaanderman
dfa614ff25 Completely rewrote convertScriptSigAsm
it now gives identical output to esplora, tested with the following TXs (testnet):

88710a9a6751827490f260e307757543f533c0f18bcd6865794713d263d5f5a4
446b2aad074de94efa28a1e82d2e6016dcb8a8ca38aca1a5a8eac6ef54e56a2e
4cfc410092e9514c14f48b61e20d2d3baf540ae7e981a821dd8c05dd4b7cd591
4b55dde38173174ab09e5571ebffffca798ba11143d28b9770600ff376dc778a
2022-04-03 21:41:12 +02:00
softsimon
017999a4fc Merge pull request #1487 from mempool/nymkappa/bugfix/invalid-pool-handling
Send 404 when accessing non existing mining pool
2022-04-03 17:37:09 +04:00
softsimon
06844fbfbb Merge pull request #1498 from mempool/nymkappa/bugfix/avoid-duplicated-indexing
Avoid parralel hashrate indexing when initial query is too slow
2022-04-03 15:57:43 +04:00
softsimon
698bc9759d Correcting wrong or missing op_codes display
fixes #1210
2022-04-03 13:59:26 +04:00
nymkappa
74ce91497f Wrap initial query in try/catch to reset the flag upon error 2022-04-03 15:47:33 +09:00
nymkappa
71d0ba911e Avoid parralel hashrate indexing when initial query is too slow 2022-04-03 15:47:29 +09:00
softsimon
cafd991fa2 Merge pull request #1488 from mempool/nymkappa/feature/testnet-signet-empty-pool-addresses
Return empty pool addresses on testnet and signet
2022-04-03 01:13:35 +04:00
nymkappa
c71e79ee05 Mining stats does not depends on the websocket blocks number anymore 2022-04-01 12:41:25 +09:00
nymkappa
63624a9054 Remove unfiltered using input from log 2022-03-31 18:35:03 +09:00
nymkappa
de4c205ecb /api/v1/mining/difficulty/{interval} is not used 2022-03-30 19:46:17 +09:00
nymkappa
8dc030021a Return empty pool addresses on testnet and signet 2022-03-30 16:49:28 +09:00
nymkappa
d3ee75364b Send 404 when accessing non existing mining pool 2022-03-30 16:27:17 +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
softsimon
627adec8b0 npm audit fix 2022-03-27 14:26:06 +04:00
nymkappa
3cc3291ceb Merge branch 'master' into nymkappa/feature/pool-slug-url 2022-03-26 12:08:39 +09:00
nymkappa
3096e0f577 Use mining pool slug in urls 2022-03-25 14:22:22 +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
2d8a8ae4a1 Truncate hashrates after #1435 - Fix hashrate indexing logs 2022-03-24 07:40:03 +09:00
softsimon
f3ed281ac6 Last hashrate indexing check needs to be in milliseconds 2022-03-24 00:24:17 +04:00
wiz
3d1ce26162 Merge branch 'master' into fix_git_commit_error 2022-03-23 19:49:04 +00:00
Felipe Knorr Kuhn
4fc437b19f Fix empty revision case 2022-03-23 12:33:15 -07:00
Felipe Knorr Kuhn
43aabbbf79 Copy the git commit hash logic to the backend 2022-03-23 12:17:23 -07:00
nymkappa
56be4e0832 Merge branch 'master' into nymkappa/bugfix/hashrate-native-js-timestamp 2022-03-23 19:10:21 +09:00
nymkappa
87df750f16 Move reward stats to component - Add /api/v1/mining/reward-stats/{blockCount} 2022-03-23 11:54:31 +09:00
nymkappa
ed75a2dc6b Most recent week was missing from indexing - Post merge fixes 2022-03-22 09:20:16 +09:00
nymkappa
5d2d717ee2 Work using native javascript milliseconds timestamp 2022-03-22 08:44:54 +09:00
nymkappa
0f4dc98ccf If we have incomplete data for the day/week, don't index hashrate 2022-03-21 20:32:57 +09:00
nymkappa
fa574f6d73 mempool.space/.../pools.json => raw.githubusercontent.com/.../pools.json 2022-03-17 16:07:58 +01:00
softsimon
ebad5f448a Merge branch 'master' into difficulty 2022-03-17 11:43:29 +01:00
nymkappa
671c25870c Fix pagination on /mining/blocks 2022-03-16 21:00:40 +01:00
nymkappa
32f38cddba Fix pool get blocks API undefined start block behavior 2022-03-16 20:19:39 +01:00
nymkappa
36a83812b4 Updated blocks list in /pool/{id} page 2022-03-16 18:12:02 +01: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
2c431d5df5 Optimize RPC calls 2022-03-15 21:16:02 +01:00
Antoni Spaanderman
7183b588aa fix and improve block time predictions
dce775e but then on the backed after refractor #1352
2022-03-15 20:39:25 +01:00
softsimon
21cbea9e0a Merge node-bitcoin into the project 2022-03-15 14:44:31 +01:00
softsimon
45206ea90e Difficulty adjustment refactor
fixes #1157
2022-03-14 16:48:59 +01:00
wiz
5a04ffd128 Merge pull request #1358 from mempool/wiz/increase-default-indexing-blocks-amount
Increase default INDEXING_BLOCKS_AMOUNT by 10x to 11000 blocks
2022-03-14 13:15:54 +00:00
wiz
d8ac35027e Cleanup MySQL unix socket code and add to sample config 2022-03-14 13:11:04 +00:00
Djuri Baars
320ce82885 sed and config fix for MySQL socket, accept CLA for @dsbaars 2022-03-14 13:45:50 +01:00
Djuri Baars
bc729dc6f4 Add MySQL socket support 2022-03-14 13:45:34 +01:00
nymkappa
2900374bc8 Remove unnecessary migration version 15 2022-03-13 16:08:33 +01:00
nymkappa
24310d0c8f Use bitcoin RPC getblock because esplora returns int for difficulty - Fix some css in mining dashboard 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
wiz
398dbb5e98 Increase default INDEXING_BLOCKS_AMOUNT by 10x to 11000 blocks 2022-03-13 13:57:20 +00:00
nymkappa
112880f332 Add pagination on /mining/blocks 2022-03-12 16:49:15 +01:00