From ebea0df27336d27e6a8870cae88704ee5c410270 Mon Sep 17 00:00:00 2001 From: openoms Date: Sat, 22 Jan 2022 11:35:31 +0000 Subject: [PATCH] electrumx: add notes for the rpi --- electrumx.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/electrumx.md b/electrumx.md index 90a46bc..85d8d46 100644 --- a/electrumx.md +++ b/electrumx.md @@ -1,11 +1,13 @@ # ElectrumX on a RaspiBlitz -This is a rought overview, the guide is work in progress. +This is a rough overview, the guide is work in progress. Tested environments: * X86_64 Xeon E5 with 16GB RAM and SSD storage - estimated to sync in 5 days * bulding the database on a Raspberry Pi will likely take weeks +Issue: + ## Prepare the system and directories ``` # create a dedicated user @@ -18,7 +20,13 @@ cd electrumx # installation # dependencies sudo -u electrumx pip install aiohttp pylru +# for thr RPi4 see the dependencies installed here: +# https://github.com/spesmilo/electrumx/blob/master/contrib/raspberrypi3/install_electrumx.sh + +# places the binaries in /home/electrumx/.local/bin/ sudo -u electrumx pip3 install . + +# alternative install method (places the binaries in /usr/local/bin): # sudo -u electrumx python3 setup.py build # sudo python3 setup.py install @@ -36,6 +44,7 @@ sudo chown -R electrumx:electrumx /home/electrumx/.electrumx * * Can paste the this as a block to create the coinfig file, but fill in the PASSWORD_B (Bitcoin Core RPC password) * the ports 50010 and 50011 are used to not interfere with a possible Electrs instance +* edit afterwards with `sudo nano /home/electrumx/.electrumx/electrumx.conf` ``` echo "\ DB_DIRECTORY=/home/electrumx/.electrumx/db @@ -79,7 +88,11 @@ WantedBy=multi-user.target ``` ## Start -* dependin on the available RAM it is a good idea to keep at least 10GB swap: +* depending on the available RAM it is a good idea to keep at least 10GB swap: + + can consider ZRAM: + + ``` sudo systemctl enable electrumx sudo systemctl start electrumx @@ -101,7 +114,7 @@ sudo userdel -rf electrumx ``` ## Set SSL - +* ## Sources: