1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00
electrs/server.sh

16 lines
293 B
Bash
Raw Normal View History

2021-03-26 09:05:58 +01:00
#!/bin/bash
set -eux
cd `dirname $0`
cargo fmt --all
cargo build --all --features "metrics_process" --release
2021-03-26 09:05:58 +01:00
NETWORK=$1
shift
2023-08-18 21:02:47 +02:00
DB=${DB-./db}
2021-08-22 21:33:09 +02:00
export RUST_LOG=${RUST_LOG-electrs=INFO}
target/release/electrs --network $NETWORK --db-dir $DB --daemon-dir $HOME/.bitcoin $*
2021-03-26 09:05:58 +01:00
# use SIGINT to quit