Block Producing/Relay Node Issues

Hey guys,

I’m following the guide on setting up a stake pool and I’m at the part where you create your BP node and connect it to your relay node. This part has me a bit confused and I have a few questions/having some problems.

Do I need 2 different machines to run the BP node and the relay node? Everywhere that I read makes it seem like you only need 1 machine. So do you need 2 machines, 1 running the BP node and the other running the relay?

If you CAN run both on 1 machine, I’m having a problem. My BP node won’t connect to my relay. Here are my topology files:

Relay Node:

{
“Producers”: [
{
“addr”: “MY PUBLIC IP”,
“port”: 3002,
“valency”: 1
},
{
“addr”: “relays-new.cardano-testnet.iohkdev.io”,
“port”: 3001,
“valency”: 1
},
{
“addr”: “135.181.40.207”,
“port”: 3001,
“valency”: 1
},
{
“addr”: “95.179.151.144”,
“port”: 3001,
“valency”: 1
},
{
“addr”: “209.126.12.60”,
“port”: 3010,
“valency”: 1
},
{
“addr”: “3.21.223.154”,
“port”: 3001,
“valency”: 1
},
{
“addr”: “195.154.69.26”,
“port”: 3003,
“valency”: 1
},
{
“addr”: “104.131.99.185”,
“port”: 3000,
“valency”: 1
},
{
“addr”: “80.240.21.155”,
“port”: 3000,
“valency”: 1
},
{
“addr”: “35.203.149.28”,
“port”: 6000,
“valency”: 1
},
{
“addr”: “relays.cardano-testnet.uniquestaking.com”,
“port”: 3001,
“valency”: 1
},
{
“addr”: “76.169.10.127”,
“port”: 21983,
“valency”: 1
}
]
}

BP Node:

{
“Producers”: [
{
“addr”: “MY PUBLIC IP (Same as relay node IP)”,
“port”: 3000,
“valency”: 1
}
]
}

commands I’m using to start up each node:

Relay Node:

cardano-node run
–topology testnet-topology.json
–database-path db
–socket-path db/node.socket
–port 3000
–config testnet-config.json

BP Node:

cardano-node run
–topology testnet-topology.json
–database-path db
–socket-path db/node.socket
–port 3002
–config testnet-config.json

PS: I’m attempting to do this on a Raspberry Pi. If I do need two systems should I do 1 AWS instance as well as my Raspberry Pi? Also, I’ve already port forwarded ports 3000-3002. Does anyone have any ideas? Thanks!

You CAN run both on one machine, but you SHOULDN’T. Idea is to isolate BP node and not allow traffic to a BP machine so it can’t be DDOSed or easily attacked. This is also why you should have multiple relays so if one goes down you can still make blocks.

1 Like

Got it, so what am I doing wrong? Why won’t my BP node find the relay? I want to walk through the tutorial on the testnet before setting up AWS instances when I’m ready to do it on the mainnet.

I would check your ports are actually open to the world using a port checker tool like https://www.portcheckers.com/ or ‘telnet ip port’ on the command line.

(Will only be open when the software is running)

hi,

if you have both nodes on 1 server, then put your local ip address in topology file, as well start the nodes with --host-address 0.0.0.0