【发布时间】:2018-09-13 18:11:42
【问题描述】:
如何使混音连接到仲裁网络?
我在 vagrant 中使用最新版本的示例/7nodes。 我正在尝试使用此网址:127.0.0.1:22000 我正在尝试通过在 Windows 上重新混合来连接到仲裁。
提前感谢您的帮助。
【问题讨论】:
如何使混音连接到仲裁网络?
我在 vagrant 中使用最新版本的示例/7nodes。 我正在尝试使用此网址:127.0.0.1:22000 我正在尝试通过在 Windows 上重新混合来连接到仲裁。
提前感谢您的帮助。
【问题讨论】:
您可以使用 truffle 与 Quorum 链连接,truffle 会将您的混音代码编译为。通过使用命令 truffle compile
Steps are
1. $truffle init
2. Do your remix code in contracts folder
3. Put this code in truffle.js
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 22000,
network_id: "*",
gasPrice: 0,
gas: 4500000
},
nodefour: { //node Four
host: "127.0.0.1",
port: 22003,
network_id: "*",
gasPrice: 0,
gas: 4500000
},
nodeseven: { //Node seven
host: "127.0.0.1",
port: 22006,
network_id: "*",
gasPrice: 0,
gas: 4500000
}
}
};
4.truffle 迁移
这里是完整的步骤链接https://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-blockchains
希望你喜欢 谢谢
【讨论】: