7. Configure topology files for block-producing and relay nodes.¶
Before you start your nodes, you need to prepare the topology files.
7.1. Configure the block-producing node¶
Make the block-producing node to “talk” only to YOUR relay node. Do not forget to configure your firewall also:
nano mainnet-topology.json
{
"Producers": [
{
"addr": "<RELAY IP ADDRESS>",
"port": <PORT>,
"valency": 1
}
]
}
7.2. Configure the relay node:¶
Make your relay node talk
to your block-producing node and other relays in the network by editing the topology.json
file:
nano mainnet-topology.json
{
"Producers": [
{
"addr": "<BLOCK-PRODUCING IP ADDRESS>",
"port": <PORT>,
"valency": 1
},
{
"addr": "<IP ADDRESS>",
"port": <PORT>,
"valency": 1
},
{
"addr": "<IP ADDRESS>",
"port": <PORT>,
"valency": 1
}
]
}