Nano testnet-topology.json

Can some one please explain to me valency. I’ve tried to google it.

nano testnet-topology.json

{
“Producers”: [
{
“addr”: “”,
“port”: ,
“valency”: 1
},
{
“addr”: “”,
“port”: ,
“valency”: 1
},
{
“addr”: “”,
“port”: ,
“valency”: 1
}
]
}

Hello,

valency tells the node how many connections your node should have. It only has an effect for dns addresses. If a dns address is given, valency governs to how many resolved ip addresses should we maintain active (hot) connection; for ip addresses, valency is used as a Boolean value, where 0 means to ignore the address.

Cheers,

Should this number always be 1? How is this number determined when manually addressing your topology files?

  • If u are using IPv4 address then it doesn’t matter the number
  • it matters only when u are using dns

Anyway, even if u are using dns you will have only 1 dns registration per IP so in both cases it’s safe to use valency 1

Cheers,

1 Like