mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 04:54:18 +01:00
electrs script update
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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"
|
||||
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
|
||||
Reference in New Issue
Block a user