Start Time: April 24th 2023 00:00:00 UTC
Duration: 4 weeks
Theme: Node infrastructure
In order to get more info about tasks, visit: https://game.autonity.org/round-2/
#You can see Turkish Guide @ https://github.com/dacyxs/Autonity/blob/main/readmetr.md
To run an Autonity Go Client node, we recommend using a host machine (physical or virtual) with the following minimum specification:
Requirement At least Recommended OS Ubuntu 20.04 LTS Ubuntu 20.04 LTS CPU 3.10 GHz with 8 CPU’s 3.10 GHz with 16 CPU’s RAM 8GB 16GB Storage 1024GB free storage for full nodes and Validators 1024 GB free storage for full nodes and validators
A public-facing internet connection with static IP is required. Incoming traffic must be allowed on the following:
TCP, UDP 30303 for node p2p (DEVp2p) communication. TCP 8545 to make http RPC connections to the node. TCP 8546 to make WebSocket RPC connections to the node. TCP 6060 to export Autonity metrics (recommended but not required)
Check if the port is already open by running the following command(Replace <port_number> with the number of the port you want to check.): sudo netstat -tuln | grep <port_number>
If the port is not already open, you can open it by modifying the firewall settings using iptables. For example, to open port 80 for HTTP traffic, you can run the following command: sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
If you have a firewall management tool such as ufw (Uncomplicated Firewall) installed, you can use it to open the port instead. For example, to open port 80 for HTTP traffic using ufw, you can run the following commands: sudo ufw allow 80/tcp sudo ufw reload
Finally, you may need to restart any services that are using the port for the changes to take effect. For example, if you opened port 80 for HTTP traffic, you would need to restart your web server. In order to open all related ports you can run below snippet;
sudo iptables -A INPUT -p tcp --dport 30303 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 30303 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 8545 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 8546 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 6060 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
sudo ufw allow 30303/tcp
sudo ufw allow 30303/udp
sudo ufw allow 8545/tcp
sudo ufw allow 8546/tcp
sudo ufw allow 6060/tcp
sudo ufw allow 22/tcp
sudo ufw reload
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
sudo apt-get install git
wget https://golang.org/dl/go1.17.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.17.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.profile
go version
sudo apt-get install build-essential
gcc --version
sudo apt install docker.io -y
sudo systemctl enable --now docker
systemctl restart docker.service
sudo systemctl start docker
sudo systemctl enable docker
sudo docker run hello-world
nano /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "500m",
"max-file": "20"
}
}
Press CTRL + X Then Y to save and quit.
sudo systemctl restart docker
wget https://github.com/autonity/autonity/releases/download/v0.10.1/autonity-linux-amd64-0.10.1.tar.gz
tar -xzvf autonity-linux-amd64-0.10.1.tar.gz
(Optional) Copy the binary to /usr/local/bin so it can be accessed by all users, or other location in your PATH :
cd build/bin
sudo cp -r autonity /usr/local/bin/autonity
cd
docker pull ghcr.io/autonity/autonity:latest
Verify the authenticity of the Autonity Docker images against the official image digests. Output should be as followed.
docker images --digests ghcr.io/autonity/autonity
./autonity version
Autonity Version: 0.10.1 Architecture: amd64 Protocol Versions: [66] Go Version: go1.18.2 Operating System: linux GOPATH= GOROOT=/usr/local/go
docker run --rm ghcr.io/autonity/autonity:latest version
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget
wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
tar -xf Python-3.9.6.tgz
cd Python-3.9.6/
./configure --enable-optimizations
apt install python3-pip
pip install pipx
python3 -m pip install --user pipx
python3 -m pipx ensurepath
python3 -m pip install --user --upgrade pipx
apt install python3.8-venv
sudo reboot
sudo pipx install git+https://github.com/autonity/aut.git
nano /root/.autrc
[aut]
rpc_endpoint = https://rpc1.piccadilly.autonity.org/
nodekey=autonity-chaindata/autonity/nodekey
keyfile=.autonity/keystore/keystorenameofyours
mkdir autonity-chaindata
apt install screen
screen -S node
docker run \
-t -i \
--volume $(pwd)/autonity-chaindata:/autonity-chaindata \
--publish 8545:8545 \
--publish 8546:8546 \
--publish 30303:30303 \
--publish 30303:30303/udp \
--publish 6060:6060 \
--name autonity \
--rm \
ghcr.io/autonity/autonity:latest \
--datadir ./autonity-chaindata \
--piccadilly \
--http \
--http.addr 0.0.0.0 \
--http.api aut,eth,net,txpool,web3,admin \
--http.vhosts \* \
--ws \
--ws.addr 0.0.0.0 \
--ws.api aut,eth,net,txpool,web3,admin \
--nat extip:<IP_ADDRESS>
--piccadilly specifies that the node will use the Piccadilly tesnet. For other tesnets, use the appropriate flag (for example, --bakerloo).
exit with CTRL + A + D ( Dont use CTRL + C)
screen -r node
aut node info
aut block height
aut account balance <_addr>
aut account balance --ntn <_addr>
aut account new
##Then we have to sign-message in the form with below code in order to get private key. Change the filename with your specific file name.
aut account sign-message "I have read and agree to comply with the Piccadilly Circus Games Competition Terms and Conditions published on IPFS with CID QmVghJVoWkFPtMBUcCiqs7Utydgkfe19wkLunhS5t57yEu" --keyfile /root/.autonity/keystore/filename
https://game.autonity.org/incentive-game-forms-frontend/registration.html
https://github.com/dacyxs/Autonity/blob/main/On_chain_tasks.md
https://docs.autonity.org/ https://game.autonity.org/
https://discord.gg/autonity https://twitter.com/autonity_ https://autonity.org/
https://piccadilly.autonity.org/