Implementing Peer Sharing
To improve network security, the peer sharing feature available in the Cardano Node software allows you to connect one or more relay nodes to the Cardano network without registering the relay(s) on the blockchain. One or more relay nodes that you register on the blockchain advertise your unregistered relay(s) to other nodes on the network.
To implement peer sharing:
On a relay node that you registered on the blockchain using a registration certificate, open the
config.json
file using a text editor, and then edit the following values:
Setting the value of TargetNumberOfRootPeers
less than the value of TargetNumberOfKnownPeers
allows peer sharing to provide additional peers. For more details on registering a relay node on the blockchain, see the topic Registering Your Stake Pool.
Save and close the
config.json
file.On the relay node where you edited the
config.json
file in step 1, open thetopology.json
file using a text editor. Add anotheraccessPoints
subsection to thelocalRoots
section as follows where<UnregisteredRelayNodeIPAddress>
is the wide area network (WAN) IP address of the unregistered relay node in your stake pool configuration, and<UnregisteredRelayNodeName>
is an optional descriptive label for your unregistered relay. Also, set theadvertise
key totrue
in the newaccessPoints
subsection:
For more details on editing the topology.json
file, see the topic Configuring Topology.
Save and close the
topology.json
file.On your registered relay, to restart the Cardano Node type:
After the registered relay node restarts, verify that other relay nodes in the Cardano network slowly begin connecting to your unregistered relay.
Last updated