Commit Graph

547 Commits

Author SHA1 Message Date
nymkappa
b8e40494aa
Remove fields that won't be used in the frontend for now 2022-02-12 20:16:51 +09:00
nymkappa
ef43da05c9
Improve block indexing logging 2022-02-10 23:02:12 +09:00
nymkappa
fac49d0b98
Added /api/v1/blocksExtras endpoint 2022-02-10 22:11:10 +09:00
softsimon
b7f93a5726
Merge branch 'master' into feature/mempool-sync-threshold 2022-02-10 16:28:05 +04:00
softsimon
98d819b3d2
Merge branch 'master' into bugfix/fix-duplicate-indexing 2022-02-10 16:23:00 +04:00
nymkappa
af02e9b533
Consider we're synced with the mempool if we cached 99% of pending txs 2022-02-10 19:19:54 +09:00
softsimon
4e076566db
Merge branch 'master' into bugfix/remove-debug-return 2022-02-09 17:13:13 +04:00
Antoni Spaanderman
8e0394e837
Merge branch 'master' into regtest-1 2022-02-09 10:42:23 +01:00
nymkappa
f9a6110c69
Remove debug return which break the UX the first time we open mempool 2022-02-08 11:20:19 +09:00
wiz
4b871468bc
Merge branch 'master' into bugfix/fix-duplicate-indexing 2022-02-07 14:55:38 +00:00
Antoni Spaanderman
62990a95f8
Merge branch 'master' into log-priority
i first forgot to fetch upstream in github, conflicts are fixed
2022-02-07 09:15:42 +01:00
Antoni Spaanderman
5c4f6d6ada
Merge branch 'master' into log-priority 2022-02-07 08:59:01 +01:00
softsimon
cd88692d3d
Changing Asset proxy redirects to liquid.network 2022-02-07 03:34:16 +04:00
softsimon
4c2c6396ba
Renaming assets-group to assets/group 2022-02-07 03:34:15 +04:00
softsimon
2e5c8bdfd3
Featured assets and asset groups 2022-02-07 03:34:14 +04:00
wiz
aae780de6e
Merge branch 'master' into fetch_conversion_rates_over_tor 2022-02-06 07:53:59 +00:00
Felipe Knorr Kuhn
4afeb3998a
Change fiat conversion logs to DEBUG 2022-02-05 15:38:03 -08:00
Felipe Knorr Kuhn
6b2900345a
Rename PRICENODE to PRICE_DATA_SERVER 2022-02-05 07:58:35 -08:00
Felipe Knorr Kuhn
ee7f8d8d18
Reduce currency rates polling interval from 1 hour to 10 minutes 2022-02-05 00:33:16 -08:00
nymkappa
12b53d9ace
Duplicated db blocks insertion attempts are expected 2022-02-05 15:50:57 +09:00
Felipe Knorr Kuhn
452375aaf7
Make the Currency Conversion Service URLs configurable and log when queried 2022-02-04 22:48:16 -08:00
Antoni Spaanderman
d08d2a16d3
Merge branch 'master' into regtest-1
for cla bot
2022-02-04 12:34:42 +01:00
Antoni Spaanderman
9e9837133b
Merge branch 'master' into log-priority
fix conflicts in backend/src/config.ts and backend/mempool-config.sample.json
2022-02-04 12:32:08 +01:00
nymkappa
456bd5a18e
Renamed extra to extras 2022-02-04 19:28:00 +09:00
Felipe Knorr Kuhn
b1dde4d8b1
Query conversion rates service over clearnet or Tor with mempool User-Agent 2022-02-03 23:23:57 -08:00
nymkappa
9f0b09295d
Move our custom fields to a BlockExtension sub object of the IEsploraApi.Block interface 2022-02-04 12:51:45 +09:00
softsimon
319f646fe2
Merge branch 'master' into genesis-outspend 2022-02-03 13:48:19 +04:00
nymkappa
e48a2f73e4
Replaced /mining/pools?interval=X by /mining/pools/X 2022-02-02 19:03:07 +09:00
nymkappa
9df490373b
Fixes post rebase 2022-01-28 15:01:24 +09:00
nymkappa
6ebbc5667d
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
d66bc57165
Move block indexing start logic in blocks.ts 2022-01-28 15:01:23 +09:00
nymkappa
647f12ffaa
Added MEMPOOL.INDEXING_BLOCKS_AMOUNT in the config (default 432 blocks) 2022-01-28 15:01:23 +09:00
nymkappa
a271c39ba8
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
f8f9108ae1
Polish mining page UI
Make sure to wait for all mining pools queries before continuing
2022-01-28 15:01:22 +09:00
nymkappa
40e529ece7
Don't try to identify the mining pool on liquid/bisq 2022-01-28 15:01:21 +09:00
nymkappa
df960ab9ba
Import pools file for testnet and signet as well - Added missing express routes 2022-01-28 15:01:21 +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
b8410f00d9
Fix xxxWindowPreference management 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
b9a047b22d
Add difficulty adjustment in mining page + Fix pools table on mobile 2022-01-28 14:52:12 +09:00
nymkappa
0a267affaf
Add pie chart and rewrite the pool ranking component 2022-01-28 13:54:59 +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
bfe9f99c35
Generate mining basic pool ranking (sorted by block found) for a specified timeframe 2022-01-28 13:52:35 +09:00
nymkappa
37031ec913
Refactor blocks.ts and index 10k block headers at launch 2022-01-28 13:51:14 +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
wiz
6ad0344ea5
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
a805c86697
Wrap statistics db ops with try/catch 2022-01-24 16:22:38 +09:00
nymkappa
1322298a06
Make sure to wait for all mining pools queries before continuing 2022-01-24 14:34:03 +09:00
Antoni Spaanderman
3ceab1493e
add log priority option for stdout log 2022-01-23 12:20:32 +01:00
Antoni Spaanderman
30632e9e11
fix error with invalid chaintips 2022-01-22 15:13:10 +01:00
Antoni Spaanderman
e8986e5fdc
stop for loop after genesis block
prevHash == undefined for the genesis block
2022-01-20 19:24:30 +01:00
nymkappa
87175869dd
Fix typescript miss use 2022-01-20 23:31:32 +09:00
nymkappa
a1a2e9363f
Make sure to release all db connections 2022-01-20 23:07:20 +09:00
nymkappa
19a564062b
Add pools.json file in default config.ts - Handle file exception - Only import pools for MAINNET 2022-01-20 22:59:10 +09:00
nymkappa
8d1cc40459
Fix add 'Unknown' pool logic 2022-01-20 16:56:25 +09:00
nymkappa
1210643e8e
Fix linter issues and typo 2022-01-20 16:34:14 +09:00
nymkappa
979c52d3c4
Add pools.json to EXTERNAL_ASSETS - Now supports updating the table 2022-01-20 13:53:08 +09:00
Antoni Spaanderman
3608fa6f19
load blocks with height under INITIAL_BLOCKS_AMOUNT 2022-01-19 16:58:56 +01:00
nymkappa
2848f56c2b
Import mining pools into the database - Increment db schema to 3 2022-01-19 18:50:52 +09:00
Antoni Spaanderman
fac40b1515
rethrow the error if it wasnt the genesis coinbase 2022-01-19 08:27:51 +01:00
Antoni Spaanderman
63939ddbe4
outputs of genesis coinbase are always unspent 2022-01-18 22:25:38 +01:00
Antoni Spaanderman
d4719245f5
dont use hardcoded genesis coinbase and block hash
fixes #1128
2022-01-18 21:55:09 +01:00
nymkappa
a570812d70
Insert zeroed statistics in the database if the mempool is empty 2022-01-16 16:20:45 +09:00
softsimon
2a16dc5a7f
Utilize gettxout to display spent/outspent
fixes #1088
2022-01-15 22:09:04 +04:00
softsimon
debcd1808e
Displaying translators as twitter photos 2022-01-15 04:19:50 +04:00
softsimon
85f471ad08
Adding translators to About page 2022-01-15 04:01:53 +04:00
wiz
e7f2f75b05
Merge pull request #1141 from nymkappa/feature/remove-unused-data-statistics
Remove unused fields from statistics queries since we don't use them in the front end
2022-01-14 10:39:07 +00:00
nymkappa
5b39ad2130
Remove id, unconfirmed_transactions and tx_per_second from the statistics queries since we don't use them in the front end 2022-01-14 19:21:54 +09:00
nymkappa
8797ef261f
Order by native statistics.added field for better query performances 2022-01-14 18:13:34 +09:00
softsimon
29581f325f
Removing statistics cache and setting headers 2022-01-12 20:57:25 +04: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
cce49bdb7e
MariaDB 10.2 does not supports CAST as FLOAT -> Replace with CAST as DOUBLE 2022-01-12 14:51:16 +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
wiz
9b6d679739
Merge pull request #1119 from nymkappa/feature/order-statistics-by-added
statistics: `ORDER BY id` => `ORDER BY added`
2022-01-11 03:38:24 +00:00
nymkappa
b1df17d7a3
statistics: ORDER BY id => ORDER BY added 2022-01-11 12:25:45 +09:00
wiz
cee52e69f1
Merge pull request #1112 from nymkappa/feature/index-added-field
INDEX 'added' in statistics table
2022-01-11 03:09:20 +00: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
nymkappa
45542d5f06
Apply AVG() on vbytes_per_second - Cap extreme vbytes_per_second values 2022-01-10 18:52:56 +09:00
softsimon
6ab79b3c35
Refactoring the Liquid and LiquidTestnet check to a common function. 2021-12-31 02:28:40 +04:00
softsimon
350b4922da
Fix backend support for 'liquidtestnet' network 2021-12-31 01:26:45 +04:00
wiz
7ce1cc5103
Merge pull request #1052 from mempool/simon/liquid-testnet
Adding Liquid Testnet as frontend option
2021-12-29 23:34:19 +00:00
softsimon
504f46cad9
Support for Test Liquid Native Asset 2021-12-29 00:40:55 +04:00
nymkappa
bc8104eeb4
Increase graphs data resolution 2021-12-26 17:51:38 +09:00
softsimon
91e30fbc3c
Merge branch 'master' into simon/database-migration-feature
# Conflicts:
#	backend/src/index.ts
2021-12-24 00:26:33 +04:00
wiz
5b22e2a000
Merge pull request #1010 from mempool/simon/liquid-icons-api
Liquid icons api
2021-12-23 12:28:54 +00:00
nymkappa
e4a9fd06b4
Switch the 24h chart to 1 min data ticks 2021-12-22 23:01:32 +09:00
softsimon
5845f2380e
Adding sync external assets feature. 2021-12-21 02:00:50 +04:00
softsimon
b1c9334119
Changing API path and updating API Docs for asset icons. 2021-12-20 04:01:04 +04:00
softsimon
a4569788f8
Liquid icons api 2021-12-19 22:09:49 +04:00
softsimon
815fb62e7d
Correcting minor interface typing error 2021-12-16 04:53:27 +04:00
nymkappa
28d3f190ff Update graph tick intervals - Hide label in zoom component - Show hour on 1y graphs 2021-12-14 16:33:17 +09:00
softsimon
2281116504
Automated database creation and migration
fixes #1002
2021-12-13 11:32:04 +04:00
nymkappa
92d745168c Doubled the data points for 1W and 3Y to improve resolution 2021-12-13 14:31:34 +09:00
nymkappa
c9f5002dc2 Use avg() mysql value for timespan between [24h, 6m] 2021-12-11 19:15:20 +09:00
nymkappa
6e4985602e Increase the number of data to be as close as possible from prod while keeping rounded intervals 2021-12-11 17:27:52 +09:00
nymkappa
7e7dbdbaf2 Remove test code 2021-12-11 15:43:20 +09:00
nymkappa
5e729373bb Use date interval so we leave mysql handle the number of days in a month etc 2021-12-11 15:26:02 +09:00
nymkappa
cbd187d06f Use time for xAxis type and fix the mempool tooltip accordingly 2021-12-11 00:04:20 +09:00
nymkappa
00352d7e36 Use "natural" intervals for x-axis in charts 2021-12-09 22:04:23 +09:00
softsimon
10a110e682
Display missing taproot inner script
fixes #973
2021-12-06 00:27:14 +04:00
wiz
1ce05a3ac9
Merge pull request #961 from mempool/simon/remodeling-fee-bands
Remodeling how historical fees are stored and presented.
2021-12-03 02:37:33 +00:00
softsimon
feb8e35ec3
Handle database disabled config when running Liquid
fixes #962
2021-11-30 10:59:10 +04:00
softsimon
79e44479e9
Remodeling how historical fees are stored and presented.
fixes #908
2021-11-29 23:31:01 +04:00
wiz
9bef7da210
Merge pull request #881 from mempool/simon/tx-push-endpoint
Post TX API for HTML forms
2021-11-18 22:40:55 +09:00
softsimon
6f6b2a4355
Post TX API for HTML forms 2021-11-18 17:25:48 +04:00
softsimon
d534c42c47
Handle recent difficulty adjustment estimate gracefully
fixes #927
2021-11-17 13:46:48 +04:00
softsimon
26a540a57c
Display lower <1 s/vB fee rate tiers for Liquid
fixes #859
2021-11-10 00:04:58 +04:00
Miguel Medeiros
c95f75254b
Add 2y and 3y statistics time span. 2021-11-01 22:06:10 -03:00
softsimon
dd6c26b079
Handle new type of Electrum Server error.
fixes #872
2021-10-23 11:46:38 +04:00
softsimon
4046c3176f
Broadcast transaction form
fixes #878
2021-10-19 17:10:30 +04:00
softsimon
822c840e54
Use MEMPOOL_BLOCKS_AMOUNT config in the frontend
fixes #852
2021-10-05 04:37:24 +04:00
softsimon
86c877c8e9
Adding POST /tx API to bitcoind mode
fixes #777
2021-09-26 22:46:23 +04:00
softsimon
f3c8e2134b
Handle errors gracefully. 2021-09-20 01:02:07 +04:00
softsimon
0d67bc36ee
Refactoring the MINFEE node configuration into new configs. 2021-09-19 02:40:16 +04:00
softsimon
aa39bbd091
Elements blockchain parser. Save all peg in/out i the database. 2021-09-19 02:26:44 +04:00
softsimon
641d2ad028
Refactoring Bitcoin RPC client implementation 2021-09-18 13:18:47 +04:00
softsimon
138f6e4e39
Update backend/src/api/bitcoin/bitcoin-api.interface.ts
Co-authored-by: Miguel Medeiros <miguel@miguelmedeiros.com.br>
2021-09-17 19:22:15 +04:00
softsimon
3e788ecbf9
Handle changes to address RPC api in bitcoin core 22
fixes #778
2021-09-17 19:22:15 +04:00
wiz
63a3568481
Merge pull request #768 from mempool/simon/liquid-fetch-unconfidential
Liquid: Display unconfidential address and fix tracking
2021-09-08 06:37:24 +09:00
softsimon
25bd33f7da
validate-address API should be there both in esplora and bitcoind mode. 2021-09-07 13:13:29 +04:00
softsimon
2d007b9100
Liquid: Display unconfidential address and fix tracking
fixes #761
2021-09-06 10:20:31 +04:00
softsimon
b71330c606
Lowercase Segwit uppercase addresses for tracking matching. 2021-09-05 00:30:24 +04:00
softsimon
1277e58e68
Updated address regex to handle all types of addresses.
fixes #301
fixes #750
2021-09-04 23:21:15 +04:00
softsimon
0b077d6fda
Handle string error messages.
fixes #763
2021-09-04 01:32:36 +04:00
softsimon
ec12f21113
Backend: Bumping Typescript version to 4.4.2 (#748)
* Backend: Bumping Typescript version to 4.4.2

* Replacing any types with instanceOf checks.
2021-08-31 15:09:33 +03:00
Priyansh
2e8ecc7277
Made Price feed update configurable (#751) 2021-08-29 22:30:11 +03:00
Miguel Medeiros
05936f82bd Refactor getDifficultyChange endpoint. 2021-08-25 21:14:01 -03:00
softsimon
53730920e3
Bugfix: Mempool block sizes were mixing up vsize and weight. 2021-08-14 03:24:31 +03:00
softsimon
9d75c47792
Merge branch 'master' into simon/configurable-main-module
# Conflicts:
#	frontend/src/app/components/api-docs/api-docs.component.ts
#	frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts
#	frontend/src/app/components/master-page/master-page.component.html
#	frontend/src/app/components/mempool-blocks/mempool-blocks.component.html
#	frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts
#	frontend/src/app/dashboard/dashboard.component.html
2021-08-13 17:16:14 +03:00
softsimon
8c29395533
Resume tx tracking when network goes offline. (#702)
fixes #609
2021-08-09 13:01:29 +03:00
softsimon
dbd205b73f
Fix: Block fee data wasn't visible unless at least 2 transactions. 2021-08-08 14:17:18 +03:00
softsimon
5dc0f4e270
Use actual MEMPOOL_BLOCKS_AMOUNT value for amount of mempool blocks. 2021-08-07 03:07:32 +03:00
softsimon
0bb9247609
Handle 0.1 sat/vB base fee on the dashboard and backend. 2021-08-05 02:03:52 +03:00
softsimon
ef7dd6c8fb
Merge branch 'master' into simon/configurable-main-module 2021-08-03 18:41:43 +03:00
softsimon
8eb70416da
Removing "raw block". 2021-08-03 18:15:33 +03:00
Priyansh
43e222b9df
Raw Hex of Objects in Details Tab #616 (#682)
* Added Block Hex in Details

* Added Raw Tx in Transaction Details

* Backend Updates
2021-08-03 14:27:02 +03:00
wiz
f28a85f91b
Hush a noisy bisq error message down to info 2021-08-02 16:57:49 +09:00
softsimon
15903faf49
Merge branch 'master' into simon/configurable-main-module
# Conflicts:
#	frontend/src/app/components/blockchain/blockchain.component.ts
2021-08-02 00:24:09 +03:00
softsimon
4895343d4e
Perform a blockchain sync check before updating initial difficulty ad… (#677)
* Perform a blockchain sync check before updating initial difficulty adjustment.

fixes #603

* Updating logger messages.
2021-08-01 15:49:26 +03:00
softsimon
1908b1a5a6
Adding configuration for blocks and mempool blocks amount. 2021-07-31 17:56:10 +03:00
softsimon
037f472f8c
Make Block Weight Unit configurable in frontend+backend. 2021-07-31 17:30:35 +03:00
softsimon
037d6a75ea
Adding previous difficulty retarget to the difficulty adjustment api. (#652)
refs #640
2021-07-23 14:35:04 +03:00
softsimon
cb90b09a0e
Changing block header link to icon. Setting api response header to match electrs. 2021-07-19 02:34:01 +03:00