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

时间:2018-09-13 18:11:43

标签: remix quorum

如何使混音连接到法定网络?

我在流浪汉中使用了example / 7nodes的最新版本。 我正在尝试使用以下网址:127.0.0.1:22000 我正在尝试通过Windows上的混音连接到仲裁。

预先感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

您可以使用松露与Quorum链连接,松露将编译您的混音代码。通过使用命令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

希望你喜欢它 谢谢

相关问题