π»Installation
Server preparation
apt update && apt upgrade -yapt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip chrony libleveldb-dev liblz4-tool -yInstall GO
ver="1.21.3" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go versionβ οΈ Important: that your ACN ports are open (currently port 20203). This can be changed after launch by updating your enodes. If the port is not open, your validator will be considered offline and will be jailed.
Install ethkey, which we will need later to extract the private key
git clone https://github.com/autonity/autonity.git autonity1
cd autonity1
make all
mv build/bin/ethkey /usr/local/bin
ethkey --version
#ethkey version 1.0.2-alpha-8be1825c-20241209Important: If you have problems installing aut or other binaries, add the following variables and do a make clean before reinstalling
Node installation
Install Autonity Utility (aut)
Create an .autrc file, thanks to which the aut utility will search for a specific configuration
Installing Autonity node
Create a directory autonity-chaindata to store autonity working data and create the keys we need
We need to create nodekey, tresure.key and oracle.key
nodekey is the main node key from which the validator address and enode are generated
tresure.key will be our treasury. With this key we will make a delegation to the validator and we will receive rewards to this key
oracle.key will be used as a cryptographic identifier of the Oracle server and will be used to sign price report transactions sent to the Oracle Contract on-chain
Transaction costs for sending price report data on the network are reimbursed, but you must first top up the oracle.key account to prevent an insufficient gas error on the first transaction.
!!!Be sure to top up the Oracle wallet after starting the node!!!
Important: Be sure to make backup copies of your keys. Also remember the passphrase you used when creating it! If you do not remember the password, you will not be able to decrypt this private key file and you may lose all funds associated with this account!!!
Now we add our tresure key to .autrc
Create a service file

Last updated