1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00
electrs/server.sh
2020-10-25 14:24:24 +02:00

17 lines
300 B
Bash
Executable File

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