简体   繁体   English

如何在Hyperledger Fabric中创建新块

[英]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.

相关问题 Hyperledger Fabric SDK Go 安装错误。 这里出了什么问题以及如何解决? - Hyperledger Fabric SDK Go Installation Error. What is going wrong here and How to fix it? Hyperledger Fabric 框架中是否有任何注册机构? - Is there any registration authorities in Hyperledger Fabric framework? 将成员添加到亚马逊托管区块链上的现有超级账本 Fabric 1.2 网络 - Adding member to existing hyperledger Fabric 1.2 network on amazonmanaged blockchain 在Hyperledger Fabric中,可以在2台不同的计算机上连接2个Org - In Hyperledger Fabric is it possible to connect 2 Org's on 2 different machines bin:不能 mkdir:权限被拒绝或平台特定的结构二进制文件无法在 Hyperledger Fabric 中下载 - bin: Cannot mkdir: Permission denied OR platform specific fabric binary is not available to download in Hyperledger Fabric 实例化链码,sendPeersProposal-承诺被拒绝:错误:REQUEST_TIMEOUT,Hyperledger Fabric,Linux - Instantiate chaincode, sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT, Hyperledger Fabric, linux 如何为新文件创建补丁? - How to create patch for a new file? 创建新线程时如何阻止程序执行? (对于GDB) - how to block program executing when a new thread is created? ( with GDB) 如何创建一个“适合”子目录中文件的块设备? - How to create a block device that “just fits” files in a subdirectory? 如何创建新的Sqlite元命令 - How to create new Sqlite meta-command
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM