From f968faeaf979fe1f5b96fb6e944f5984d116c400 Mon Sep 17 00:00:00 2001
From: hunicus <93150691+hunicus@users.noreply.github.com>
Date: Thu, 2 Mar 2023 02:39:59 -0500
Subject: [PATCH 001/255] Specify manual deployment support for enterprise
sponsors [faq]
---
frontend/src/app/docs/api-docs/api-docs.component.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/src/app/docs/api-docs/api-docs.component.html b/frontend/src/app/docs/api-docs/api-docs.component.html
index 8c8d6ac36..2e9a12687 100644
--- a/frontend/src/app/docs/api-docs/api-docs.component.html
+++ b/frontend/src/app/docs/api-docs/api-docs.component.html
@@ -267,7 +267,7 @@
- You can manually install Mempool on your own Linux server, but this requires advanced sysadmin skills since you will be manually configuring everything. We do not provide support for manual deployments.
+ You can manually install Mempool on your own Linux server, but this requires advanced sysadmin skills since you will be manually configuring everything. We only provide support for manual deployments to enterprise sponsors.
From e7ad857cc94bbfef3c2d55c94d0cb04eb200f95b Mon Sep 17 00:00:00 2001
From: hunicus <93150691+hunicus@users.noreply.github.com>
Date: Thu, 2 Mar 2023 03:12:56 -0500
Subject: [PATCH 002/255] Specify manual deployment support for enterprise
sponsors [readme]
---
backend/README.md | 2 +-
production/README.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/README.md b/backend/README.md
index be85d25af..ee934a14f 100644
--- a/backend/README.md
+++ b/backend/README.md
@@ -2,7 +2,7 @@
These instructions are mostly intended for developers.
-If you choose to use these instructions for a production setup, be aware that you will still probably need to do additional configuration for your specific OS, environment, use-case, etc. We do our best here to provide a good starting point, but only proceed if you know what you're doing. Mempool does not provide support for custom setups.
+If you choose to use these instructions for a production setup, be aware that you will still probably need to do additional configuration for your specific OS, environment, use-case, etc. We do our best here to provide a good starting point, but only proceed if you know what you're doing. Mempool only provides support for custom setups to [enterprise sponsors](https://mempool.space/enterprise).
See other ways to set up Mempool on [the main README](/../../#installation-methods).
diff --git a/production/README.md b/production/README.md
index 91b087ffa..87b8bb0a1 100644
--- a/production/README.md
+++ b/production/README.md
@@ -2,7 +2,7 @@
These instructions are for setting up a serious production Mempool website for Bitcoin (mainnet, testnet, signet), Liquid (mainnet, testnet), and Bisq.
-Again, this setup is no joke—home users should use [one of the other installation methods](../#installation-methods).
+Again, this setup is no joke—home users should use [one of the other installation methods](../#installation-methods). Support is only provided to [enterprise sponsors](https://mempool.space/enterprise).
### Server Hardware
From f493da4eac1fafd867cd08fd46675bb22d106a36 Mon Sep 17 00:00:00 2001
From: hunicus <93150691+hunicus@users.noreply.github.com>
Date: Sat, 4 Mar 2023 04:07:23 -0500
Subject: [PATCH 003/255] Generalize faq from linux to any server
---
frontend/src/app/docs/api-docs/api-docs-data.ts | 4 ++--
frontend/src/app/docs/api-docs/api-docs.component.html | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/frontend/src/app/docs/api-docs/api-docs-data.ts b/frontend/src/app/docs/api-docs/api-docs-data.ts
index 62d031613..9c5502bf1 100644
--- a/frontend/src/app/docs/api-docs/api-docs-data.ts
+++ b/frontend/src/app/docs/api-docs/api-docs-data.ts
@@ -8921,8 +8921,8 @@ export const faqData = [
type: "endpoint",
category: "self-hosting",
showConditions: bitcoinNetworks,
- fragment: "host-my-own-instance-linux-server",
- title: "How can I host my own instance on a Linux server?",
+ fragment: "host-my-own-instance-server",
+ title: "How can I host a Mempool instance on my own server?",
},
{
type: "endpoint",
diff --git a/frontend/src/app/docs/api-docs/api-docs.component.html b/frontend/src/app/docs/api-docs/api-docs.component.html
index 2e9a12687..313ff0b52 100644
--- a/frontend/src/app/docs/api-docs/api-docs.component.html
+++ b/frontend/src/app/docs/api-docs/api-docs.component.html
@@ -266,8 +266,9 @@
We support one-click installation on a number of Raspberry Pi full-node distros including Umbrel, RaspiBlitz, MyNode, RoninDojo, and Start9's Embassy.
-
- You can manually install Mempool on your own Linux server, but this requires advanced sysadmin skills since you will be manually configuring everything. We only provide support for manual deployments to enterprise sponsors.
+
+
You can manually install Mempool on your own server, but this requires advanced sysadmin skills since you will be manually configuring everything. You could also use our Docker images.
In any case, we only provide support for manual deployments to enterprise sponsors.
+
For casual users, we strongly suggest installing Mempool using one of the 1-click install methods.
Below is a reference for the {{ network.val === '' ? 'Bitcoin' : network.val.charAt(0).toUpperCase() + network.val.slice(1) }} REST API service.
-
Note that we enforce rate limits. If you exceed these limits, you will get an HTTP 429 error. If you repeatedly exceed the limits, you may be banned from accessing the service altogether. Consider an enterprise sponsorship if you need higher API limits.
+
Note that we enforce rate limits. If you exceed these limits, you will get an HTTP 429 error. If you repeatedly exceed the limits, you may be banned from accessing the service altogether. Consider an enterprise sponsorship if you need higher API limits.
-1 )">{{ item.title }}
@@ -268,7 +268,7 @@
-
You can manually install Mempool on your own server, but this requires advanced sysadmin skills since you will be manually configuring everything. You could also use our Docker images.
In any case, we only provide support for manual deployments to enterprise sponsors.
+
You can manually install Mempool on your own server, but this requires advanced sysadmin skills since you will be manually configuring everything. You could also use our Docker images.
In any case, we only provide support for manual deployments to enterprise sponsors.
For casual users, we strongly suggest installing Mempool using one of the 1-click install methods.
From c675d1c498d4e20b2645d20fc8fdb40cb9fb9e4e Mon Sep 17 00:00:00 2001
From: nymkappa <1612910616@pm.me>
Date: Tue, 28 Mar 2023 23:07:50 +0900
Subject: [PATCH 005/255] Make sure to scan closed channels even if
config.MEMPOOL.ENABLE = false
---
backend/src/tasks/lightning/network-sync.service.ts | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/backend/src/tasks/lightning/network-sync.service.ts b/backend/src/tasks/lightning/network-sync.service.ts
index 3e5ae1366..fc04f5023 100644
--- a/backend/src/tasks/lightning/network-sync.service.ts
+++ b/backend/src/tasks/lightning/network-sync.service.ts
@@ -269,7 +269,11 @@ class NetworkSyncService {
}
private async $scanForClosedChannels(): Promise {
- if (this.closedChannelsScanBlock === blocks.getCurrentBlockHeight()) {
+ let currentBlockHeight = blocks.getCurrentBlockHeight();
+ if (config.MEMPOOL.ENABLED === false) { // https://github.com/mempool/mempool/issues/3582
+ currentBlockHeight = await bitcoinApi.$getBlockHeightTip();
+ }
+ if (this.closedChannelsScanBlock === currentBlockHeight) {
logger.debug(`We've already scan closed channels for this block, skipping.`);
return;
}
@@ -305,7 +309,7 @@ class NetworkSyncService {
}
}
- this.closedChannelsScanBlock = blocks.getCurrentBlockHeight();
+ this.closedChannelsScanBlock = currentBlockHeight;
logger.debug(`Closed channels scan completed at block ${this.closedChannelsScanBlock}`, logger.tags.ln);
} catch (e) {
logger.err(`$scanForClosedChannels() error: ${e instanceof Error ? e.message : e}`, logger.tags.ln);
From 7ab373ecac529d1f8f5efb921bf2a6f131f5e134 Mon Sep 17 00:00:00 2001
From: nymkappa <1612910616@pm.me>
Date: Wed, 29 Mar 2023 15:09:38 +0900
Subject: [PATCH 006/255] Clip overflowing labels in pool component on mobile
---
.../app/components/pool/pool.component.html | 48 +++++++++----------
.../app/components/pool/pool.component.scss | 10 +++-
2 files changed, 33 insertions(+), 25 deletions(-)
diff --git a/frontend/src/app/components/pool/pool.component.html b/frontend/src/app/components/pool/pool.component.html
index 898e50fc2..e1806086e 100644
--- a/frontend/src/app/components/pool/pool.component.html
+++ b/frontend/src/app/components/pool/pool.component.html
@@ -92,9 +92,9 @@
-
Reward
-
Hashrate (24h)
-
Avg Health
+
Reward
+
Hashrate (24h)
+
Avg Health
@@ -117,9 +117,9 @@
-
Reward
-
Hashrate (24h)
-
Avg Health
+
Reward
+
Hashrate (24h)
+
Avg Health
@@ -143,9 +143,9 @@
-
Blocks 24h
-
1w
-
All
+
Blocks 24h
+
1w
+
All
@@ -165,9 +165,9 @@
-
Blocks 24h
-
1w
-
All
+
Blocks 24h
+
1w
+
All
@@ -382,9 +382,9 @@
-
Reward
-
Hashrate (24h)
-
Avg Health
+
Reward
+
Hashrate (24h)
+
Avg Health
@@ -407,9 +407,9 @@
-
Reward
-
Hashrate (24h)
-
Avg Health
+
Reward
+
Hashrate (24h)
+
Avg Health
@@ -433,9 +433,9 @@
-
Blocks 24h
-
1w
-
All
+
Blocks 24h
+
1w
+
All
@@ -458,9 +458,9 @@
-
Blocks 24h
-
1w
-
All
+
Blocks 24h
+
1w
+
All
diff --git a/frontend/src/app/components/pool/pool.component.scss b/frontend/src/app/components/pool/pool.component.scss
index 21468773f..92fdc2ef3 100644
--- a/frontend/src/app/components/pool/pool.component.scss
+++ b/frontend/src/app/components/pool/pool.component.scss
@@ -188,11 +188,19 @@ div.scrollable {
}
}
-.block-count-title {
+.data-title {
color: #4a68b9;
font-size: 14px;
}
+.clip {
+ @media (max-width: 576px) {
+ max-width: 85px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+}
+
.table-data tr {
background-color: transparent;
}
From aa882aa36a1f757f069a7c1f096713c86e3f7cb5 Mon Sep 17 00:00:00 2001
From: Mononaut
Date: Sun, 2 Apr 2023 05:34:46 +0900
Subject: [PATCH 007/255] Fix RTL locale unfurls
---
unfurler/src/index.ts | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/unfurler/src/index.ts b/unfurler/src/index.ts
index 0b423ff92..fedf32110 100644
--- a/unfurler/src/index.ts
+++ b/unfurler/src/index.ts
@@ -109,7 +109,10 @@ class Server {
page.waitForSelector('meta[property="og:preview:fail"]', { timeout: config.PUPPETEER.RENDER_TIMEOUT || 3000 }).then(() => false)
])
if (success === true) {
- const screenshot = await page.screenshot();
+ const screenshot = await page.screenshot({
+ captureBeyondViewport: false,
+ clip: { width: 1200, height: 600, x: 0, y: 0, scale: 1 },
+ });
return screenshot;
} else if (success === false) {
logger.warn(`failed to render ${path} for ${action} due to client-side error, e.g. requested an invalid txid`);
From bad73c180553bf830a407dea87556c357ceb7e4e Mon Sep 17 00:00:00 2001
From: Giovanni La Perna
Date: Fri, 7 Apr 2023 01:04:23 +0200
Subject: [PATCH 008/255] Create giovannilaperna.txt
---
contributors/giovannilaperna.txt | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 contributors/giovannilaperna.txt
diff --git a/contributors/giovannilaperna.txt b/contributors/giovannilaperna.txt
new file mode 100644
index 000000000..65a9adf54
--- /dev/null
+++ b/contributors/giovannilaperna.txt
@@ -0,0 +1,3 @@
+I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of April 7, 203.
+
+Signed: giovannilaperna
From 123b853205f22b6f8931bd0cdcbf2f6600d71160 Mon Sep 17 00:00:00 2001
From: Rex
Date: Sat, 8 Apr 2023 11:41:34 +0800
Subject: [PATCH 009/255] Add cla
---
contributors/nothing0012.txt | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 contributors/nothing0012.txt
diff --git a/contributors/nothing0012.txt b/contributors/nothing0012.txt
new file mode 100644
index 000000000..e26514d35
--- /dev/null
+++ b/contributors/nothing0012.txt
@@ -0,0 +1,3 @@
+I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of April 8, 2023.
+
+Signed: nothing0012
From 71935e29c8cd4453da5538bf395928d49bdc42b7 Mon Sep 17 00:00:00 2001
From: Giovanni La Perna
Date: Sat, 8 Apr 2023 11:19:04 +0200
Subject: [PATCH 010/255] Update and rename giovannilaperna.txt to
learntheropes.txt
change github username
---
contributors/{giovannilaperna.txt => learntheropes.txt} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename contributors/{giovannilaperna.txt => learntheropes.txt} (86%)
diff --git a/contributors/giovannilaperna.txt b/contributors/learntheropes.txt
similarity index 86%
rename from contributors/giovannilaperna.txt
rename to contributors/learntheropes.txt
index 65a9adf54..f8d79bf93 100644
--- a/contributors/giovannilaperna.txt
+++ b/contributors/learntheropes.txt
@@ -1,3 +1,3 @@
I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of April 7, 203.
-Signed: giovannilaperna
+Signed: learntheropes
From 22ee9916ddbe8f65130d2f63bae7aab739798e57 Mon Sep 17 00:00:00 2001
From: TechMiX
Date: Wed, 19 Apr 2023 12:14:21 +0200
Subject: [PATCH 011/255] fix change component and audit button position in RTL
mode
---
frontend/src/app/components/change/change.component.html | 2 +-
frontend/src/styles.scss | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/frontend/src/app/components/change/change.component.html b/frontend/src/app/components/change/change.component.html
index 117a0c534..ffc00bf5f 100644
--- a/frontend/src/app/components/change/change.component.html
+++ b/frontend/src/app/components/change/change.component.html
@@ -1,3 +1,3 @@
= 0 ? 'color: #42B747' : 'color: #B74242'">
- {{ change >= 0 ? '+' : '' }}{{ change | amountShortener }}%
+ {{ change >= 0 ? '+' : '' }}{{ change | amountShortener }}%
diff --git a/frontend/src/styles.scss b/frontend/src/styles.scss
index d9ea867dc..d64450b93 100644
--- a/frontend/src/styles.scss
+++ b/frontend/src/styles.scss
@@ -988,6 +988,10 @@ th {
margin-right: 10px;
}
}
+
+ .btn-audit {
+ margin-left: .5em;
+ }
}
.scriptmessage {
From 7b9fd8ac635e8d7d1acea436a8c62c75cb0000b2 Mon Sep 17 00:00:00 2001
From: Mononaut
Date: Wed, 26 Apr 2023 04:55:42 +0900
Subject: [PATCH 012/255] prevent table overflow in unfurl previews
---
.../components/address/address-preview.component.html | 2 +-
.../components/address/address-preview.component.scss | 5 +++++
.../app/components/block/block-preview.component.html | 2 +-
.../app/components/block/block-preview.component.scss | 5 +++++
.../app/lightning/channel/channel-preview.component.html | 2 +-
.../app/lightning/channel/channel-preview.component.scss | 5 +++++
.../src/app/lightning/node/node-preview.component.scss | 9 +++++----
7 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/frontend/src/app/components/address/address-preview.component.html b/frontend/src/app/components/address/address-preview.component.html
index 1924d1a4c..392cc971e 100644
--- a/frontend/src/app/components/address/address-preview.component.html
+++ b/frontend/src/app/components/address/address-preview.component.html
@@ -3,7 +3,7 @@
Address