mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 09:54:09 +01:00
Add helper scripts
This commit is contained in:
parent
82c50feea2
commit
eb413a0117
15
query.sh
Executable file
15
query.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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
|
16
server.sh
Executable file
16
server.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user