Commit 356cf0a3 authored by +flatcloud0b3's avatar +flatcloud0b3 💬
Browse files

Merge branch '_feat_electrs_v0.9.0' into 'master'

upgrade Electrum Server to electrs v0.9.0

See merge request !1
parents 5bec4e92 71f4eae1
......@@ -111,6 +111,10 @@ BITCOIND_ZMQ_RAWTXS=9501
# Type: integer
BITCOIND_ZMQ_BLK_HASH=9502
# Port for connecting to bitcoin p2p protocol
# Set value to 8333 if BITCOIND_INSTALL is set to 'on'
# Type: integer
BITCOIND_P2P_PORT=8333
#
# SHUTDOWN
......
FROM debian:11
FROM debian:11-slim
ENV INDEXER_HOME /home/indexer
ENV ELECTRS_PGP_SIG_URL https://github.com/flatcloud0b3/electrs/releases/download/v0.8.12/electrs-0.8.12-linux-gnu-ppc64le.deb.sig
ENV ELECTRS_DEB_URL https://github.com/flatcloud0b3/electrs/releases/download/v0.8.12/electrs-0.8.12-linux-gnu-ppc64le.deb
ENV ELECTRS_SHA256 63688d8d0a2ecb55d1eadc1e32db9fe9de355b6509c19c6f453000f9f5a880fb
ENV ELECTRS_DEB_SIG electrs-0.8.12-linux-gnu-ppc64le.deb.sig
ENV ELECTRS_PGP_SIG_URL https://github.com/flatcloud0b3/electrs/releases/download/v0.9.0/electrs-0.9.0-linux-gnu-ppc64le.deb.sig
ENV ELECTRS_DEB_URL https://github.com/flatcloud0b3/electrs/releases/download/v0.9.0/electrs-0.9.0-linux-gnu-ppc64le.deb
ENV ELECTRS_SHA256 5154608db5be094c5a862dd60965dae64734aa1d183665824ef782da2bc6b03f
ENV ELECTRS_DEB_SIG electrs-0.9.0-linux-gnu-ppc64le.deb.sig
ENV PGP_KS_URL hkp://keyserver.ubuntu.com
ENV FLATCLOUD_PGP_KEY E28D24AA6FE1AD3F6F258BA0D9CE2F6D968DDC54
......@@ -25,8 +25,8 @@ RUN set -ex && \
gpg --keyserver "$PGP_KS_URL" --recv "$FLATCLOUD_PGP_KEY" && \
wget "$ELECTRS_PGP_SIG_URL" && \
gpg --verify "$ELECTRS_DEB_SIG" && \
echo "$ELECTRS_SHA256 electrs-0.8.12-linux-gnu-ppc64le.deb" | sha256sum -c - && \
dpkg -i electrs-0.8.12-linux-gnu-ppc64le.deb && \
echo "$ELECTRS_SHA256 electrs-0.9.0-linux-gnu-ppc64le.deb" | sha256sum -c - && \
dpkg -i electrs-0.9.0-linux-gnu-ppc64le.deb && \
rm -rf /tmp/*
# Create group and user indexer
......
......@@ -2,14 +2,13 @@
set -e
indexer_options=(
-vvvv
-vv
--index-batch-size="$INDEXER_BATCH_SIZE"
--jsonrpc-import
--db-dir="/home/indexer/db"
--electrum-rpc-addr="$NET_DOJO_INDEXER_IPV4:50001"
--daemon-p2p-addr="$BITCOIND_IP:$BITCOIND_P2P_PORT"
--daemon-rpc-addr="$BITCOIND_IP:$BITCOIND_RPC_PORT"
--txid-limit="$INDEXER_TXID_LIMIT"
--blocktxids-cache-size-mb="$INDEXER_BLK_TXIDS_CACHE_SIZE_MB"
--electrum-rpc-addr="$NET_DOJO_INDEXER_IPV4:$INDEXER_RPC_PORT"
--index-lookup-limit="$INDEXER_TXID_LIMIT"
)
if [ "$COMMON_BTC_NETWORK" == "testnet" ]; then
......@@ -19,4 +18,3 @@ else
fi
electrs "${indexer_options[@]}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment