Commit Graph

928 Commits

Author SHA1 Message Date
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
ad2dcc46e4
Added pool hashrate chart 2022-03-08 20:46:14 +01:00
Antoni Spaanderman
71402f21c6
revert "add network regtest" 1f0ae60 2022-03-08 19:59:18 +01:00
Antoni Spaanderman
d179a563e4
Merge branch 'master' into regtest-1 2022-03-08 19:45:03 +01:00
softsimon
8267344cdc
Don't push full RBF-transactions to prevent old states. 2022-03-08 18:54:49 +01:00
softsimon
b15de021f7
Fixing bug where RBF wasn't detected when using bitcoind 2022-03-08 18:39:53 +01:00
softsimon
f85771e03f
Replace by fee storage
fixes #1222
2022-03-08 18:39:53 +01:00
nymkappa
26ee4204ac
Index blocks.blockTimestamp 2022-03-08 17:10:29 +01:00
softsimon
6f3443faba
UTXO spent tracking refactor
refs #1301
2022-03-07 19:45:09 +01:00
softsimon
beae88778b
Merge pull request #1308 from nymkappa/bugfix/fix-db-migration
Truncate hashrates table only for bitcoin (db migration v9)
2022-03-07 15:57:20 +01:00
nymkappa
32d66c03c6
Truncate hashrates table only for bitcoin (db migration v9) 2022-03-07 15:56:07 +01:00
softsimon
00ad58c26d
Merge branch 'master' into simon/track-utxos 2022-03-07 15:12:36 +01:00
softsimon
059e82a805
UTXO spent tracking
fixes #1301
2022-03-06 18:27:13 +01:00
nymkappa
2570dbfab4
Fix incorrect state naming 2022-03-06 17:06:55 +01:00
nymkappa
3d1a10cdfc
Use the latest timestamp in hashrate data ticker 2022-03-06 16:57:40 +01:00
nymkappa
2a170c07d1
Remove unnecessary await 2022-03-06 16:50:59 +01:00
nymkappa
4b859eb4f6
Re-index hashrates because we have different timestamp handling 2022-03-06 16:48:14 +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
softsimon
552c717693
Merge branch 'master' into simon/address-prefix-bug 2022-03-05 17:08:23 +01:00
softsimon
8b1a0fe706
Merge branch 'master' into bugfix/stop-block-chunk-indexing-upon-error 2022-03-05 16:30:26 +01:00
nymkappa
92dc5a78d8
Make sure to reset hashrates indexing flags upon error 2022-03-05 16:25:38 +01:00
nymkappa
773ac4d44b
Pause block indexing chunk upon error and retry later 2022-03-05 15:50:48 +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
Antoni Spaanderman
e2ef58c5dd
Merge branch 'master' into regtest-1 2022-02-28 13:09:51 +01:00
softsimon
056a31fc79
Only return unique address prefix autocomplete
fixes #1290
2022-02-27 15:58:09 +03:00
nymkappa
434b60ef8b
Removed debug console.log 2022-02-25 18:17:43 +09:00
nymkappa
ec40231f93
warn on re-index - fix hash indexing state issue - cleanup ui mining 2022-02-24 20:21:14 +09: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
wiz
6c5253a7c4
Merge branch 'master' into feature/mempool-show-only-fees 2022-02-23 02:19:14 +00:00
nymkappa
c1092adfd9
Add blocks.extras.totalFees and show it in blockchain blocks component 2022-02-22 23:57:54 +09:00
nymkappa
807ef2288a
Don't assume two difficulty with the same value is impossible 2022-02-22 22:53:47 +09:00
nymkappa
8aa1fe48dc
Remove debug console.log 2022-02-22 22:04:52 +09:00
nymkappa
83a382a0cb
Merge hashrate and difficulty into one chart 2022-02-22 20:16:18 +09:00
nymkappa
e770520f0e
Add data zoom to difficulty 2022-02-22 00:26:16 +09:00
nymkappa
976017dbef
Update database migration log levels 2022-02-21 23:57:44 +09:00
nymkappa
938a978900
Make sure to try/catch indexing code in case db is not available 2022-02-21 23:46:25 +09:00
nymkappa
649ad2e859
Hashrates indexing waits for blocks indexing - Batch hashrates I/O ops 2022-02-21 17:34:07 +09:00
nymkappa
537e50c682
Reduce log spam during hashrate indexing 2022-02-21 16:54:43 +09:00
nymkappa
bb1c5d0b31
Add --reindex command line parameter to force full re-indexing 2022-02-21 16:38:18 +09:00
nymkappa
e4721e8574
Improve hashrate indexing logs 2022-02-21 14:49:00 +09:00
nymkappa
e61df324ea
Index new hashrates once every 24 hours 2022-02-21 14:48:59 +09:00
nymkappa
358604ad85
Added hashrate chart 2022-02-21 14:48:58 +09:00
nymkappa
6fe8f6fa1e
Generate daily average hashrate data 2022-02-21 14:48:57 +09:00
Antoni Spaanderman
243055ceae
Merge branch 'master' into regtest-1 2022-02-17 16:05:22 +01:00
wiz
1d26390da7
Merge branch 'master' into feature/truncate-blocks-schema-change 2022-02-17 11:18:54 +00:00
nymkappa
b18115f71a
Reverts part of 6f25ecd98d9fdf1079dd550ecde4162ebe8d62d5 2022-02-17 18:08:00 +09:00
nymkappa
b1bd6f8fdb
Database schema version 6 truncate the blocks table 2022-02-17 18:07:59 +09:00
nymkappa
15ba487ee4
When blocks need re-indexing, truncate the table 2022-02-17 18:02:55 +09:00
nymkappa
f45103e7e3
Add difficulty chart timespan selection 2022-02-17 09:41:05 +09:00
nymkappa
9fa7e58d82
Show all difficulty adjustment in a table - Need pagination 2022-02-16 22:56:06 +09:00
nymkappa
7270b1ccac
Create difficulty chart component 2022-02-16 21:20:28 +09:00
nymkappa
0c1fa2b4aa
Cleanup blocks/pools fields data type - Index more block data 2022-02-16 15:22:55 +09:00
nymkappa
5448e8c292
Merge branch 'master' into feature/pool-stats-page 2022-02-15 20:42:06 +09:00
nymkappa
ca766bf40d
Provide a way to completely disable block indexing and mining menu 2022-02-15 19:51:26 +09:00
nymkappa
fa8607c57d
[Pool page] - Parse regexes and addresses in the backend 2022-02-15 18:45:53 +09:00
nymkappa
a88d6d2fca
Don't wait for 100% mempool sync before starting block indexing 2022-02-14 17:57:55 +09:00
nymkappa
87170247bd
Revert "Merge pull request #1240 from nymkappa/feature/mempool-sync-threshold"
This reverts commit 2f921f4cc7, reversing
changes made to 877be47e5b.
2022-02-14 17:57:03 +09:00
nymkappa
f381da0f78
Show correct reward in pool stat page 2022-02-14 14:11:55 +09:00
nymkappa
09180c4f91
Renamed /mining/pool-blocks/xxx -> /mining/pool/:poolId/blocks 2022-02-14 14:08:34 +09:00
nymkappa
4f02efd7fe
Fix block link in pool page - Click on chart slice open pool page 2022-02-14 14:08:33 +09:00
nymkappa
d8e58ee622
Set reward to 0 by default until reward indexing is available 2022-02-14 14:08:33 +09:00
nymkappa
c28f3fd4b6
Disable query logger spam 2022-02-14 14:08:33 +09:00
nymkappa
e1f3c662b2
Show block reward in the pool stat page 2022-02-14 14:08:31 +09:00
nymkappa
3f55aabc53
Mining pool detail page draft PoC 2022-02-14 14:08:30 +09:00
nymkappa
b854c071d0
Added mining/pool/:poolId and mining/pool/:poolId/:interval APIs 2022-02-14 14:08:10 +09:00
Antoni Spaanderman
3a3392423d
set fee_histogram to [] 2022-02-13 16:13:46 +01:00
Antoni Spaanderman
2e1348550e
implement /api/mempool 2022-02-13 13:52:04 +01:00
Antoni Spaanderman
9c992a61c5
Merge branch 'master' into regtest-1 2022-02-12 12:28:37 +01:00
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
Felipe Knorr Kuhn
8a996cedb4
Update README, reference config files and Docker with the new SOCKS config 2022-02-03 23:21:19 -08:00
Felipe Knorr Kuhn
0a954e8bcf
Allow synthetic default imports due to the socks library 2022-02-03 23:16:30 -08:00
Felipe Knorr Kuhn
0400deacf2
Add socks-proxy-agent dependency 2022-02-03 23:14:56 -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
031f69a403
Add backend README - Backend watchers setup 2022-01-28 13:50:58 +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
wiz
9641a00bb4
Merge pull request #1151 from nymkappa/feature/save-zeroed-statistics
Insert zeroed statistics in the database if the mempool is empty
2022-01-17 19:08:35 +09:00
nymkappa
a570812d70
Insert zeroed statistics in the database if the mempool is empty 2022-01-16 16:20:45 +09:00
wiz
dbdc87eeae
Bump version number to v2.4.0-dev 2022-01-16 15:41:23 +09:00
wiz
b9067ed912
Release v2.3.0 2022-01-16 15:36:48 +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
softsimon
78c32af062
Fixing high vulnerabilities 2022-01-14 16:43:56 +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
252db109bc
Adding icons.json to .gitignore 2021-12-20 04:01:40 +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
fb152b6d7b Merge branch 'master' into bug/improve-x-axis-intervals 2021-12-11 15:32:10 +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
f7a9b691a8
Upgrading backend libraries 2021-12-09 13:24:29 +04:00
wiz
41c61ef506
Move npm deps in package.json to fix npm install --prod 2021-12-07 10:42:06 +00: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
1696623e2f
Bump version to v2.3.0-dev after shipping v2.2.2 2021-09-09 07:27:01 +09:00
wiz
251a1af442
Bump version number for v2.2.2 release 2021-09-09 07:23:36 +09: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
wiz
7e273ce63d
Bump version tags to v2.2.2-dev 2021-08-13 07:56:14 +09:00
wiz
af5e0d7cd6
Bump version to v2.2.1 2021-08-13 07:45:47 +09: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
Rishabh
2e54f4ca94
Added missing block header API (#630)
* header API frontend

* Block Header API endpoint added to Node.js backend

* updated package-lock.json

Co-authored-by: Rishabh <rishabh@Rajeshs-MacBook-Pro.local>
2021-07-19 02:26:16 +03:00
softsimon
853e2fcb8f
Minor fixes to difficulty adjustment api. 2021-07-19 00:50:09 +03:00
Priyansh
9e0a5300b0
Expose the difficulty adjustment information in an API #622 (#628)
* Added difficulty adjustment information API

* Added Difficulty API in API docs frontend

* Added link to API

* Updated the API implementation of difficulty-adjustment

* Updated API End Point in frontend

* Updated sample API response in frontend
2021-07-19 00:45:45 +03:00
softsimon
ecbd18087b
Effective fee could go below 0 due to rounding error. (#623)
fixes #606
2021-07-14 22:42:48 +03:00
softsimon
8749b8b0fa
Updating @mempool/node-bitcoin to support new methods 2021-07-13 18:43:10 +03:00
wiz
1d29fad986
Bump version to v2.2.1-dev 2021-07-03 14:49:59 -07:00
wiz
eb6db6caf3
Bump version for v2.2.0 release 2021-07-03 14:36:10 -07:00
softsimon
6be733490f
npm audit fix 2021-06-26 15:28:45 -04:00
softsimon
95d3d0feaf
Bisq transactions was listed in the wrong order.
fixes #566
2021-06-11 10:55:13 -05:00
softsimon
8fbd273733
Empty Bisq blocks was missing. (#541)
fixes #539
2021-06-06 16:07:26 -04:00
softsimon
71bfcea8a6
npm audit fix 2021-05-31 19:03:10 -04:00
softsimon
abc6b1519e
Bumping "ws" dependency to fix vulnerability. 2021-05-31 18:49:19 -04:00
softsimon
939955fb84
Round up fee estimations 2021-05-12 20:13:55 +04:00
softsimon
f20c73af7b
Update fiat price every minute instead of every hour. 2021-05-12 15:09:48 +04:00
softsimon
84b0375c0c
Fix crash issues related to new unconfirmed transactions in bitcoind mode.
fixes #391
2021-04-27 02:13:48 +04:00
softsimon
5878a2e631
Unified Bisq config 2021-04-25 02:38:46 +04:00
softsimon
b8fe7b621c
Merge branch 'master' into simon/bisq-dashboard
# Conflicts:
#	frontend/package-lock.json
#	frontend/src/app/components/master-page/master-page.component.html
2021-04-23 15:35:35 +04:00
softsimon
cdbe90c182
Only enable statistics service from node master process.
fixes #460
2021-04-19 21:39:30 +04:00
softsimon
d1b53f4c3a
Syslog priority comparison fix. 2021-04-15 21:16:56 +04:00
softsimon
cd1273981d
Syslog is now configurable with minimum priority and facility option.
fixes #135
2021-04-15 16:04:09 +04:00
softsimon
3dbddedf91
Remove 'v' from version. 2021-04-13 18:12:32 +04:00
softsimon
e255bec7ad
Updating versions to v2.2.0-dev 2021-04-13 16:53:42 +04:00
wiz
089bb38e6a
Change log priority for 'The mempool is now in sync!' message to NOTICE 2021-04-13 14:03:36 +09:00
softsimon
fcf7955d63
Merge branch 'master' into simon/bisq-dashboard
# Conflicts:
#	frontend/package-lock.json
#	frontend/package.json
2021-04-12 22:22:50 +04:00
softsimon
7a4ad0ee2f
Including gitCommit and version in frontend build. Backend now sending a backendInfo object containing commit, version and hostname. All printed on About page. 2021-04-12 22:17:13 +04:00
softsimon
7fab42baa5
Only allow one disk cache saving simultaneously, and allow for partially written cache files.
fixes #444
2021-04-12 13:21:49 +04:00
softsimon
2d9b9b5c5d
When filtering out lower fee parents, compare with effective fee instead of base fee to include a CPFP chain of transactions. 2021-04-10 21:26:05 +04:00
softsimon
db263b8db4
Proxy contributor requests. 2021-04-10 11:33:01 +04:00
softsimon
4a907f9dc6
Upgrading all front and backend dependencies, including Angular 11.
fixes #429
2021-04-07 16:18:55 +04:00
wiz
b0baf6aa0d
Merge pull request #422 from mempool/simon/corerpcminfee-catcher
Catch getMempoolInfo errors gracefully to not break general main loop
2021-04-06 16:08:20 +09:00
softsimon
8dddfe38a9
Updating getMempoolInfo defaults. 2021-04-06 11:07:38 +04:00
wiz
0f9f905fd1
Merge pull request #419 from mempool/simon/cpfp-duplicate-fix
Fix for duplicate cpfp ancestors.
2021-04-06 15:58:58 +09:00
softsimon
5914d99283
Bugfix: Ancestors are not able to increase fee of descendants
fixes #426
2021-04-05 23:45:47 +04:00
softsimon
d942cb48a5
Catch getMempoolInfo errors gracefully to not break general main loop
fixes #411
2021-04-02 11:47:13 +04:00
softsimon
4d0429b786
Fix for duplicate cpfp ancestors.
fixes #414
2021-04-02 00:30:51 +04:00
softsimon
1ae002385d
Merge branch 'simon/cpfp-frontend' into simon/bisq-dashboard
* simon/cpfp-frontend: (46 commits)
  Bugfix: Don't extend already extended transactions to not override the firstSeen property. fixes #390
  Shuffle mempool transactions before saving disk cache. (#398)
  Adding missing return after expressjs response.
  CPFP support (#395)
  Round sat/vB in fee rating tooltip. fixes #364
  Add the GNU AGPLv3 logo to About page
  Update package.json license tags
  Add recommended fee percentile config (#394)
  Fix typo in README (#392)
  Fix icon for Specter Wallet on About page
  Add link to Specter Wallet on our About page
  Add link to WARden Portfolio app as Community Integration on About page
  Delete MIT+CC license from Terms of Service, add AGPLv3 to About page
  Change mempool project license to GNU Affero General Public License v3
  Lower volume for sound effects (#385)
  Improve grammar, layout, and formatting of Terms of Service page
  Display all Project Contributors on About page using GitHub API (#382)
  Modify nginx.conf to cache HTML for 10m and static resources for 1h
  Proxy /api/v1/contributors from mempool.space, also fix HTTP headers
  Add link to Bisq's GitHub repo on About page
  ...
2021-03-21 06:12:41 +07:00
softsimon
e05ca7d691
Flag transactions for lazy deletion.
fixes #400
2021-03-21 06:06:03 +07:00
softsimon
e688948e42
Bugfix: Don't extend already extended transactions to not override the firstSeen property.
fixes #390
2021-03-19 19:10:11 +07:00
softsimon
5148de8f17
Shuffle mempool transactions before saving disk cache. (#398)
fixes #397
2021-03-19 13:47:37 +07:00
softsimon
6f1cdd0c8b
Adding missing return after expressjs response. 2021-03-18 23:53:39 +07:00
softsimon
d3c53c7406
CPFP support (#395)
* CPFP support.

fixes #5
fixes #353
fixes #360

* Use effectiveFeePerVsize for mempool statistics.

* Renaming endpoint cpfp-info to just cpfp.

* Renaming decended to BestDescendant.

* Updating language file with new strings.
2021-03-18 23:47:40 +07:00
wiz
8b5d3dabe7
Update package.json license tags 2021-03-18 16:30:10 +09:00
andrewtoth
ac4588cdab
Add recommended fee percentile config (#394) 2021-03-18 12:52:46 +07:00
softsimon
1d4ed85d50
Bisq markets: Volume and other fixes. 2021-03-10 23:02:55 +07:00
softsimon
d99fd5d59a
Bisq markets dashboard: Market backend tracking. WIP. 2021-03-05 15:38:46 +07:00
softsimon
38e866995f
Bisq markets dashboard: 24H Volume. WIP. 2021-02-28 17:18:29 +07:00
wiz
b89630953c
Merge pull request #358 from mempool/simon/fee-api-minfee
Send mempoolminfee in fee api.
2021-02-24 16:47:32 +09:00
softsimon
04c42b82f4
Renaming feeApi minimumFee and display as rounded satoshis. 2021-02-24 14:39:34 +07:00
softsimon
6ec07e5315
Re-fixing bug where high priority fee could display as lower than the medium and low fee.
fixes #278
2021-02-24 12:30:40 +07:00
softsimon
ea5dc8738c
Send mempoolminfee in fee api.
fixes #357
2021-02-24 12:26:55 +07:00
softsimon
563ae8540b
Signet support in the frontend. 2021-02-20 23:12:22 +07:00
wiz
033d1451d0
Merge pull request #343 from mempool/simon/clear-protection-config
Make clear protection timeout configurable.
2021-02-15 00:26:47 +09:00
wiz
befb192651
Reduce backend heap size setting to 2G since cache memory usage was optimized (#345)
On powerful servers, nodejs automatically sets the limit at 4GB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 4144 Mb
```

On a Raspberry Pi with 8GB RAM, nodejs automatically sets the limit at 1GB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 1048 Mb
```

On a Raspberry Pi with 4GB RAM, nodejs automatically sets the limit at 740MB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 739.4694900512695 Mb
```

After testing with manually setting the limit to 768MB, mempool starts
up fine, but crashes when saving the cache when the mempool is quite
large (over 400MB with custom bitcoin.conf setting).

So it's probably safe to reduce the 4GB limit setting to 2GB for
all devices and and just use the automatically set values, now that the
backend's disk cache memory usage was recently optimized.

However, a new npm script for `npm run start-production` will be added
so we can keep our production mempool.space servers running with a very
large bitcoin.conf mempool
2021-02-14 22:25:29 +07:00
softsimon
7489d3360a
Make clear protection timeout configurable.
fixes #335
2021-02-14 20:32:00 +07:00
softsimon
32290d1e0d
Apply suggestions from code review
Co-authored-by: wiz <j@wiz.biz>
2021-02-14 20:03:45 +07:00
softsimon
584ef87fc8
Optimized cache chunks. Default cache files to /cache directory.
fixes #341
2021-02-14 19:50:31 +07:00
softsimon
63b52b9d9b
Use mempool clear protection feature also when in bitcoind mode.
fixes #335
2021-02-14 01:04:44 +07:00
Bastien Guillaumat
20ff62779d
Re-implement Docker workflow using GitHub Actions (#326)
* Recreate a docker dir with all docker files inside and add init.sh
* Add docker/README.md with example docker-compose.xml
* Add mysql vars for mempool-config.json
* Port can be set from env var in docker-compose.xml
* Update docker-compose.xml example to use latest tag
* Remove armv7 architecture from build workflow
* Remove master git-hash file
* Remove useless ':' in sed
2021-02-10 22:51:01 +09:00
softsimon
89efd410fb
Fix for hard coded sponsor url.
refs #319
2021-02-07 03:00:02 +07:00
softsimon
eb0c20dd92
Removing sponsors code.
Support new sponsor confirmation polling.
fixes #319
2021-02-07 02:20:07 +07:00
Bastien
35f5efaa2e Fix missing mempool-config due to gitignore 2021-02-03 09:52:04 +01:00
softsimon
ed17203a5f
bitcoind: Parse witness scripts from P2SH transactions.
fixes #323
2021-02-03 13:11:14 +07:00
wiz
448cb8e264
Merge pull request #322 from bguillaumat/update-dockerization
Update dockerization
2021-02-03 13:03:44 +09:00
Bastien
6782229a3d Move docker files in subdir 2021-02-03 02:12:15 +01:00
Bastien
543fe8c735 Set all dir to be dockerized 2021-02-02 23:45:54 +01:00
wiz
03179e34fb
Merge pull request #317 from bguillaumat/add-cache-dir
Add Dockerization of Mempool v2 for Umbrel App Store
2021-02-03 03:21:22 +09:00
Bastien
2d872bda47 Update package.json && Fix start.sh script 2021-02-02 18:01:23 +01:00
Bastien
f7ff6336f2 Add CACHE_DIR var 2021-02-01 15:54:27 +01:00
softsimon
2a5a4ddac0
Hide address received/sent from address page when using electrum API.
fixes #294
2021-02-01 04:52:24 +07:00
softsimon
f3c18b152a
Moved sponsors cache creation until after diskcache is done.
refs #315
2021-01-30 22:12:22 +07:00
softsimon
35521f4871
Refactored when statistics cache from database is created.
refs #315
2021-01-30 21:40:04 +07:00
softsimon
9b9c605cbe
Upgrading mysql client lib. 2021-01-30 21:39:23 +07:00
softsimon
21d32dec41
Wait for database connection established before continuing startup.
refs #315
2021-01-30 21:09:30 +07:00
wiz
54a276439d
Increase Bisq block height divergence warning to 10 blocks for Tor issues 2021-01-30 23:02:20 +09:00
softsimon
c5c2222b8c
Increased database query timeouts
fixes #315
2021-01-30 19:20:52 +07:00
softsimon
9d317082e1
Replacing localhost with 127.0.0.1 2021-01-30 18:43:58 +07:00
softsimon
c94f004425
Adding missing default timeout on all axios requests.
fixes #314
2021-01-30 16:25:22 +07:00
softsimon
371433b2da
Fix for fee estimate not being correct when block is almost full with more projected blocks in queue.
fixes #278
2021-01-30 01:34:40 +07:00
softsimon
da533097d9
Replacing weight with vsize in transactions api to match esplora. 2021-01-28 18:24:02 +07:00
softsimon
5f1f06fecf
Don't save disk cache on exit. Handle corrupted mempool disk cache.
fixes #304
2021-01-27 01:49:11 +07:00
softsimon
b08225dab5 Readding deleted blocks api endpoint. 2021-01-27 00:33:16 +07:00
softsimon
e86b7c7258
Adding missing basic API endpoints when in bitcoind/electrum mode.
fixes #291
2021-01-25 01:09:42 +07:00
softsimon
c9e175a0cc
Always fetch at least the coinbase transaction of blocks, and throw error if failed. 2021-01-24 23:56:51 +07:00
softsimon
cca95bbd66
Increasing clear protection period to 10 minutes. 2021-01-24 19:33:05 +07:00
softsimon
47a449e1d9
Disable support for Electrum TX lookups (require -txindex). 2021-01-24 04:15:06 +07:00
softsimon
5b268794af
Correctly error handle getTransaction and set 404 status when not found. 2021-01-24 02:51:22 +07:00
softsimon
fb41f58f7c
Corrected Bisq stats calculation.
fixes #280
2021-01-23 19:26:05 +07:00
softsimon
e82c89a985
Only save cache on new block when in sync. 2021-01-22 23:20:39 +07:00
softsimon
9900f4da80
Set backend to out of sync after connection retry interval has exceeded. 2021-01-20 17:16:43 +07:00
softsimon
a158794e2c
Bitcoind: Lookup block transactions as long as in sync.
refs #288
2021-01-20 17:15:11 +07:00
softsimon
1a04b088fb
Fix: Load mempool cache before checking DB connectivity. 2021-01-20 01:34:21 +07:00
softsimon
1e81355e7d
Increased disk cache chunks amount to 10 to fix json string length error. 2021-01-15 23:26:32 +07:00
softsimon
eff4d2c8cd
Optionally support second CoreRPC instance as source for the minimum fee. 2021-01-15 22:23:32 +07:00
wiz
ab8cb033e6
Update backend/package-lock.json for axios security vulnerability 2021-01-11 23:27:27 +09:00
softsimon
4f1049bace
npm audit fix 2021-01-11 16:04:16 +07:00
softsimon
0a0e7fad3a
Update backend/package.json
Co-authored-by: wiz <j@wiz.biz>
2021-01-11 15:23:59 +07:00
softsimon
e76ee93bbb
Config updates. Renamed BITCOIND to CORE_RPC. 2021-01-11 14:53:18 +07:00
softsimon
20406fa522
Moved method $validateAddress 2021-01-11 14:30:58 +07:00
softsimon
905ddbb363
Bitcoind: Use mempool as address index when doing address prefix search. 2021-01-11 01:51:57 +07:00
softsimon
38d534caee
Return not implemented error instead of empty array. 2021-01-11 00:26:36 +07:00
softsimon
c4d1fad853
Cache electrum address history fetch a couple of seconds to prevent double requests on address page load. 2021-01-10 19:58:55 +07:00
softsimon
9a23d2c6b0
Electrum: Sort address transactions correctly by confirmed and unconfirmed. 2021-01-10 17:40:05 +07:00
softsimon
065c21da1f
Bitcoind: Push full transactions to address page and RBF mode. 2021-01-10 17:38:59 +07:00
softsimon
6a58717694
Loading progressbar for loading address, block transactions and blocks 2021-01-08 21:44:36 +07:00
softsimon
b91516a1c1
Push new conversion rate updates to the clients. 2021-01-06 23:31:33 +07:00
softsimon
dc63fd9428
Config file updates. electrs -> esplora 2021-01-06 22:49:28 +07:00
softsimon
29dd6e5d8d
Never run statistics when mempool not in sync. 2021-01-06 03:09:31 +07:00
softsimon
9e1ef1b747
Adding bitcoinJS-lib and parse P2SH and P2WSH scripts. 2021-01-06 01:36:28 +07:00
softsimon
632c243b34
Loading indicator service indicating mempool sync status. 2021-01-05 18:57:06 +07:00
softsimon
f46728080d
Inform client when Electrum server limit exceeded 2021-01-05 17:30:53 +07:00
softsimon
1a6c2e79e6
Electrum protocol and tx lookup setting. 2021-01-05 03:06:57 +07:00
softsimon
7729ad8b79
Convert sighash to match esplora. 2021-01-03 22:02:10 +07:00
softsimon
a25125091d
Hack to make it possible to load the Coinbase transaction from Bitcoin Core. 2021-01-02 04:40:10 +07:00
softsimon
89b4de2484
Fixed addressTransactions with pagination in electrum API. 2020-12-30 02:27:34 +07:00
softsimon
5390629e41
Improved block fetching performance. 2020-12-30 01:47:07 +07:00
softsimon
62c78f5b08
Adding getBlocks support. 2020-12-29 20:41:16 +07:00
softsimon
ae87694bc3
Use @mempool/electrum-client lib as Electrum Client lib. 2020-12-29 14:14:34 +07:00
softsimon
a3644e23a7
Switching Electrum Client lib supporting auto reconnect. 2020-12-29 00:41:02 +07:00
softsimon
3c0fa71a10
Updates for general transaction and block fetching. 2020-12-28 20:17:32 +07:00
softsimon
bb28a56622
Big refactor of multiple backends handling. 2020-12-28 04:47:22 +07:00
softsimon
f84b9e6582
Address page mostly working. 2020-12-22 06:04:31 +07:00
softsimon
ecc0f316cc
Refactored transaction handling. 2020-12-21 23:08:34 +07:00
softsimon
5dbf6789a7
Basic bitcoind/romanz-electrum support to sync the mempool and blocks. 2020-12-20 22:36:36 +07:00
softsimon
c7abb7a08a
Merge pull request #189 from mempool/only-return-active-bisq-markets
Modify /bisq/api/v1/markets/markets to only return active markets
2020-11-23 22:02:13 +07:00
wiz
d613aec395
Modify /bisq/api/v1/markets/markets to only return active markets
As per https://github.com/bisq-network/bisq/issues/4826 and https://github.com/bisq-network/bisq/pull/4831
2020-11-23 22:46:14 +09:00
softsimon
9e716aa913
Remove unnecessary @types/axios dependency. 2020-11-23 18:36:55 +07:00
wiz
824bc21035
Same npm fix for running tsc from ./node_modules for backend 2020-11-23 17:26:22 +09:00
softsimon
bd67eec777
correcting merge 2020-11-23 11:46:04 +07:00
wiz
9059c0c7e4
Merge remote-tracking branch 'origin/master' into simon/update-pricefeed 2020-11-23 09:56:23 +09:00
wiz
8fab153fb0
Remove extra space in price server URL 2020-11-23 09:48:06 +09:00
softsimon
c0d2430a84
Merge "getInitData" method from simon/angular-universal. 2020-11-23 02:38:56 +07:00
softsimon
1521d47cc7
Replace opennode usd price source with wiz api.
fixes #166
2020-11-22 16:48:55 +07:00
softsimon
0616b3c3b0
Axios error handle sponsor proxy requests. 2020-11-15 14:31:34 +07:00
softsimon
e7ddedaeb6
Replacing request.js with axios
fixes #153
2020-11-15 14:22:47 +07:00
wiz
12b3ecd078
Add basic websocket error handler as emergency fix for site crashing 2020-11-15 11:44:16 +09:00
wiz
203374bce2
Update Bisq price API: markets.bisq.network -> bisq.markets 2020-11-05 13:59:58 +09:00
softsimon
c03073bddd
FIx: Write cache sync on exit. 2020-11-02 22:06:51 +07:00
softsimon
ce582eefc6
Fix for kept block amount when cache already contains more. 2020-11-02 21:28:40 +07:00
softsimon
d46ff35dfb
Fix: Split mempool disk cache into 50K txs per file 2020-11-02 19:11:04 +07:00
softsimon
73acec23ae
Mute websocket parse error. 2020-11-02 01:14:42 +07:00
softsimon
b21016efef
Removing unnused config MINED_BLOCKS_CACHE. 2020-10-31 18:58:34 +07:00
softsimon
5feaff130f
Adding missing error cause messages. 2020-10-28 11:00:48 +07:00
softsimon
6494d6daf8
Removing hxpress http compression 2020-10-27 17:42:10 +07:00
softsimon
396ff6a375
Change collapsing dashboard into 3 levels. 2020-10-27 16:34:27 +07:00
softsimon
d260a1ed73
Write cache.json on startup if it doesn't exist.
Write mempool and block data to cache on every new block
fixes #146
2020-10-27 00:05:06 +07:00
softsimon
1fc4e9530d
Handle weird response body when fetching Bisq price.
fixes #145
2020-10-26 19:33:20 +07:00
wiz
9a94fccf40
Revert "Lock NPM versions."
This reverts commit b544af14e4.
2020-10-26 20:56:55 +09:00
softsimon
99162f5ec9
Sponsor Lightning support. 2020-10-26 18:29:25 +07:00
softsimon
b544af14e4
Lock NPM versions. 2020-10-26 15:59:28 +07:00
softsimon
9d7b52a104
Removing AVG() from mysql query reducing execution time. Increasing graph data span.
fixes #106
2020-10-26 01:00:21 +07:00
wiz
c5c2d67fce
Don't rebuild backend on every restart 2020-10-25 22:22:34 +09:00
softsimon
b4a17693af
Only log warning if main update loop has failed more than once. 2020-10-23 16:27:02 +07:00
softsimon
bdeac55c97 Fix for statistics enabled config. 2020-10-19 20:24:22 +07:00
wiz
53f7839131
Don't append btc_mainnet/db/ to BISQ_MARKETS.DATA_PATH 2020-10-19 20:58:25 +09:00
softsimon
962c024ecb
Use default configs.
refs #141
2020-10-19 18:36:29 +07:00
softsimon
cbef2ae6d0
Limit mempool clear protection to >20K TX mempool
fixes #140
2020-10-19 17:30:47 +07:00
softsimon
45efb604c1
Revamping configuration file.
fixes #141
2020-10-19 11:57:02 +07:00
softsimon
0abe62128e
Reducing retry time to max 60 seconds 2020-10-18 22:48:15 +07:00
softsimon
49f70ca28a
Slow down retries on Electrs errors in the main mempool loop. 2020-10-18 21:47:47 +07:00
softsimon
2ba7cd9ebd
Proxy image requests. 2020-10-18 21:37:27 +07:00
softsimon
fff8120daa
Backend API to load sponsor profile photos. 2020-10-18 17:14:35 +07:00