Skip to content

Commit

Permalink
fixes for pruned node start (#149)
Browse files Browse the repository at this point in the history
* increase required space for pruned chain download

* don't protect home as bitcoind binary is there

* format UDPATE menu
  • Loading branch information
openoms authored Mar 10, 2024
1 parent 11c2e0d commit 0126005
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions scripts/_functions.bitcoincore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ StandardError=journal
PrivateTmp=true
# Mount /usr, /boot/ and /etc read-only for the process.
ProtectSystem=full
# Deny access to /home, /root and /run/user
ProtectHome=true
# Disallow the process and all of its children to gain
# new privileges through execve().
NoNewPrivileges=true
Expand Down
2 changes: 1 addition & 1 deletion scripts/menu.update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/joinmarket/_functions.sh

# BASIC MENU INFO
HEIGHT=15
WIDTH=56
WIDTH=57
CHOICE_HEIGHT=4
TITLE="Update options"
MENU="
Expand Down
14 changes: 7 additions & 7 deletions scripts/standalone/_functions.standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ function downloadSnapShot() {

echo "# Check available diskspace"
FREE=$(df -k --output=avail "$PWD" | tail -n1) # df -k not df -h
if [ $FREE -lt 12582912 ]; then # 12G = 12*1024*1024k
if [ $FREE -lt 21000000 ]; then
echo "# The free space is only $FREE bytes!"
echo "# Would need ~12GB free space to download and extract the snapshot."
echo "# Would need ~21GB free space to download and extract the snapshot."
echo "# Press ENTER to continue to download regardless or CTRL+C to exit."
read key
else
echo "# OK, more than 12GB is free!"
echo "# OK, more than 21GB is free!"
fi
sudo -u joinmarket mkdir /home/joinmarket/download 2>/dev/null
cd /home/joinmarket/download || exit 1
Expand Down Expand Up @@ -107,13 +107,13 @@ function downloadSnapShot() {

echo "# Extracting to /home/store/app-data/.bitcoin ..."
FREE=$(df -k --output=avail "$PWD" | tail -n1) # df -k not df -h
if [ $FREE -lt 7340032 ]; then # 7G = 7*1024*1024k
if [ $FREE -lt 11000000 ]; then
echo "# The free space is only $FREE bytes!"
echo "# Would need ~7GB free space to extract the snapshot."
echo "# Press ENTER to continue to download regardless or CTRL+C to exit."
echo "# Would need ~11GB free space to extract the snapshot."
echo "# Press ENTER to continue to extract it regardless or CTRL+C to exit."
read key
else
echo "# OK, more than 7GB is free!"
echo "# OK, more than 11GB is free!"
fi
addUserStore
if [ ! -d /home/store/app-data/.bitcoin ]; then
Expand Down

0 comments on commit 0126005

Please sign in to comment.