我正在 Ubuntu 16.04 上设置一个具有四个节点的 Hyperledger Sawtooth 网络。我正在使用静态对等互连。这是一个示例 validator.toml 文件:
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
在服务器 2 上,我<IP 2>
作为端点和<IP 1>
,<IP 3>
以及<IP 4>
作为对等方等。
启动网络后,我使用 intkey 事务系列对其进行了测试。我添加的键/值对在我添加intkey set <someKey> <someValue>
时没有被复制intkey show <someValue>
。在验证器日志中,我看到了许多Can't send message PING_RESPONSE back to...
消息No response from...
。使用curl localhost:8008/peers
我观察到对等列表有很多重复。