730 Commits

Author SHA1 Message Date
softsimon
7051cc8b0d Fixing high vulnerabilities 2022-01-14 16:43:56 +04:00
wiz
308f08293f 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
b2d6fbbec3 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
b93ccc925e Order by native statistics.added field for better query performances 2022-01-14 18:13:34 +09:00
softsimon
ee4c9f5727 Removing statistics cache and setting headers 2022-01-12 20:57:25 +04:00
nymkappa
de16205d1c Added missing log tags 2022-01-12 17:43:32 +09:00
nymkappa
d6d02c6d22 Sleep 10 seconds before ending the process after critical error in database migration 2022-01-12 17:26:10 +09:00
nymkappa
2fcf2f1d40 Extract all CREATE commands from transaction 2022-01-12 16:41:27 +09:00
nymkappa
3a75f578db Print database engine version when migration script starts 2022-01-12 16:06:45 +09:00
nymkappa
f565eb9976 MariaDB 10.2 does not supports CAST as FLOAT -> Replace with CAST as DOUBLE 2022-01-12 14:51:16 +09:00
nymkappa
7cfdf90bb9 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
50e828995e Refactor migrations - Wrap with TRANSACTION 2022-01-11 20:43:59 +09:00
wiz
14b1606d91 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
42681c3df5 statistics: ORDER BY id => ORDER BY added 2022-01-11 12:25:45 +09:00
wiz
fcbc3bddb4 Merge pull request #1112 from nymkappa/feature/index-added-field
INDEX 'added' in statistics table
2022-01-11 03:09:20 +00:00
nymkappa
68881df2a4 Only create INDEX 'added' when it does not already exist 2022-01-11 11:47:04 +09:00
nymkappa
6c0dd4a5b3 INDEX 'added' in statistics table 2022-01-10 19:48:29 +09:00
nymkappa
330001a879 Apply AVG() on vbytes_per_second - Cap extreme vbytes_per_second values 2022-01-10 18:52:56 +09:00
softsimon
bf33319081 Refactoring the Liquid and LiquidTestnet check to a common function. 2021-12-31 02:28:40 +04:00
softsimon
331e3b4c3e Fix backend support for 'liquidtestnet' network 2021-12-31 01:26:45 +04:00
wiz
a2b1669f94 Merge pull request #1052 from mempool/simon/liquid-testnet
Adding Liquid Testnet as frontend option
2021-12-29 23:34:19 +00:00
softsimon
c36ff22d68 Support for Test Liquid Native Asset 2021-12-29 00:40:55 +04:00
nymkappa
2cf2c16f34 Increase graphs data resolution 2021-12-26 17:51:38 +09:00
softsimon
429db9e1cf Merge branch 'master' into simon/database-migration-feature
# Conflicts:
#	backend/src/index.ts
2021-12-24 00:26:33 +04:00
wiz
c1c188c870 Merge pull request #1010 from mempool/simon/liquid-icons-api
Liquid icons api
2021-12-23 12:28:54 +00:00
nymkappa
9c34a1ddb0 Switch the 24h chart to 1 min data ticks 2021-12-22 23:01:32 +09:00
softsimon
401ba3e9e7 Adding sync external assets feature. 2021-12-21 02:00:50 +04:00
softsimon
b921a32c20 Adding icons.json to .gitignore 2021-12-20 04:01:40 +04:00
softsimon
59df84b638 Changing API path and updating API Docs for asset icons. 2021-12-20 04:01:04 +04:00
softsimon
25e2408d02 Liquid icons api 2021-12-19 22:09:49 +04:00
softsimon
be8b15906e Correcting minor interface typing error 2021-12-16 04:53:27 +04:00
nymkappa
d12b1f593c Update graph tick intervals - Hide label in zoom component - Show hour on 1y graphs 2021-12-14 16:33:17 +09:00
softsimon
dbd0901641 Automated database creation and migration
fixes #1002
2021-12-13 11:32:04 +04:00
nymkappa
e40368af76 Doubled the data points for 1W and 3Y to improve resolution 2021-12-13 14:31:34 +09:00
nymkappa
97f983292e Use avg() mysql value for timespan between [24h, 6m] 2021-12-11 19:15:20 +09:00
nymkappa
ca394cb128 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
b924725ea2 Remove test code 2021-12-11 15:43:20 +09:00
nymkappa
ba05aef04c Merge branch 'master' into bug/improve-x-axis-intervals 2021-12-11 15:32:10 +09:00
nymkappa
95c7d17987 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
26f5410c1f Use time for xAxis type and fix the mempool tooltip accordingly 2021-12-11 00:04:20 +09:00
nymkappa
6668072041 Use "natural" intervals for x-axis in charts 2021-12-09 22:04:23 +09:00
softsimon
6a03539fc9 Upgrading backend libraries 2021-12-09 13:24:29 +04:00
wiz
e03d75e3ac Move npm deps in package.json to fix npm install --prod 2021-12-07 10:42:06 +00:00
softsimon
19cb3e216d Display missing taproot inner script
fixes #973
2021-12-06 00:27:14 +04:00
wiz
f454a84d7a 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
c87639ac04 Handle database disabled config when running Liquid
fixes #962
2021-11-30 10:59:10 +04:00
softsimon
ef96250b49 Remodeling how historical fees are stored and presented.
fixes #908
2021-11-29 23:31:01 +04:00
wiz
b21520b577 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
a3e60deece Post TX API for HTML forms 2021-11-18 17:25:48 +04:00
softsimon
df089e00fb Handle recent difficulty adjustment estimate gracefully
fixes #927
2021-11-17 13:46:48 +04:00