309 Commits

Author SHA1 Message Date
softsimon
f50d0fa22a 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
13913f6921 Proxy contributor requests. 2021-04-10 11:33:01 +04:00
softsimon
20178641da Upgrading all front and backend dependencies, including Angular 11.
fixes #429
2021-04-07 16:18:55 +04:00
wiz
e66fa02cd1 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
e0212a00f4 Updating getMempoolInfo defaults. 2021-04-06 11:07:38 +04:00
wiz
a534e15d67 Merge pull request #419 from mempool/simon/cpfp-duplicate-fix
Fix for duplicate cpfp ancestors.
2021-04-06 15:58:58 +09:00
softsimon
f9256704ab Bugfix: Ancestors are not able to increase fee of descendants
fixes #426
2021-04-05 23:45:47 +04:00
softsimon
3a4223e864 Catch getMempoolInfo errors gracefully to not break general main loop
fixes #411
2021-04-02 11:47:13 +04:00
softsimon
e2845bf97b Fix for duplicate cpfp ancestors.
fixes #414
2021-04-02 00:30:51 +04:00
softsimon
c61f5d79cc Flag transactions for lazy deletion.
fixes #400
2021-03-21 06:06:03 +07:00
softsimon
02fffa57d9 Bugfix: Don't extend already extended transactions to not override the firstSeen property.
fixes #390
2021-03-19 19:10:11 +07:00
softsimon
aa43511e0a Shuffle mempool transactions before saving disk cache. (#398)
fixes #397
2021-03-19 13:47:37 +07:00
softsimon
9440bb7505 Adding missing return after expressjs response. 2021-03-18 23:53:39 +07:00
softsimon
58402c008f 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
fcebce1786 Update package.json license tags 2021-03-18 16:30:10 +09:00
andrewtoth
cdb992fcf3 Add recommended fee percentile config (#394) 2021-03-18 12:52:46 +07:00
wiz
8c8ea11cb7 Merge pull request #358 from mempool/simon/fee-api-minfee
Send mempoolminfee in fee api.
2021-02-24 16:47:32 +09:00
softsimon
572bc8cb14 Renaming feeApi minimumFee and display as rounded satoshis. 2021-02-24 14:39:34 +07:00
softsimon
74880b1567 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
6fa1fd6345 Send mempoolminfee in fee api.
fixes #357
2021-02-24 12:26:55 +07:00
softsimon
da61a72283 Signet support in the frontend. 2021-02-20 23:12:22 +07:00
wiz
40deafba44 Merge pull request #343 from mempool/simon/clear-protection-config
Make clear protection timeout configurable.
2021-02-15 00:26:47 +09:00
wiz
0a0edc0315 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
8d0df59a31 Make clear protection timeout configurable.
fixes #335
2021-02-14 20:32:00 +07:00
softsimon
eace751090 Apply suggestions from code review
Co-authored-by: wiz <j@wiz.biz>
2021-02-14 20:03:45 +07:00
softsimon
b11c2a7879 Optimized cache chunks. Default cache files to /cache directory.
fixes #341
2021-02-14 19:50:31 +07:00
softsimon
cf4406a37c Use mempool clear protection feature also when in bitcoind mode.
fixes #335
2021-02-14 01:04:44 +07:00
Bastien Guillaumat
5fbc952fda 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
8e02ff91f5 Fix for hard coded sponsor url.
refs #319
2021-02-07 03:00:02 +07:00
softsimon
9651fa7859 Removing sponsors code.
Support new sponsor confirmation polling.
fixes #319
2021-02-07 02:20:07 +07:00
Bastien
39b88e3147 Fix missing mempool-config due to gitignore 2021-02-03 09:52:04 +01:00
softsimon
9cd67d878f bitcoind: Parse witness scripts from P2SH transactions.
fixes #323
2021-02-03 13:11:14 +07:00
wiz
fca3ea8a36 Merge pull request #322 from bguillaumat/update-dockerization
Update dockerization
2021-02-03 13:03:44 +09:00
Bastien
7d245bc201 Move docker files in subdir 2021-02-03 02:12:15 +01:00
Bastien
c6296bc06c Set all dir to be dockerized 2021-02-02 23:45:54 +01:00
wiz
5c615537de 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
7109f74639 Update package.json && Fix start.sh script 2021-02-02 18:01:23 +01:00
Bastien
ffb9d01f85 Add CACHE_DIR var 2021-02-01 15:54:27 +01:00
softsimon
65454bf169 Hide address received/sent from address page when using electrum API.
fixes #294
2021-02-01 04:52:24 +07:00
softsimon
1bed4b4313 Moved sponsors cache creation until after diskcache is done.
refs #315
2021-01-30 22:12:22 +07:00
softsimon
1b8bd80d4c Refactored when statistics cache from database is created.
refs #315
2021-01-30 21:40:04 +07:00
softsimon
004c7b072d Upgrading mysql client lib. 2021-01-30 21:39:23 +07:00
softsimon
2c94f3a8ef Wait for database connection established before continuing startup.
refs #315
2021-01-30 21:09:30 +07:00
wiz
12002f5685 Increase Bisq block height divergence warning to 10 blocks for Tor issues 2021-01-30 23:02:20 +09:00
softsimon
db6ab5091c Increased database query timeouts
fixes #315
2021-01-30 19:20:52 +07:00
softsimon
42fa7c67bb Replacing localhost with 127.0.0.1 2021-01-30 18:43:58 +07:00
softsimon
ec9fdbe3d6 Adding missing default timeout on all axios requests.
fixes #314
2021-01-30 16:25:22 +07:00
softsimon
c9f2a871fc 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
c9ef7cf0f3 Replacing weight with vsize in transactions api to match esplora. 2021-01-28 18:24:02 +07:00
softsimon
4ff55e694c Don't save disk cache on exit. Handle corrupted mempool disk cache.
fixes #304
2021-01-27 01:49:11 +07:00