980 Commits

Author SHA1 Message Date
nymkappa
94decf7d76 Reverts part of 6f25ecd98d9fdf1079dd550ecde4162ebe8d62d5 2022-02-17 18:08:00 +09:00
nymkappa
2add7fe7f4 Database schema version 6 truncate the blocks table 2022-02-17 18:07:59 +09:00
nymkappa
c0082547c8 When blocks need re-indexing, truncate the table 2022-02-17 18:02:55 +09:00
nymkappa
ad73e14db9 Add difficulty chart timespan selection 2022-02-17 09:41:05 +09:00
nymkappa
09f8490601 Create difficulty chart component 2022-02-16 21:20:28 +09:00
nymkappa
11d771e477 Cleanup blocks/pools fields data type - Index more block data 2022-02-16 15:22:55 +09:00
nymkappa
7acc0b17af Merge branch 'master' into feature/pool-stats-page 2022-02-15 20:42:06 +09:00
nymkappa
de276c81e0 Provide a way to completely disable block indexing and mining menu 2022-02-15 19:51:26 +09:00
nymkappa
9ed500fe96 Don't wait for 100% mempool sync before starting block indexing 2022-02-14 17:57:55 +09:00
nymkappa
61f15a1c86 Revert "Merge pull request #1240 from nymkappa/feature/mempool-sync-threshold"
This reverts commit 2f921f4cc73994cc9ea9c317c8897de0d1881340, reversing
changes made to 877be47e5be03e31b25cc12fbe2ee45be881e5d8.
2022-02-14 17:57:03 +09:00
nymkappa
690f33843c Fix block link in pool page - Click on chart slice open pool page 2022-02-14 14:08:33 +09:00
nymkappa
e3e3e9f02e Mining pool detail page draft PoC 2022-02-14 14:08:30 +09:00
nymkappa
6f18a5f1b6 Added mining/pool/:poolId and mining/pool/:poolId/:interval APIs 2022-02-14 14:08:10 +09:00
Antoni Spaanderman
8902107663 implement /api/mempool 2022-02-13 13:52:04 +01:00
Antoni Spaanderman
44173ad5b6 Merge branch 'master' into regtest-1 2022-02-12 12:28:37 +01:00
nymkappa
06833264ff Remove fields that won't be used in the frontend for now 2022-02-12 20:16:51 +09:00
nymkappa
8e2f7ac91f Improve block indexing logging 2022-02-10 23:02:12 +09:00
nymkappa
a79609ff5c Added /api/v1/blocksExtras endpoint 2022-02-10 22:11:10 +09:00
nymkappa
991c964766 Consider we're synced with the mempool if we cached 99% of pending txs 2022-02-10 19:19:54 +09:00
Antoni Spaanderman
47628303e3 Merge branch 'master' into regtest-1 2022-02-09 10:42:23 +01:00
nymkappa
c883f7803e Remove debug return which break the UX the first time we open mempool 2022-02-08 11:20:19 +09:00
wiz
d4cb6cd445 Merge branch 'master' into fetch_conversion_rates_over_tor 2022-02-06 07:53:59 +00:00
Felipe Knorr Kuhn
975ec64054 Change fiat conversion logs to DEBUG 2022-02-05 15:38:03 -08:00
Felipe Knorr Kuhn
ff20316d2e Rename PRICENODE to PRICE_DATA_SERVER 2022-02-05 07:58:35 -08:00
Felipe Knorr Kuhn
78090a9676 Make the Currency Conversion Service URLs configurable and log when queried 2022-02-04 22:48:16 -08:00
Antoni Spaanderman
00f511cec0 Merge branch 'master' into regtest-1
for cla bot
2022-02-04 12:34:42 +01:00
nymkappa
835ccce5b6 Renamed extra to extras 2022-02-04 19:28:00 +09:00
Felipe Knorr Kuhn
e6a318d310 Query conversion rates service over clearnet or Tor with mempool User-Agent 2022-02-03 23:23:57 -08:00
nymkappa
a49cc9a2fa Move our custom fields to a BlockExtension sub object of the IEsploraApi.Block interface 2022-02-04 12:51:45 +09:00
softsimon
63fd1ec639 Merge branch 'master' into genesis-outspend 2022-02-03 13:48:19 +04:00
nymkappa
e3696bca61 Fixes post rebase 2022-01-28 15:01:24 +09:00
nymkappa
6e61de3a96 Small improvements on the mining page UX
- INDEXING_BLOCKS_AMOUNT = 0 disable indexing, INDEXING_BLOCKS_AMOUNT = -1 indexes everything
- Show only available timespan in the mining page according to available datas
- Change default INDEXING_BLOCKS_AMOUNT to 1100

Don't use unfiltered mysql user input

Enable http cache header for mining pools (1 min)
2022-01-28 15:01:24 +09:00
nymkappa
2c31fe6328 Move block indexing start logic in blocks.ts 2022-01-28 15:01:23 +09:00
nymkappa
7188d0d55d Added MEMPOOL.INDEXING_BLOCKS_AMOUNT in the config (default 432 blocks) 2022-01-28 15:01:23 +09:00
nymkappa
ae379f1af4 Wrap block indexing into a try/catch since we don't use async when calling that function 2022-01-28 15:01:22 +09:00
nymkappa
045141d16d Don't try to identify the mining pool on liquid/bisq 2022-01-28 15:01:21 +09:00
nymkappa
8b9e3e0ea1 Import pools file for testnet and signet as well - Added missing express routes 2022-01-28 15:01:21 +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
b567c0ad43 Add difficulty adjustment in mining page + Fix pools table on mobile 2022-01-28 14:52:12 +09:00
nymkappa
8d406a40e5 Add pie chart and rewrite the pool ranking component 2022-01-28 13:54:59 +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
5ca98af7d1 Generate mining basic pool ranking (sorted by block found) for a specified timeframe 2022-01-28 13:52:35 +09:00
nymkappa
4646cc6df3 Refactor blocks.ts and index 10k block headers at launch 2022-01-28 13:51:14 +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
wiz
0ac558fc0d Merge pull request #1163 from nymkappa/feature/pools-migration
Mining dashboard (1/2) - Import mining pools into the database - Increment db schema to 3
2022-01-25 06:27:10 +00:00
nymkappa
675ea25880 Wrap statistics db ops with try/catch 2022-01-24 16:22:38 +09:00
nymkappa
3528ca35bd Make sure to wait for all mining pools queries before continuing 2022-01-24 14:34:03 +09:00