Merge pull request #18 from 0xOzgur/v1.4.20

V1.4.20 Update
This commit is contained in:
0xOzgur 2024-06-21 20:53:35 +03:00 committed by GitHub
commit 9d28327cb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 94 additions and 47 deletions

View File

@ -18,14 +18,14 @@ After first run, when you need to reach your node, you need to run only;
**Autoinstaller Script for Quilibrium as a Service**
Use below command to install v1.4.19.1
Use below command to install v1.4.20
wget -O - https://raw.githubusercontent.com/0xOzgur/QuilibriumTools/main/install/install_quilibrium_service.sh | bash
**Autoupdater**
If you need to update your node from previous version to 1.4.19.1, apply below command
If you need to update your node from previous version to 1.4.20, apply below command
wget -O - https://raw.githubusercontent.com/0xOzgur/QuilibriumTools/main/update/update.sh | bash

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Set the version number
VERSION="1.4.19.1"
VERSION="1.4.20"
# Determine the ExecStart line based on the architecture
ARCH=$(uname -m)

View File

@ -60,7 +60,7 @@ git checkout release-cdn
# Step 7:Build Docker Container
echo "⏳Building Ceremonyclient Container"
sleep 2 # Add a 2-second delay
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium:1.4.19.1 .1.4.19.1
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium:1.4.20 .1.4.20
# Step 8:Run Ceremonyclient Container
echo "✅Running Ceremonyclient Container"

View File

@ -1,6 +1,6 @@
#!/bin/bash
# Set the version number
VERSION="1.4.19.1"
VERSION="1.4.20"
cd ~
# Step 0: Welcome
echo "This script is made with ❤️ by 0xOzgur.eth @ https://quilibrium.space "
@ -94,8 +94,39 @@ cd ~/ceremonyclient/
# git remote set-url origin https://github.com/QuilibriumNetwork/ceremonyclient.git || git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git
git checkout release
# Get the system architecture
# ARCH=$(uname -m)
# Determine the ExecStart line based on the architecture
ARCH=$(uname -m)
OS=$(uname -s)
# Determine the node binary name based on the architecture and OS
if [ "$ARCH" = "x86_64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY="node-$VERSION-linux-amd64"
GO_BINARY="go1.22.4.linux-amd64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-linux-amd64"
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY="node-$VERSION-darwin-amd64"
GO_BINARY="go1.22.44.linux-amd64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-darwin-arm64"
fi
elif [ "$ARCH" = "aarch64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY="node-$VERSION-linux-arm64"
GO_BINARY="go1.22.4.linux-arm64.tar.gz"
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY="node-$VERSION-darwin-arm64"
GO_BINARY="go1.22.4.linux-arm64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-linux-arm64"
fi
fi
# Step 4:Download qClient
echo "⏳Downloading qClient"
sleep 1 # Add a 1-second delay
cd ~/ceremonyclient/client
wget https://releases.quilibrium.com/$QCLIENT_BINARY
mv $QCLIENT_BINARY qclient
chmod +x qclient
# Step 5:Determine the ExecStart line based on the architecture
# Get the current user's home directory

View File

@ -28,15 +28,15 @@ OS=$(uname -s)
# Determine the node binary name based on the architecture and OS
if [ "$ARCH" = "x86_64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY='node-1.4.19.1-linux-amd64'
NODE_BINARY='node-1.4.20-linux-amd64'
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY='node-1.4.19.1-darwin-amd64'
NODE_BINARY='node-1.4.20-darwin-amd64'
fi
elif [ "$ARCH" = "aarch64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY='node-1.4.19.1-linux-arm64'
NODE_BINARY='node-1.4.20-linux-arm64'
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY='node-1.4.19.1-darwin-arm64'
NODE_BINARY='node-1.4.20-darwin-arm64'
fi
fi

View File

@ -17,29 +17,6 @@ alias wttr='curl wttr.in'
neofetch
# Version of the node binary to use
VERSION="1.4.19.1"
# Get system information
ARCH=$(uname -m)
OS=$(uname -s)
# Determine the node binary name based on the architecture and OS
if [ "$ARCH" = "x86_64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY="node-$VERSION-linux-amd64"
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY="node-$VERSION-darwin-amd64"
fi
elif [ "$ARCH" = "aarch64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY="node-$VERSION-linux-arm64"
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY="node-$VERSION-darwin-arm64"
fi
fi
# Shortcuts for Docker
alias dpeer-count='cd ~/ceremonyclient/ && docker compose exec node grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerManifests | grep peerId | wc -l'
alias dnode-info='cd ~/ceremonyclient/ && docker compose exec node node -node-info && cd ~'
@ -50,12 +27,13 @@ alias dstart='cd ~/ceremonyclient/ && docker compose up -d && cd ~'
alias drestart='cd ~/ceremonyclient/ && docker compose down && docker compose up -d && cd ~'
alias dstop='cd ~/ceremonyclient/ && docker compose down && cd ~'
# Shortcuts for Service
alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerManifests | grep peerId | wc -l && cd ~'
alias node-info='cd ~/ceremonyclient/node && ./${NODE_BINARY} -node-info && cd ~'
alias db-console='cd ~/ceremonyclient/node && ./${NODE_BINARY} --db-console && cd ~'
alias balance='cd ~/ceremonyclient/node && ./${NODE_BINARY} -balance && cd ~'
alias nlog='sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat'
alias nstart='service ceremonyclient start'
alias nrestart='service ceremonyclient restart'
alias nstop='service ceremonyclient stop'
alias peer-count="cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerManifests | grep peerId | wc -l && cd ~"
alias node-info="cd ~/ceremonyclient/node && ./node-1.4.20-linux-amd64 -node-info && cd ~"
alias db-console="cd ~/ceremonyclient/node && ./node-1.4.20-linux-amd64 --db-console && cd ~"
alias balance="cd ~/ceremonyclient/node && ./node-1.4.20-linux-amd64 -balance && cd ~"
alias nlog="sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat"
alias increment="sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat | time_taken"
alias nstart="service ceremonyclient start"
alias nrestart="service ceremonyclient restart"
alias nstop="service ceremonyclient stop"
alias benchmark='increment=$(journalctl -u ceremonyclient -ocat -n 100 | grep increment | awk -F'\[:,\}\]' '\''{for(i=1;i<=NF;i++){if($i~"increment"){gsub(/[ "]/,"",$i); print $(i+1)}}}'\'' | tail -n 1) && difficulty=$(expr 200000 - $increment / 4) && cpus=$(nproc) && score=$(echo "scale=2; ($cpus*$cpus*1000)/$difficulty" | bc) && echo "" && echo "CPU(s): $cpus" && echo "Increment: $increment" && echo "Difficulty: $difficulty" && echo "Score: $score"'

View File

@ -6,7 +6,7 @@ source ~/.bashrc
clear
# Set the version number
VERSION="1.4.19.1"
VERSION="1.4.20"
# Determine the ExecStart line based on the architecture
ARCH=$(uname -m)
@ -17,9 +17,11 @@ if [ "$ARCH" = "x86_64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY="node-$VERSION-linux-amd64"
GO_BINARY="go1.22.4.linux-amd64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-linux-amd64"
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY="node-$VERSION-darwin-amd64"
GO_BINARY="go1.22.44.linux-amd64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-darwin-arm64"
fi
elif [ "$ARCH" = "aarch64" ]; then
if [ "$OS" = "Linux" ]; then
@ -28,6 +30,7 @@ elif [ "$ARCH" = "aarch64" ]; then
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY="node-$VERSION-darwin-arm64"
GO_BINARY="go1.22.4.linux-arm64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-linux-arm64"
fi
fi

View File

@ -1,5 +1,5 @@
#!/bin/bash
VERSION="1.4.19.1"
VERSION="1.4.20"
# Step 0: Welcome
echo "This script is made with ❤️ by 0xOzgur.eth @ https://quilibrium.space"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v$VERSION!"
@ -23,6 +23,41 @@ git branch -D release
git pull
git checkout release
# Determine the ExecStart line based on the architecture
ARCH=$(uname -m)
OS=$(uname -s)
# Determine the node binary name based on the architecture and OS
if [ "$ARCH" = "x86_64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY="node-$VERSION-linux-amd64"
GO_BINARY="go1.22.4.linux-amd64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-linux-amd64"
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY="node-$VERSION-darwin-amd64"
GO_BINARY="go1.22.44.linux-amd64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-darwin-arm64"
fi
elif [ "$ARCH" = "aarch64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY="node-$VERSION-linux-arm64"
GO_BINARY="go1.22.4.linux-arm64.tar.gz"
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY="node-$VERSION-darwin-arm64"
GO_BINARY="go1.22.4.linux-arm64.tar.gz"
QCLIENT_BINARY="qclient-$VERSION-linux-arm64"
fi
fi
# Step 4:Update qClient
echo "Updating qClient"
sleep 1 # Add a 1-second delay
cd ~/ceremonyclient/client
rm -f qclient
wget https://releases.quilibrium.com/$QCLIENT_BINARY
mv $QCLIENT_BINARY qclient
chmod +x qclient
# Get the current user's home directory
HOME=$(eval echo ~$HOME_DIR)

View File

@ -2,7 +2,7 @@
# Step 0: Welcome
echo "This script is made with ❤️ by 0xOzgur.eth"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.19.1!"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.20!"
echo "⏳Processing..."
sleep 10 # Add a 10-second delay
@ -10,7 +10,7 @@ sleep 10 # Add a 10-second delay
service ceremonyclient stop
# Step 1:Download Binary
echo "⏳ Downloading New Release v1.4.19.1"
echo "⏳ Downloading New Release v1.4.20"
cd ~/ceremonyclient
git pull
git checkout release-cdn
@ -18,7 +18,7 @@ git checkout release-cdn
# Step 7:Build Docker Container
echo "⏳Building Ceremonyclient Container"
sleep 2 # Add a 2-second delay
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.19.1 .
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.20 .
# Step 8:Run Ceremonyclient Container
echo "✅Running Ceremonyclient Container"