Commit Graph

814 Commits

Author SHA1 Message Date
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
softsimon
7bf9810c48
Run Bisq block parse in separate Worker Thread. 2020-10-17 18:13:09 +07:00
softsimon
2715d02cf9
Fix exception handling. Don't save < 0.01 donations to DB.
refs #133
2020-10-17 15:01:58 +07:00
softsimon
15fdb69b96
Use Twitter API to fetch profile photos.
fixes #133
2020-10-16 16:29:54 +07:00
softsimon
e7a7b45ad0
Readding "BISQ_ENABLED". Display 'bisq' in logs. 2020-10-15 11:54:21 +07:00
softsimon
d8857f1073
Replacing BISQ_ENABLED with NETWORK === "bisq" 2020-10-15 11:37:25 +07:00
softsimon
b767a0a33e
Allow bisq network to be "bisq". 2020-10-15 11:15:04 +07:00
softsimon
472b1d35c2
Improve some logger error messages. 2020-10-15 11:12:33 +07:00
softsimon
86c654f22f
New backend config "NETWORK".
Only activate mempool protection.
Log network to
fixes #140
2020-10-15 11:07:53 +07:00
softsimon
372c116283
Input sanitation. Minimum amount fix. Debug log updated. 2020-10-13 19:54:47 +07:00
softsimon
94e06a3a6b
Add notice for BTCpay invoices and requests.
refs #135
2020-10-13 18:26:10 +07:00
softsimon
4399c5e8e9
Changing more loggings levels.
refs #135
2020-10-13 17:48:43 +07:00
softsimon
b98b979dc8
Changing more loggings levels.
refs #135
2020-10-13 16:58:48 +07:00
softsimon
3d374fd9d9
Changing more loggings levels.
refs #135
2020-10-13 16:43:09 +07:00
softsimon
4a14085908
Use persistent dgram socket client.
refs #135
2020-10-13 16:03:03 +07:00
softsimon
04ac820ed7
Changing common output messages to Debug.
refs #135
2020-10-13 16:00:58 +07:00
softsimon
4dacf292c2
Adding logger wrapper.
Log backend messages to syslog.
fixes #135
2020-10-13 15:27:52 +07:00
softsimon
4c203631db
Making order_id (BTCPay invoice id) unique in the database. 2020-10-13 10:10:46 +07:00
wiz
f5e270c770
Use https:// instead of http:// to query mempool.space API 2020-10-12 14:26:01 +09:00
softsimon
e37a9de71d
Proxy donation requests to mempool.space when BTCPay Sponsors is disabled. 2020-10-12 10:50:10 +07:00
softsimon
a8a1f4e976
About page updates.
refs  #128
2020-10-09 13:56:43 +07:00
softsimon
784f00b725
Enhancements to the sponsorship GUI
fixes  #128
2020-10-08 17:51:10 +07:00
wiz
ad144a34ac
Handle btcpay "paid" invoice status for sponsorship donations 2020-10-08 04:46:11 +09:00
softsimon
87dc1e5db4
Check and accept both 'complete' and 'confirmed' invoices.
refs #122
2020-10-08 00:51:11 +07:00
softsimon
1f7483687f
Don't allow invoices lower than 0.001 and require 0.01 for sponsorship.
refs #122
2020-10-08 00:20:42 +07:00
softsimon
0cbc7e2ab6
Make BTCPay webhook configurable.
refs #122
2020-10-08 00:15:26 +07:00
softsimon
a07a4de255
Custom BTCPay donation integration
fixes #122
2020-10-07 20:15:42 +07:00
softsimon
774893f2fc
Bugfix: Incoming transactions not parsed properly. 2020-10-06 13:31:33 +07:00
softsimon
98c398272c
Fix for incorrect division in fee estimation.
refs #65
2020-10-05 16:26:39 +07:00
softsimon
15bb5a966b
Improved empty mempool as well as medium and low fee estimations.
refs #65
2020-10-05 11:42:54 +07:00
softsimon
c0ad643d42
DiskCache fix when using clustering. 2020-09-30 00:25:43 +07:00
softsimon
140fc0c5e1
Bugfix: Mempool and blocks disk cache not saved on exit when using cluster. 2020-09-29 23:13:22 +07:00
softsimon
e8de73cfbc
Correct timer to get actual time to update bisq market data. 2020-09-29 19:38:01 +07:00
softsimon
b95efca29d
Various bugfixes. 2020-09-28 16:32:48 +07:00
softsimon
3e3dd83243
Fix: Show fee box on Testnet and Liquid.
Use 0.1 sat/vB as minimum liquid fee.
2020-09-27 18:12:36 +07:00
softsimon
3450de774f
Fix for Bisq blocks data watchers stopps working randomly. Restaring watcher when block height has diverged. 2020-09-27 17:21:18 +07:00
softsimon
fe2c9bf49d
Revering comment. 2020-09-26 23:48:18 +07:00
softsimon
3dedf1e3e1
Adding mini-graphs on dashboard. 2020-09-26 22:46:26 +07:00
softsimon
d4f768e3b6
Adding latest blocks and transactions to dashboard. 2020-09-26 02:11:30 +07:00
softsimon
2c3b02a682
NodeJS cluster: Delay child process auto restart 10 seconds on exit.
refs #108
2020-09-22 04:27:08 +07:00
softsimon
6d67fbde84
NodeJS cluster fix: Only save disk cache to disk when master.
fixes #108
2020-09-22 04:07:47 +07:00
softsimon
347ab1e220
NodeJS cluster support. 2020-09-22 03:52:54 +07:00
softsimon
6c1d28a9ac
Replacing footer and latest blocks with a stats dashboard. 2020-09-21 19:41:12 +07:00
softsimon
508b5c0f4e
Markets API: Adding cache for general /ticker requests 2020-09-19 23:02:02 +07:00
softsimon
84f0ebaba6
Market api: /volume api fix. 2020-09-19 15:59:09 +07:00
wiz
04cc1338c0
Set npm dep locutus to dev 2020-09-19 02:25:51 +09:00
softsimon
5d2c0d2e0a
Markets API: Use file mtime to only parse files that has updated. 2020-09-18 23:43:45 +07:00
softsimon
059e4d079a
Markets api: Add missing "timestamp" parameter for /hloc and /volumes 2020-09-17 15:38:25 +07:00
softsimon
14697a01cc
Corrected Offers response data. 2020-09-17 02:45:14 +07:00
softsimon
4d4eaecb87
Market api: Fix memory leak 2020-09-15 23:12:42 +07:00
wiz
344413568d
Increase NodeJS max heap to 4GB RAM for backend instance 2020-09-16 00:46:34 +09:00
softsimon
77cbb302ce
Bisq market: Fix for missing prices from /trades 2020-09-15 12:37:54 +07:00
wiz
c1c0521ab4
Merge pull request #107 from mempool/bisq-markets
Bisq markets API
2020-09-15 05:28:28 +09:00
softsimon
a11135f358
* /volumes API
* /ticker API
2020-09-15 03:11:52 +07:00
softsimon
bafe2db094
HLOC markets api. 2020-09-13 17:51:53 +07:00
softsimon
98cc81c53d
Corrections to parameters handling and sorting. 2020-09-12 01:26:51 +07:00
softsimon
88e5b03430
Bisq Markets API. WIP 2020-09-10 14:46:23 +07:00
softsimon
147de195a9
deleting yarn lock since we rely on NPM package-lock.json 2020-08-19 11:31:50 +07:00
softsimon
2d02ec7092
Return HTTP 503 from Fee Api when mempool is still syncing.
Fix for displaying git commit on About page.
2020-08-12 13:33:58 +07:00
softsimon
d2a14e9cb7
Default to 1 sat/vB when mempool is empty. 2020-08-10 22:04:51 +07:00
softsimon
5411feee36
Default mempool backend to local electrs mock server. 2020-08-10 14:32:16 +07:00
softsimon
599159ecf0
Fix: Don't build statistics cache when DB is disabled. 2020-07-29 13:57:49 +07:00
softsimon
fa88bd7057
Upgraded typescript and tslint version and fixed query type error. 2020-07-24 19:38:39 +07:00
softsimon
7f71781916
Bisq: Feature to filter transaction types. 2020-07-24 18:41:15 +07:00
softsimon
0f11642418
Fix for creating empty blocks. 2020-07-24 12:11:05 +07:00
softsimon
9980414969
Handle coinbase transactions no longer has undefined fee. 2020-07-24 00:20:59 +07:00
softsimon
23f5e229c9
Fixes to block reward display on Liquid. 2020-07-23 12:10:22 +07:00
softsimon
86c0a5ec7b
Add setting to disable database use. 2020-07-23 00:04:29 +07:00
softsimon
62d2fc8113
Using two watchers to monitor Bisq data top and sub directory, and added more error handling. 2020-07-21 10:23:21 +07:00
softsimon
e5c4642af4
Delay restarting of sub watcher to let Bisq recreate the directories. 2020-07-20 16:36:08 +07:00
softsimon
9fa95ccbe8
Improv: On new block push, simultaneously send new mempool stats. 2020-07-20 10:44:05 +07:00
softsimon
8695bb9bb1
Upgrade libs. 2020-07-19 19:34:09 +07:00
softsimon
5198c3a5af
Send correct content-types. 2020-07-18 18:46:33 +07:00
softsimon
66c565a3d7
Adding multiple fs.watch-ers to handle Bisq restarts. 2020-07-18 18:17:24 +07:00
softsimon
3df36cd3b8
Watch for bisq dump recursively. 2020-07-18 13:41:40 +07:00
softsimon
d22e4a03e6
Adding Bisq API to About page.
Watching partent bisq dump folder.
2020-07-18 12:59:12 +07:00
softsimon
87e56e2975
Network menu design updates. 2020-07-16 14:30:27 +07:00
softsimon
40afa7a420
Remove filename check for fs.watch 2020-07-16 00:55:41 +07:00
softsimon
40f7eaf7ba
Watch dir instead of json file.
Adding divider to network dropdown.
2020-07-16 00:33:53 +07:00
softsimon
3333b76c98
Rearange network dropdown.
API for Bisq block height tip.
Loading indicators on transactions/blocks view.
Total sent now correctly display burnt on Pay trade fee txs.
2020-07-15 13:10:13 +07:00
softsimon
3008f99668
Show fiat value of totalRecieved for addresses.
Rename fee to fee burnt.
2020-07-14 23:49:57 +07:00
softsimon
ca0cf23d66
Bisq stats page.
BSQ prices.
2020-07-14 21:26:02 +07:00
softsimon
b7376fbd8d
Bisq statistics page. 2020-07-14 14:38:52 +07:00
softsimon
87abfc38cb
Display network logo in the top bar.
Allow search for block height.
Hide empty bisq blocks.
2020-07-13 23:22:24 +07:00
softsimon
432fb9cd66
Address index and api.
Address view.
2020-07-13 21:46:25 +07:00
softsimon
db2e293ce5
Bisq module separation.
Transaction view.
Block view.
Blocks list.
2020-07-13 15:16:12 +07:00
softsimon
60e1b9a41e
Bisq explorer is now a separate module. 2020-07-11 00:17:13 +07:00
softsimon
8c23eae5fe
Auto reload bisq dump file. 2020-07-10 14:13:07 +07:00
softsimon
c21dad88bf
WIP: Bisq DAO support. Transactions list and details. 2020-07-03 23:45:19 +07:00
softsimon
c20ba429b1
Increased frontend auto reload timeout.
Increased time limit on new transaction processing.
2020-06-23 14:49:06 +07:00
softsimon
22813a09e8
Display fees correctly for Liquid blocks. 2020-06-19 23:32:17 +07:00
softsimon
279b79b9b1
Reducing mempool detection sensitivity to 25%
refs #76
2020-06-18 17:10:07 +07:00
softsimon
b92eef8198
Set in sync to false when mempool clear protection is active.
refs #76
2020-06-18 14:34:56 +07:00
softsimon
6688421e39
Prevent mempool from being flushed when restarting bitcoind.
fixes #76
2020-06-18 13:54:54 +07:00
softsimon
cc48e0be2c
Fix: Don't calculate block fee for Liquid.
Completing interfaces.
2020-06-17 15:01:58 +07:00
softsimon
6eca311147
Display input/output asset transfers
fixes #85
2020-06-12 16:17:52 +07:00
softsimon
36e46249b5
Transition new blocks from the mempool onto the blockchain.
Chime on new blocks.
fixes #47
fixes #84
2020-06-10 23:52:14 +07:00
softsimon
ea708de9fb
Speed up mempool loop. 2020-06-09 02:32:24 +07:00
softsimon
0177224eba
Adding types to callback functions. 2020-06-09 02:08:46 +07:00
softsimon
912d45165b
Don't call mempoolChanged after disk cache dump. 2020-06-08 19:19:31 +07:00
softsimon
8b6a681614
Detect RBF-transactions and offer to track them.
fixes #78
2020-06-08 18:55:53 +07:00
softsimon
f0b0fc3f4b
Push new block and mempool synchronized.
Measure projected block accuracy.
refs #47
2020-06-08 02:08:51 +07:00
softsimon
7ade4c114b
Code cleanup. 2020-06-07 17:30:32 +07:00
softsimon
8167debbe9
Expose git commit hash to backend info api. 2020-05-27 15:18:04 +07:00
wiz
b9d9875e98
Remove duplicate npm install and build steps in production scripts 2020-05-26 21:52:50 +09:00
softsimon
68664968da
Add backendInfo api endpoint. 2020-05-26 18:06:14 +07:00
softsimon
5b80b43e2a
Add hostname to initial websocket data. 2020-05-26 16:34:55 +07:00
wiz
01ac06b096
Fix start/upgrade scripts to properly restart the backend processes 2020-05-26 13:23:55 +09:00
softsimon
5cbbf5a186
Crash fix. 2020-05-26 11:02:12 +07:00
wiz
003361befb
Update misc files used for mempool.space production website 2020-05-25 18:42:00 +09:00
softsimon
2c345426cb
Strip attached coinbase transactions to save data. 2020-05-24 22:45:45 +07:00
softsimon
4d2fcf96c6
Duplicate code fix. 2020-05-24 16:29:30 +07:00
softsimon
7e07e2cd8a
Fix address tracking issues. 2020-05-20 17:00:50 +07:00
softsimon
1d542c15e4
Arrow navigation fix.
Liquid native asset notification fix.
2020-05-10 01:34:28 +07:00
softsimon
c08a4c8424
Instant mining pool identification from recent blocks.
refs #59
2020-05-10 00:54:07 +07:00
softsimon
0753b11840
Identify and display mining pool.
fixes #59
2020-05-10 00:35:21 +07:00
softsimon
20c7ee98e7
Asset tracking.
Asset caching.
refs #37
2020-05-05 15:26:23 +07:00
softsimon
590f1d2b04
Improvments to the mempool transaction subscription. 2020-04-13 02:06:10 +07:00
softsimon
e2671df4be
Wait for an push transactions that hasn't yet appeared in the mempool 2020-04-13 01:26:53 +07:00
softsimon
c5796a8062
Improved websocket tx/address tracking handling when disconnecting . 2020-04-12 03:03:51 +07:00
softsimon
b082763438
Send empty mempoolInfo responsive instead of undefined on server restart. 2020-04-04 01:11:46 +07:00
softsimon
c6df78815b
Added mempool inSync property to backend. Display on frontend when not in sync and on't create statistics when not in sync.
fixes #29
2020-04-01 20:06:44 +07:00
softsimon
e84ec7dd86
Fixed sorting issue that caused the median calculation bug. 2020-03-20 02:07:12 +07:00
softsimon
72658c19f6
Adding "mempool block" details. Work in progress! 2020-03-17 21:53:20 +07:00
softsimon
8a5887e890
Only return "initial block amount" on init, and treat high fees in empty blocks as overpaid. 2020-03-16 02:25:14 +07:00
softsimon
dbf8d025e9
Adding median fee to block. 2020-03-15 17:12:09 +07:00
wiz
6af45c86f8
Add new package.json for top-level mempool project 2020-03-13 19:51:25 +09:00
wiz
c8da732771
Update package.json for mempool-frontend 2020-03-13 19:48:10 +09:00
wiz
0bf337b7a6
Update package.json for mempool-backend 2020-03-13 19:44:56 +09:00
softsimon
2f94200a45
Responsive mempool blocks. 2020-03-12 21:56:07 +07:00
softsimon
2296ad69b9
Adding a third connection state and preventing offline indicator from pushing the menu. 2020-03-09 17:53:54 +07:00
softsimon
677f99d03b
Bugfix for null error when using transaction tracking 2020-03-09 00:23:45 +07:00
softsimon
5d4ce44627 Introduce a websocket ping check that closes the socket if no response. 2020-03-06 02:05:26 +07:00
softsimon
73e24195da Adding miner block reward and fee to block info. 2020-03-04 15:10:30 +07:00
softsimon
2fe7af0c22 Handle some cases of api not returning full data. 2020-03-03 16:44:32 +07:00
softsimon
2b9be35afa Fast forward the block fetching if backend has been offline for a while. 2020-03-03 15:11:14 +07:00
softsimon
2382aa44e1 Write cache to disk on SIGTERM as with SIGINT. 2020-03-01 23:09:33 +07:00
softsimon
c9b161423d Send git-commit hash to client on reconnect to force client reload on backend update 2020-03-01 00:42:41 +07:00
softsimon
39394e1178
Also save and load blocks to cache.json for speedy restarts. 2020-02-29 21:52:04 +07:00
softsimon
4879036216
Added first seen on mempool transactions. 2020-02-28 01:09:07 +07:00
softsimon
23a61a37fd
Confirmed address transactions fix. QR Code fix. (take 2) 2020-02-26 23:21:16 +07:00
softsimon
7fbc6f1461
Moved websocket handling to its own file and cleaned up index.ts 2020-02-26 17:49:53 +07:00
softsimon
a122432c24 Address tracking and notification sounds. 2020-02-26 04:29:57 +07:00
Simon Lindh
057bff69fc
Various fixes and design updates. 2020-02-26 03:37:00 +09:00
Simon Lindh
c5c068a8d4
Empty block fix. 2020-02-26 03:35:46 +09:00
Simon Lindh
d690511a08
Footer and header design updates. 2020-02-26 03:34:20 +09:00
Simon Lindh
3453e84889
Basic address tracking. 2020-02-26 03:31:45 +09:00
Simon Lindh
f3cfa038d3
Transaction tracking revamped.
Blockchain block arrow.
2020-02-26 03:28:57 +09:00
Simon Lindh
34645908e9
Refactor. API explanations. UX revamp. 2020-02-26 03:26:16 +09:00
Simon Lindh
acd658a0e7
Optimize statistics. 2020-02-26 03:21:21 +09:00
Simon Lindh
ac95c09ea6
New base code for mempool blockchain explorerer 2020-02-26 03:19:26 +09:00
Simon Lindh
67fb17f242 electrs backend request and error handling improvements 2019-12-09 19:14:54 +07:00
Simon Lindh
d1fce86adb Renamed the electrs backend support to 'electrs'. 2019-12-06 22:37:07 +01:00
Simon Lindh
aa8bccdb8f Use 'request' instead of 'axios' for electrs api requests. 2019-12-06 21:59:43 +01:00
Simon Lindh
9cfee07f47 Prevent transaction backlog to cause mempool update halts 2019-11-15 17:27:12 +08:00
Simon Lindh
e2d26b90bf typo 2019-11-14 16:31:40 +08:00
Simon Lindh
9e212ab176 Search box for explorer. 2019-11-14 15:03:01 +08:00
Simon Lindh
480016ef07 Address page with QR code 2019-11-13 14:51:44 +08:00
Simon Lindh
309e851ead Block view. 2019-11-12 16:39:59 +08:00
Simon Lindh
bd2bd478ef Transaction view. 2019-11-10 16:44:00 +08:00
Simon Lindh
02d67e8406 Explorer page with latest blocks. WIP 2019-11-06 15:35:02 +08:00
Simon Lindh
d8407080ec
Merge pull request #13 from andrerfneves/refactor/docs-package
[chore] Documentation improvements and package json cleanups
2019-10-29 02:00:17 +08:00
Simon Lindh
3074983d3a Fix transaction size when using esplora api 2019-10-28 16:47:42 +08:00
Simon Lindh
35c4d9676c Resume transaction tracking after reconnect. 2019-10-24 15:37:39 +08:00
Simon Lindh
4229b9b3df Tx tracking fix for esplora api. 2019-10-24 11:15:24 +08:00
Simon Lindh
afb3ecc57d Adding optional Blockstream esplora backend support. 2019-10-22 17:09:07 +08:00
Andre Neves
d3cd735411 chore(docs): Update README docs for more clarity
chore(packagejson): clean up and standardize data inside package json - author taken from MIT license details
chore(spacing): move tsconfig json to follow codebase standard indentation setup
2019-09-08 13:37:07 -04:00
Simon Lindh
61c6345f75 Erase old blocks and transactions from database at interval. 2019-08-29 01:17:31 +02:00
Simon Lindh
53269a805b Proxy websocket when running local environment. 2019-08-29 01:05:46 +02:00
wiz
e95b90b857
Add mempool-config.json to .gitignore, update sample, update README 2019-08-23 22:35:04 +09:00
wiz
9df5024856
Modify backend to only bind to 127.0.0.1 2019-08-23 22:27:52 +09:00
Simon Lindh
f1db2ccbea Bugfix: setTimeout -> setInterval 2019-08-19 10:31:14 +03:00
Simon Lindh
85f1d4d7aa Cache the heavy statistics lookup queries. 2019-08-15 14:06:08 +03:00
Simon Lindh
b561137962 Projected blocks API should accept "txId" as query parameter. 2019-07-26 17:55:41 +03:00
Simon Lindh
32623988ab Projected blocks API. 2019-07-26 17:51:12 +03:00
Simon Lindh
76f8af9048 Amount of projected blocks is now a config. 2019-07-26 17:42:26 +03:00
Simon Lindh
8dd58db42a Live 2H graph is now fetched through the websocket.
Tell the web socket what to fetch with "want" request.
2019-07-26 12:48:32 +03:00
Simon Lindh
2b6426a126 Fixing tx tracking issues. 2019-07-25 14:20:02 +03:00
Simon Lindh
fd2209e75a Initial code commit. 2019-07-21 17:59:47 +03:00