1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00
electrs/server.sh
2021-04-14 18:38:59 +03:00

17 lines
299 B
Bash
Executable File

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