electrs/query.sh
2020-10-25 14:24:24 +02:00

15 lines
258 B
Bash
Executable file

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