Skip to content

Aion Network Configuration

aion-anakha edited this page Mar 2, 2018 · 6 revisions

Configure the Network

To receive tokens for mining blocks, you first need to create an account using:

./aion.sh -a create

The mining wiki illustrates how to set this account to be able to receive tokens for mining.

Now you are ready to start the kernel.

Optional:

Your kernel will have access to the seed nodes by default. Do not remove these nodes from the configuration. To include additional peers (e.g. friends that are also connected to the network) or get added by peers, update the config.xml by adding nodes using the permanent peer id (generated as shown below), IP and port of the computers you wish to connect to:

<net>
    <p2p>
        <ip>0.0.0.0</ip>
        <port>30303</port>
    </p2p>
    <nodes>
        <node>p2p://PEER_ID@IP:PORT</node>
    </nodes>
</net>

Note: To allow peers to connect to you, you must also change your configuration IP from 127.0.0.1 to a public IP on your machine. If you are unsure about having a public IP, set it to 0.0.0.0.

To get a permanent peer id create a new configuration:

./aion.sh -c

This newly made configuration will not have access to seed nodes by default. In order to connect to seed nodes, you will need to edit the config.xml file by adding nodes as listed from here:

<nodes>
  <node>p2p://2da62542-999f-4405-bdb3-50d8c61bed61@52.237.31.69:30303</node>
  <node>p2p://c1f42646-279a-441e-bba7-bfebfc1eec63@52.179.100.107:30303</node>
  <node>p2p://0466a78b-814b-4a5d-844e-7054e48f0d28@191.232.176.213:30303</node>
  <node>p2p://f9ea8c08-6f2d-4e64-91a2-d7186d76e096@52.231.206.150:30303</node>
  <node>p2p://d9242b38-cf4e-4654-9995-2727fee3dd9d@13.95.218.95:30303</node>
</nodes>

You are welcome to add other seed nodes (not solely restricted to what is shown above).

Launch Kernel

In a terminal, from the aion directory, run:

./aion.sh

When the kernel starts up, you should see it trying to sync with the latest block.

Optional: To check which peers you are connected to, open another terminal and run the command below:

netstat -antp | grep java

Please check the owner's manual wiki for further instructions on working with the kernel.

Clone this wiki locally