Configuring the Topologies of the Relay and Block Producing Nodes

At this point, you should have two nodes up and running. We are now going to configure them in the relay-bp configuration.


Let's first configure our relay topology to use p2p (peer-to-peer) while also connecting statically to our block producer.

nano ~/preprodnet/config/topology.json

Please change your topology.json file to match the following, using your block producing node IP address and port number.

{
  "localRoots": [
    {
      "accessPoints": [
        {
          "address": "<bp node IP>",
          "port": <bp port>
        }
      ],
      "advertise": false,
      "valency": 1
    }
  ],
  "publicRoots": [
    {
      "accessPoints": [
        {
          "address": "preprod-node.play.dev.cardano.org",
          "port": 3001
        }
      ],
      "advertise": false
    }
  ],
  "useLedgerAfterSlot": 14601600
}

ctrl+o to save and ctrl+x to exit.

Next, open the config.json file with nano and make sure "EnableP2P": true, is set.

ctrl+o to save and ctrl+x to exit. Reboot the node.


Now let's do the block producer.

Please format your topology.json node like the following, inserting your relay information so your bp node only talks to your relay.

ctrl+o to save and ctrl+x to exit.

Next, change "EnableP2P": to false in your config.json file.

ctrl+o to save and ctrl+x to exit. Reboot the node.

Last updated