8.9.0 Cardano Block topology configuration

I have my pool setup for P2P now, and wondering how I add the relay into this topology.json.

Should I even be using p2p on the block or just the relay? Do I need to configure anything else?

image

image

{
“localRoots”: [
{
“accessPoints”: ,
“advertise”: false,
“valency”: 1
}
],
“publicRoots”: [
{
“accessPoints”: [
{
“address”: “backbone.cardano-mainnet.iohk.io”,
“port”: 3001
},
{
“address”: “backbone.cardano.iog.io”,
“port”: 3001
},
{
“address”: “backbone.mainnet.emurgornd.com”,
“port”: 3001
}
],
“advertise”: false
}
],
“useLedgerAfterSlot”: 116812831
}

Should I just use my old topology for my block? and p2p for relay?

image

This topology is on my BP with p2p:

{
    "localRoots": [
        {
            "accessPoints": [
                {
                    "node": "relay-01",
                    "address": "x",
                    "port": x
                },
                {
                    "node": "relay-02",
                    "address": "x",
                    "port": x
                }
            ],
            "advertise": false,
            "valency": 2
        }
    ],
    "publicRoots": [
        {
            "accessPoints": [ ],
            "advertise": false
        }
    ],
    "useLedgerAfterSlot": -1
}

So yes, you can run your BP in p2p mode but make sure it doesnt connect with any other relays than yours with “useLedgerAfterSlot”: -1.

2 Likes

@Zyroxa and for relays you set?

  "publicRoots": [
        {
            "accessPoints": [ ],
            "advertise": true
        }
    ],
    "useLedgerAfterSlot": 0

and no topology updater services right? Including the service which announce your server to the network…

Thanks

Getting an error right now

image
image

@Anti.biz you actually wrote x inside topology file?

If you don’t have the 2nd relay then delete

,
                {
                    "node": "relay-02",
                    "address": "x",
                    "port": x
                }
1 Like

Does this look right?

image

1 Like

Looks ok now

Okay it seems to be working now thanks.

image

How should my relay topology look to connect to my block?

Should I add anything into cnode.sh ?

image

add the BP IP address to first part … as u did on BP when u added the Relay IP… keep the rest

{
“localRoots”: [
{
“accessPoints”: ,
“advertise”: false,
“valency”: 1
}
],
“publicRoots”: [
{
“accessPoints”: [
{
“address”: “backbone.cardano-mainnet.iohk.io”,
“port”: 3001
},
{
“address”: “backbone.cardano.iog.io”,
“port”: 3001
},
{
“address”: “backbone.mainnet.emurgornd.com”,
“port”: 3001
}
],
“advertise”: false
}
],
“useLedgerAfterSlot”: 116812831
}

image

{
    "localRoots": [
        {
            "accessPoints": [
                {
                    "node": "BP",
                    "address": "x",
                    "port": x
                }
            ],
            "advertise": false,
            "valency": 2
        }
    ],
“publicRoots”: [
{
“accessPoints”: [
{
“address”: “[backbone.cardano-mainnet.iohk.io](http://backbone.cardano-mainnet.iohk.io)”,
“port”: 3001
},
{
“address”: “[backbone.cardano.iog.io](http://backbone.cardano.iog.io)”,
“port”: 3001
},
{
“address”: “[backbone.mainnet.emurgornd.com](http://backbone.mainnet.emurgornd.com)”,
“port”: 3001
}
],
“advertise”: false
}
],
“useLedgerAfterSlot”: 116812831
}


image

{
“localRoots”: [
{
“accessPoints”: [
{
“node”: “New York Block”,
“address”: “00000000000”,
“port”: 6000
}
],
“advertise”: false,
“valency”: 1
}
],
“publicRoots”: [
{
“accessPoints”: [
{
“address”: “backbone.cardano-mainnet.iohk.io”,
“port”: 3001
},
{
“address”: “backbone.cardano.iog.io”,
“port”: 3001
},
{
“address”: “backbone.mainnet.emurgornd.com”,
“port”: 3001
}
],
“advertise”: false
}
],
“useLedgerAfterSlot”: 116812831
}

image

Something wrong my block still booting up?

no, just wait… should start soon

Relay came up quick
image

still waiting on block, still stuck at 10.9 gigs
image

Check if your service is running correctly.

sudo systemctl status cnode.service

image

image

image

Seems fine.

Can you check your logs?

tail -10f /opt/cardano/cnode/logs/node0.json

image

All is good now thanks, i ended up downloading snap shot again. And my ports were backwards.

image

1 Like