I am setting up a Hyperledger Sawtooth network with four nodes on Ubuntu 16.04. I am using static peering. Here is an example validator.toml file:
bind = [
"network:tcp://0.0.0.0:8800",
"component:tcp://127.0.0.1:4004",
"consensus:tcp://127.0.0.1:5050"
]
peering = "static"
endpoint = "tcp://<IP 1>:8800"
peers = ["tcp://<IP 2>:8800", "tcp://<IP 3>:8800", "tcp://<IP 4>:8800"]
scheduler = 'serial'
network_public_key = 'wFMwoOt>yFqI/ek.G[tfMMILHWw#vXB[Sv}>l>i)'
network_private_key = 'r&oJ5aQDj4+V]p2:Lz70Eu0x#m%IwzBdP(}&hWM*'
minimum_peer_connectivity = 3
maximum_peer_connectivity = 10
On server 2, I have <IP 2>
as endpoint and <IP 1>
, <IP 3>
and <IP 4>
as peers, etc.
After starting my network, I tested it using the intkey transaction family. Key/value pairs I added with intkey set <someKey> <someValue>
were not reproduced when I did intkey show <someValue>
. In the validator logs I saw many Can't send message PING_RESPONSE back to...
and No response from...
messages. Using curl localhost:8008/peers
I observed that the peers lists had many repetitions.