Commit Graph

282 Commits

Author SHA1 Message Date
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