Starting a Full Node
For running a full node of QI Blockchain, execute the following shell script with root privileges. It will install and run Besu Client on your linux instance.
Mainnet Shell Script
#!/bin/sh
sudo ufw allow 30303
sudo apt-get update
sudo apt install default-jdk
java - version
wget https://hyperledger.jfrog.io/artifactory/besu-binaries/besu/22.7.4/besu-22.7.4.zip
sudo apt-get install unzip
unzip besu-22.7.4.zip
cd besu-22.7.4/bin
export PATH=$PWD:$PATH
cd
mkdir EVMProtocol
cd EVMProtocol
echo "Copy the mainnet genesis file on nano text editor and Press control+x and then press y and hit the enter to save genesis data"
nano genesis.json
echo "Please enter miner address for this Node"
read minerAddress
echo "Run below command in $HOME/EVMProtocol directory"
besu --data-path=data --genesis-file=genesis.json --host-allowlist="*" --rpc-http-cors-origins="all" --miner-coinbase $minerAddress --rpc-http-host=0.0.0.0 --max-peers=420000 --rpc-http-enabled=true --miner-enabled=true --rpc-http-max-active-connections=4000000 --rpc-ws-max-active-connections=4000000 --tx-pool-max-size=8192 --revert-reason-enabled=true --metrics-enabled=true --rpc-http-api=ADMIN,ETH,WEB3,NET
You can also download the mainnet shell script from here:
mainNetPeer.sh
995B
Binary
Testnet Shell Script
#!/bin/sh
sudo ufw allow 30303
sudo apt-get update
sudo apt install default-jdk
java - version
wget https://hyperledger.jfrog.io/artifactory/besu-binaries/besu/22.7.4/besu-22.7.4.zip
sudo apt-get install unzip
unzip besu-22.7.4.zip
cd besu-22.7.4/bin
export PATH=$PWD:$PATH
cd
mkdir EVMProtocol
cd EVMProtocol
echo "Copy the testnet genesis file details on nano text editor and Press control+x and then press y and hit the enter to save genesis data"
nano genesis.json
echo "Please enter miner address for this Node"
read minerAddress
echo "Run below command in $HOME/EVMProtocol directory"
besu --data-path=data --genesis-file=genesis.json --bootnodes=enode://90438ffe08ad7c446f9a789ffbfc6cc591501fa92da60a19899608d44295ede86[email protected]44.198.86.50:30303 --miner-coinbase $minerAddress --host-allowlist="*" --rpc-http-cors-origins="all" --rpc-http-host=0.0.0.0 --max-peers=420000 --miner-enabled=true --rpc-http-enabled=true --rpc-http-max-active-connections=4000000 --rpc-ws-max-active-connections=4000000 --tx-pool-max-size=8192 --revert-reason-enabled=true --metrics-enabled=true --rpc-http-api=ADMIN,ETH,WEB3,NET
You can also download the testnet shell script from here:
testNetPeer.sh
1KB
Binary
If you do not wish to mine on Blockchain you can simply remove
--miner-coinbase $minerAddress
and --miner-enabled=true
from the last command in script.By default RPC port is 8545. If the port is open, anyone can make RPC calls to your node outside of your server. If you really need to open port, please read the documentation at the link below to disable some of the functionality. Also you can change port and configure firewall to reduce attacks.
Last modified 7mo ago