Using a text editor, open the topology.json
file, and then add a record for the block-producing node as follows, where <BlockProducingNodeIPAddress>
is the IP address of the block-producing node in your stake pool configuration:
{
"Producers": [
{
"addr": "<BlockProducingNodeIPAddress>",
"port": 6000,
"valency": 1
},
{
"addr": "relays-new.cardano-mainnet.iohk.io",
"port": 3001,
"valency": 2
}
]
}
Should i delete everything in this topology file, then paste this txt in & change (mainnet) to (testnet)?
Best regards
1 Like
are you setting up a node on preprod? because there are multiple testnets.
1 Like
Hello,
Yes i would like to set up a node on preprod.
Thank you
It depends if you are trying to run your relay in p2p mode or with the topologyupdater.
But the public relay from iog would be preprod-node.world.dev.cardano.org.
I downloaded the (node topology) file, on the Environments page, & scrolled down to the Production (Mainnet) section.
{
"Producers": [
{
"addr": "ip bp node",
"port": 6000,
"valency": 1
},
{
"addr": "preprod-node.world.dev.cardano.org.",
"port": 3001,
"valency": 2
}
]
}
i am not sure i did understand correctly. did you mean i should add (preprod-node.world.dev.cardano.org.) to where i it says (relays-new.cardano-mainnet.iohk.io) in the node topology file?
Best regards
this is the mainnet and not a test environment. If you want to test out your setup, you should use the preprod testnet.
Check out here https://docs.cardano.org/cardano-testnet/getting-started
Yes exactly. The relay i posted is the public relay for the preprod testnet. The one you posted is the public relay for the mainnet.
Yes i want to test out my set up. Ok then i will remove the node topology file from my folder and add the node topology file on the Environments page, & ** [Pre-Production Testnet]** section.
This file looks diferently, should i still add this part of the text to the topology file:
{
“Producers”: [
{
“addr”: “ip bp node”,
“port”: 6000,
“valency”: 1
},
?
Thats my config from my relay on the preprod with p2p enabled.
{
"LocalRoots": {
"groups": [
{
"localRoots": {
"accessPoints": [
{
"address": "ip from bp",
"port": 6000
}
],
"advertise": false
},
"valency": 1
}
]
},
"PublicRoots": [
{
"publicRoots": {
"accessPoints": [
{
"address": "preprod-node.world.dev.cardano.org",
"port": 30000
}
],
"advertise": false
}
}
],
"useLedgerAfterSlot": 4642000
}
Thank you, i will copy paste this to the node topology file. Is it the similar on the bp node ?
thats from bp p2p not enabled.
{
"Producers": [
{"addr": "ip from relay",
"port": 6000,
"valency": 1}
]
}
It works good for Pre-prod testnet at least. You have to switch p2p to false in the config file.
Best regards,