electrs/query.sh
2021-02-03 18:16:55 +02:00

15 lines
259 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 ./db1 --daemon-dir $HOME/.bitcoin"
export RUST_LOG=${RUST_LOG-info}
$QUERY $*
# use SIGINT to quit