Initial commit: snapshot of spesmilo/electrumx 2.0.0
Unmodified source tree of upstream commit 280cb339aa158e099eb936033eecd15719770651
("Merge pull request #389 from SomberNight/202607_release_2_0",
https://github.com/spesmilo/electrumx, release 2.0.0, 3 July 2026).
All Palladium-specific changes are in the commits that follow.
This commit is contained in:
commit
384d907c65
271 files changed
+27905
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
###################
|
||||
# install electrumx
|
||||
###################
|
||||
|
||||
# Remove "raspi-copies-and-fills" as it breaks the upgrade process
|
||||
sudo apt-get purge raspi-copies-and-fills
|
||||
|
||||
# upgrade raspbian to 'stretch' distribution
|
||||
sudo echo 'deb http://mirrordirector.raspbian.org/raspbian/ testing main contrib non-free rpi' > /etc/apt/sources.list.d/stretch.list
|
||||
sudo apt-get update
|
||||
sudo apt-get dist-upgrade
|
||||
sudo apt-get autoremove
|
||||
|
||||
# install electrumx dependencies
|
||||
sudo apt-get install python3-pip
|
||||
sudo apt-get install build-essential libc6-dev
|
||||
sudo apt-get install libncurses5-dev libncursesw5-dev
|
||||
sudo apt install libreadline6-dev/stable libreadline6/stable
|
||||
sudo apt-get install libleveldb-dev
|
||||
sudo apt-get install git
|
||||
sudo pip3 install plyvel
|
||||
|
||||
# install electrumx
|
||||
git clone https://github.com/spesmilo/electrumx.git
|
||||
cd electrumx
|
||||
sudo python3 -m pip install .
|
||||
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
###############
|
||||
# run_electrumx
|
||||
###############
|
||||
|
||||
# configure electrumx
|
||||
export COIN=Bitcoin
|
||||
export DAEMON_URL=http://rpcuser:rpcpassword@127.0.0.1
|
||||
export NET=mainnet
|
||||
export CACHE_MB=400
|
||||
export DB_DIRECTORY=/home/username/.electrumx/db
|
||||
export SSL_CERTFILE=/home/username/.electrumx/certfile.crt
|
||||
export SSL_KEYFILE=/home/username/.electrumx/keyfile.key
|
||||
export BANNER_FILE=/home/username/.electrumx/banner
|
||||
export DONATION_ADDRESS=your-donation-address
|
||||
|
||||
# connectivity
|
||||
export HOST=
|
||||
export TCP_PORT=50001
|
||||
export SSL_PORT=50002
|
||||
|
||||
# visibility
|
||||
export REPORT_HOST=hostname.com
|
||||
export RPC_PORT=8000
|
||||
|
||||
# run electrumx
|
||||
ulimit -n 10000
|
||||
/usr/local/bin/electrumx_server 2>> /home/username/.electrumx/electrumx.log >> /home/username/.electrumx/electrumx.log &
|
||||
|
||||
######################
|
||||
# auto-start electrumx
|
||||
######################
|
||||
|
||||
# add this line to crontab -e
|
||||
# @reboot /path/to/run_electrumx.sh
|
||||
Reference in new issue
Block a user