Docker: use fresh checkpoints for faster Monero sync
This commit is contained in:
@@ -611,7 +611,7 @@ class MoneroConfigForm(ConfigFormBase):
|
|||||||
self.sync_pruned_blocks = self.add(
|
self.sync_pruned_blocks = self.add(
|
||||||
npyscreen.Checkbox,
|
npyscreen.Checkbox,
|
||||||
name="Sync Pruned Blocks",
|
name="Sync Pruned Blocks",
|
||||||
value=False,
|
value=True,
|
||||||
begin_entry_at=self.name_size,
|
begin_entry_at=self.name_size,
|
||||||
relx=self.indent,
|
relx=self.indent,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"limit_data_rates": false,
|
"limit_data_rates": false,
|
||||||
"rate_limit_up": "2048",
|
"rate_limit_up": "2048",
|
||||||
"rate_limit_down": "8192",
|
"rate_limit_down": "8192",
|
||||||
"sync_pruned_blocks": false,
|
"sync_pruned_blocks": true,
|
||||||
"fast_sync": true,
|
"fast_sync": true,
|
||||||
"monero_options": "",
|
"monero_options": "",
|
||||||
"public_monero_node": "",
|
"public_monero_node": "",
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"limit_data_rates": false,
|
"limit_data_rates": false,
|
||||||
"rate_limit_up": "2048",
|
"rate_limit_up": "2048",
|
||||||
"rate_limit_down": "8192",
|
"rate_limit_down": "8192",
|
||||||
"sync_pruned_blocks": false,
|
"sync_pruned_blocks": true,
|
||||||
"fast_sync": true,
|
"fast_sync": true,
|
||||||
"monero_options": "",
|
"monero_options": "",
|
||||||
"public_monero_node": "",
|
"public_monero_node": "",
|
||||||
|
|||||||
@@ -111,6 +111,8 @@ services:
|
|||||||
|
|
||||||
--prune-blockchain
|
--prune-blockchain
|
||||||
|
|
||||||
|
--sync-pruned-blocks
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,9 @@
|
|||||||
FROM ubuntu:22.04 as builder
|
FROM ubuntu:22.04 as builder
|
||||||
ARG MONERO_GIT_TAG="latest"
|
ARG MONERO_GIT_TAG="latest"
|
||||||
|
|
||||||
RUN set -e && \
|
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
|
||||||
apt-get update -q -y --no-install-recommends && \
|
|
||||||
|
RUN apt-get update -q -y --no-install-recommends && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recommends \
|
DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recommends \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
@@ -26,13 +27,17 @@ RUN set -e && \
|
|||||||
python3 \
|
python3 \
|
||||||
gperf
|
gperf
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN git clone --recursive --branch release-v0.18 https://github.com/monero-project/monero && \
|
RUN git clone --recursive --branch release-v0.18 https://github.com/monero-project/monero && \
|
||||||
cd monero && \
|
cd monero && \
|
||||||
if [ "x$MONERO_GIT_TAG" = "xlatest" ]; then MONERO_GIT_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)); fi && \
|
if [ "x$MONERO_GIT_TAG" = "xlatest" ]; then MONERO_GIT_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)); fi && \
|
||||||
git checkout $MONERO_GIT_TAG && \
|
git checkout $MONERO_GIT_TAG && \
|
||||||
git submodule sync && git submodule update --init --force --recursive && \
|
git submodule sync && git submodule update --init --force --recursive && \
|
||||||
|
curl -L -O https://p2pool.io/checkpoints/checkpoints.dat && \
|
||||||
|
curl -L -O https://p2pool.io/checkpoints/checkpoints.patch && \
|
||||||
|
git apply checkpoints.patch && \
|
||||||
|
cp -f checkpoints.dat src/blocks && \
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
@@ -42,8 +47,9 @@ FROM ubuntu:22.04
|
|||||||
|
|
||||||
COPY --from=0 /src/monero/build/Linux/*/release/bin /usr/local/bin/
|
COPY --from=0 /src/monero/build/Linux/*/release/bin /usr/local/bin/
|
||||||
|
|
||||||
RUN set -e && \
|
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
|
||||||
apt-get update -q -y --no-install-recommends && \
|
|
||||||
|
RUN apt-get update -q -y --no-install-recommends && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recommends \
|
DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
netcat \
|
netcat \
|
||||||
|
|||||||
Reference in New Issue
Block a user