首页 > 解决方案 > 如何使混音连接到仲裁网络

问题描述

如何使混音连接到仲裁网络?

我在 vagrant 中使用了最新版本的示例/7nodes。我正在尝试使用此网址:127.0.0.1:22000 我正在尝试通过在 Windows 上重新混合来连接到仲裁。

在此先感谢您的帮助。

标签: remixquorum

解决方案


您可以使用 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

希望你喜欢谢谢


推荐阅读