Skip to content
This repository was archived by the owner on Jul 15, 2020. It is now read-only.

Latest commit

 

History

History
59 lines (44 loc) · 1.85 KB

070_core_relay.md

File metadata and controls

59 lines (44 loc) · 1.85 KB

Configure topology files for block-producing and relay nodes.

Latest documentation has been moved to https://docs.cardano.org/en/latest/ .

Before we register our stake pool, let's configure our block-producing and relay nodes:

NOTE: Here you can find peers to connect to, and submit your own relay's data: https://github.com/input-output-hk/cardano-ops/blob/master/topologies/ff-peers.nix#L5-L10

Configure the block-producing node

Get the configuration files for your block-producing node if you don't have them already, for example

mkdir config-files
cd config-files     

wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/shelley_testnet-config.json
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/shelley_testnet-genesis.json
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/shelley_testnet-topology.json

Make the block-producing node to "talk" only to YOUR relay node. Do not forget to configure your firewall also:

nano shelley_testnet-topology.json

{
  "Producers": [
    {
      "addr": "<RELAY IP ADDRESS",
      "port": <PORT>,
      "valency": 1
    }
  ]
}

Configure the relay node:

Make your relay node talk to your block-producing node and other relays in the network by editing the shelley_testnet-topology.json file:

nano shelley_testnet-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
    }
  ]
}