Skip to content

Commit

Permalink
ask for PASSWORD_B upfront
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Aug 22, 2019
1 parent de12c21 commit fa39958
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions electrs/1_electrs_on_RaspiBlitz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# $ wget https://github.com/openoms/bitcoin-tutorials/raw/master/electrs/electrs_install_on_RaspiBlitz.sh && bash electrs_install_on_RaspiBlitz.sh

# https://github.com/romanz/electrs/blob/master/doc/usage.md

echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER] (needed for Electrs to access the bitcoind RPC):"
read PASSWORD_B

echo ""
echo "***"
echo "Installing Rust - press 1 and [ENTER] when prompted"
Expand Down Expand Up @@ -32,9 +36,6 @@ sudo mkdir /mnt/hdd/electrs
sudo chown -R admin:admin /mnt/hdd/electrs
sudo ufw allow 50001

echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER]:"
read PASSWORD_B

# Run with password B filled in:
cargo run --release -- -vvvv --index-batch-size=10 --jsonrpc-import --db-dir /mnt/hdd/electrs/db --cookie="raspibolt:$PASSWORD_B" --electrum-rpc-addr="0.0.0.0:50001"

Expand Down
7 changes: 4 additions & 3 deletions electrs/t1_electrs_on_RaspiBlitz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# $ wget https://github.com/openoms/bitcoin-tutorials/raw/master/electrs/electrs_install_on_RaspiBlitz.sh && bash electrs_install_on_RaspiBlitz.sh

# https://github.com/romanz/electrs/blob/master/doc/usage.md

echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER] (needed for Electrs to access the bitcoind RPC):"
read PASSWORD_B

echo ""
echo "***"
echo "Installing Rust - press 1 and [ENTER] when prompted"
Expand Down Expand Up @@ -32,9 +36,6 @@ sudo mkdir /mnt/hdd/electrs
sudo chown -R admin:admin /mnt/hdd/electrs
sudo ufw allow 60001

echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER]:"
read PASSWORD_B

# Run with password B filled in:
cargo run --release -- -vvvv --index-batch-size=10 --jsonrpc-import --db-dir /mnt/hdd/electrs/testnetdb --cookie="raspibolt:$PASSWORD_B" --electrum-rpc-addr="0.0.0.0:60001" --network testnet --timestamp

Expand Down

0 comments on commit fa39958

Please sign in to comment.