electrs/server.sh
Roman Zeyde 9cd09afa22
Some checks failed
electrs / Build (push) Has been cancelled
electrs / Build-1 (push) Has been cancelled
electrs / Build-2 (push) Has been cancelled
electrs / Integration (push) Has been cancelled
Update documentation for the upcoming release
2026-07-18 21:39:01 +02:00

15 lines
285 B
Bash
Executable file

#!/bin/bash
set -eux
cd `dirname $0`
cargo fmt --all
cargo build --all --features "metrics_process" --release
NETWORK=$1
shift
DB=${DB-./db}
export RUST_LOG=${RUST_LOG-INFO}
target/release/electrs --network $NETWORK --db-dir $DB --daemon-dir $HOME/.bitcoin $*
# use SIGINT to quit