electrs/server.sh
Roman Zeyde 0fe14fdfd9
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
Switch to bindex
2026-05-31 17:53:21 +02:00

15 lines
286 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