2020-05-25 13:58:46 +02:00
|
|
|
#!/usr/local/bin/zsh
|
2022-03-07 20:25:48 +01:00
|
|
|
cd "${HOME}/electrs"
|
|
|
|
#source "${HOME}/.cargo/env"
|
|
|
|
#export PATH="${HOME}/.cargo/bin:${PATH}"
|
2020-05-25 13:58:46 +02:00
|
|
|
|
|
|
|
until false
|
|
|
|
do
|
|
|
|
cargo run \
|
|
|
|
--release \
|
|
|
|
--bin electrs \
|
|
|
|
-- \
|
|
|
|
-vvvv \
|
|
|
|
--address-search \
|
2021-03-03 13:29:18 +01:00
|
|
|
--cors '*' \
|
2022-03-07 20:25:48 +01:00
|
|
|
--db-dir __ELECTRS_DATA_ROOT__ \
|
|
|
|
--daemon-dir "${HOME}" \
|
2020-05-25 13:58:46 +02:00
|
|
|
--http-addr '[::]:3000' \
|
2022-03-07 20:25:48 +01:00
|
|
|
--cookie '__BITCOIN_RPC_USER__:__BITCOIN_RPC_PASS__' \
|
|
|
|
--precache-scripts "${HOME}/electrs/contrib/popular-scripts.txt"
|
2021-02-04 04:17:28 +01:00
|
|
|
|
|
|
|
sleep 3
|
2020-05-25 13:58:46 +02:00
|
|
|
done
|