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 \
|
|
|
|
--features liquid \
|
|
|
|
--bin electrs \
|
|
|
|
-- \
|
|
|
|
-vvv \
|
2022-03-07 20:25:48 +01:00
|
|
|
--asset-db-path "${HOME}/asset_registry_db" \
|
2020-05-25 13:58:46 +02:00
|
|
|
--address-search \
|
2021-03-03 13:29:18 +01:00
|
|
|
--cors '*' \
|
2022-03-07 20:25:48 +01:00
|
|
|
--db-dir __ELECTRS_DATA_ROOT__ \
|
2020-05-25 13:58:46 +02:00
|
|
|
--network liquid \
|
2022-03-07 20:25:48 +01:00
|
|
|
--daemon-dir "${HOME}" \
|
2020-05-25 13:58:46 +02:00
|
|
|
--http-addr '[::]:3001' \
|
2022-03-07 20:25:48 +01:00
|
|
|
--cookie '__ELEMENTS_RPC_USER__:__ELEMENTS_RPC_PASS__' \
|
|
|
|
--precache-scripts "${HOME}/electrs/contrib/popular-scripts.txt"
|
2020-05-25 13:58:46 +02:00
|
|
|
sleep 1
|
|
|
|
done
|