diff --git a/electrs/README.md b/electrs/README.md index f61840d..4cb6468 100644 --- a/electrs/README.md +++ b/electrs/README.md @@ -1,6 +1,11 @@ ## Install the Electrum Server in Rust (electrs) on a RaspiBlitz * tested on the Odroid HC1 and XU4 +Will take 40 minutes to build the code from source. +Building the electrs database (need to be done once) takes ~18 hours. +on an Odroid HC1 with SSD and requires ~50 Gb diskpace. + +Possible, but not recommended to use on a computer with less than 2 Gb RAM Download this script to your RaspiBlitz: `wget https://github.com/openoms/bitcoin-tutorials/raw/master/electrs/electrs_install_on_RaspiBlitz.sh` diff --git a/electrs/electrs_install_on_RaspiBlitz.sh b/electrs/electrs_install_on_RaspiBlitz.sh index 36cb2c5..8910802 100644 --- a/electrs/electrs_install_on_RaspiBlitz.sh +++ b/electrs/electrs_install_on_RaspiBlitz.sh @@ -28,7 +28,7 @@ cargo build --release echo "" echo "***" -echo "The electrs database will be built in /mnt/hdd/electrs/db. Takes ~18 hours and ~38Gb diskspace" +echo "The electrs database will be built in /mnt/hdd/electrs/db. Takes ~18 hours and ~50Gb diskspace" echo "***" echo "" @@ -40,4 +40,11 @@ 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" \ No newline at end of file +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" + +# to preserve settings: +# see https://github.com/romanz/electrs/blob/master/src/config.rs +# sudo nano $HOME/electrs/src/config.rs +# change the lines: +# 73: from: .takes_value(true), to: .default_value("raspibolt:PASSWORD B"), +# 132: from .default_value("Welcome to electrs (Electrum Rust Server)!") to your custom message \ No newline at end of file