Persistent_peers: cannot add non-routable address

While setting up testnets, I’ve found that Tendermint likes to complain about the persistent_peers that I setup, but connects anyway - mostly:

E[2020-09-28|14:05:03.353] Can't add peer's address to addrbook         module=p2p err="Cannot add non-routable address 71b34ae307b8fa8a4a9b3e002a3e9c851aa8115d@192.168.99.102:26656"
E[2020-09-28|14:05:03.354] Can't add peer's address to addrbook         module=p2p err="Cannot add non-routable address 7e44a0ce1bf96b28dcdf4854a64eda39faa043c3@192.168.99.100:26656"
E[2020-09-28|14:05:03.354] Can't add peer's address to addrbook         module=p2p err="Cannot add non-routable address 6a7a326198db319d9086bcf92795601b02c4f0ff@192.168.99.101:26656"
I[2020-09-28|14:05:08.900] Executed block                               module=state height=1 validTxs=0 invalidTxs=0
I[2020-09-28|14:05:08.903] Committed state                              module=state height=1 txs=0 appHash=3A077A032279403DC9B56C0CB870A30EE35C336778C19BA4A4C35C59B40698BC
I[2020-09-28|14:05:14.237] Executed block                               module=state height=2 validTxs=0 invalidTxs=0

I don’t think there’s something wrong with how I specified the peers. My config.toml:

# persistent_peers has been automatically set by lctrld
  persistent_peers = "71b34ae307b8fa8a4a9b3e002a3e9c851aa8115d@192.168.99.102:26656,c55f30cc9009c242590b31b86c4852e351fef3a1@192.168.99.103:26656,7e44a0ce1bf96b28dcdf4854a64eda39faa043c3@192.168.99.100:26656,6a7a326198db319d9086bcf92795601b02c4f0ff@192.168.99.101:26656"

It will still connect to them but they won’t get put in the address book, which isn’t really a problem if they’re local ips and you’re not gossipping them anyways. If you wanted to address this you could set addr_book_strict = false

1 Like