Commit Graph

403 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
softsimon
ed17203a5f
bitcoind: Parse witness scripts from P2SH transactions.
fixes #323
2021-02-03 13:11:14 +07: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
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
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
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
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
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
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