[英]How to create a new block in Hyperledger Fabric
I am trying to create a blockchain and have created a genesis block successfully. 我正在尝试创建区块链并成功创建了创世块。 I now want to create 2 more blocks on the genesis block using Hyperledger Fabric in Linux.
我现在想在Linux中使用Hyperledger Fabric在创世块上再创建2个块。 So any help here would be appreciated.
因此,这里的任何帮助将不胜感激。 And also do we have to create a new channel for creating new block or will the existing channel work?
另外,我们是否必须创建一个用于创建新块的新通道,还是现有的通道可以工作?
You need to install and instantiate a chaincode. 您需要安装并实例化一个链码。 Then you can do a (write) invoke against that chaincode, which will create new blocks.
然后,您可以对该链码执行(写入)调用,这将创建新的块。 This will all occur on the existing channel.
这都将在现有频道上发生。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.