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

16 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