如何使用锯齿超额拼接器 - 锯齿应用程序在网络上发布节点
我是锯齿的新手,试着在git repro下面使用
git repro for this is 我找到了一些相关的链接 https://lists.hyperledger.org/pipermail/hyperledger-stl/2018-January/000146.html
这里是锯齿的课程指南
已经在GitHub上问了一个问题 https://github.com/hyperledger/education/issues/18
这是我正在使用的代码 https://github.com/hyperledger/education/tree/master/LFS171x/sawtooth-material/sawtooth-tuna
答案 0 :(得分:3)
如果我们希望使用该文件连接两个节点,您只需要在validator.toml
/etc/sawtooth
如果此文件不存在,那么我们需要创建:
$ cd /etc/sawtooth
$ sudo touch validator.toml
请记住执行以下行以使用锯齿运行验证器:
$ sudo chown root:sawtooth validator.toml
示例validator.toml
文件内容:
# Set the network and component endpoints
bind = [
"network:tcp://127.0.0.1:8800",
"component:tcp://127.0.0.1:4004"
]
# The type of peering approach the validator should take
peering = "static"
# Advertised network endpoint
endpoint = "tcp://127.0.0.1:8800"
# Uris to initially connect to the validator network
seeds = ["tcp://127.0.0.1:8801"]
# A list of peers to attempt to connect to
peers = ["tcp://127.0.0.1:8801"]