remix - 如何使混音连接到仲裁网络
问题描述
如何使混音连接到仲裁网络?
我在 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.松露迁移
这是完整的步骤链接https://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-blockchains
希望你喜欢谢谢
推荐阅读
- powerbi - 周周变化量度
- android - adbexecTimeout 有问题
- laravel - Laravel / Eloquent:是否可以在不设置父级的情况下选择所有子模型数据?
- presto - Presto 如何杀死正在运行的查询?
- python-3.x - 如何从字符串 s("lkjhgfdsabc") 中打印 "ds" 和 "abc"?
- javascript - getUserMedia() : 获取视野足够宽的环境相机
- winapi - 允许在.h/.cpp 文件中写入资源定义吗?
- git - 如何在 git 中获取本地分支的更改?
- odbc - 为什么使用 ODBC 连接到 redshift 时列的重命名不起作用?
- python - 如何修复 SyntaxError:无法在 Python 上分配给文字