首页 > 编程语言 >Hyperledger Fabric 2.5.4开发之“定义功能需求”问题

Hyperledger Fabric 2.5.4开发之“定义功能需求”问题

时间:2023-09-20 17:35:58浏览次数:37  
标签:orderers Fabric Capabilities Application Channel channel Hyperledger 2.5 通道

说明


本文描述了一个不再使用“系统通道”的网络(以前该通道由排序服务引导,并且由排序服务专门控制)。自Fabric v2.3发布以来,在创建通道的过程方法中,使用系统通道现在被视为遗留方案。


在通道配置(在通道的最新配置区块中找到)中,可以为每个通道定义功能需求。通道配置包含三个位置,每个位置定义了不同类型的功能。

功能类型

规范路径

JSON路径

Channel

/Channel/Capabilities

.channel_group.values.Capabilities

Orderer

/Channel/Orderer/Capabilities

.channel_group.groups.Orderer.values.Capabilities

Application

/Channel/Application/Capabilities

.channel_group.groups.Application.values. Capabilities

功能设置

功能设置是通道配置的一部分(要么作为初始配置,要么作为重新配置的一部分)。

有关如何更新通道配置的更多信息,请查看更新通道配置

初始配置中的功能

在最新下载安装的Fabric(V2.5.4)的目录fabric-samples中的config子目录下的 configtx.yaml 文件中,有一个 Capabilities 部分,列举了每种功能类型(通道、排序节点和应用程序)的可能功能。


Capabilities:

    # Channel capabilities apply to both the orderers and the peers and must be

    # supported by both.

    # Set the value of the capability to true to require it.

    Channel: &ChannelCapabilities

        # V2.0 for Channel is a catchall flag for behavior which has been

        # determined to be desired for all orderers and peers running at the v2.0.0

        # level, but which would be incompatible with orderers and peers from

        # prior releases.

        # Prior to enabling V2.0 channel capabilities, ensure that all

        # orderers and peers on a channel are at v2.0.0 or later.

        V2_0: true


    # Orderer capabilities apply only to the orderers, and may be safely

    # used with prior release peers.

    # Set the value of the capability to true to require it.

    Orderer: &OrdererCapabilities

        # V1.1 for Orderer is a catchall flag for behavior which has been

        # determined to be desired for all orderers running at the v1.1.x

        # level, but which would be incompatible with orderers from prior releases.

        # Prior to enabling V2.0 orderer capabilities, ensure that all

        # orderers on a channel are at v2.0.0 or later.

        V2_0: true


    # Application capabilities apply only to the peer network, and may be safely

    # used with prior release orderers.

    # Set the value of the capability to true to require it.

    Application: &ApplicationCapabilities

        # V2.5 for Application enables the new non-backwards compatible

        # features of fabric v2.5, namely the ability to purge private data.

        # Prior to enabling V2.5 application capabilities, ensure that all

        # peers on a channel are at v2.5.0 or later.

        V2_5: true


请注意, Capabilities 在根级别(用于通道功能)和 Orderer 级别(用于排序节点功能)各有一个定义部分。上边的示例使用 YAML 引用了在 YAML 文件底部定义的功能。


定义排序服务通道的时候没有 Application 部分,它在创建应用通道的时候会被创建。


这里,Application 部分有一个新元素 Capabilities,引用了 YAML 最后部分的 ApplicationCapabilities


参考


标签:orderers,Fabric,Capabilities,Application,Channel,channel,Hyperledger,2.5,通道
From: https://blog.51cto.com/zhuxianzhong/7541242

相关文章

  • Fluent Operator 2.5.0 发布:新增多个插件
    日前,FluentOperator发布了v2.5.0。FluentOperatorv2.5.0新增11个features,其中FluentBit新增支持7个插件,Fluentd新增支持1个插件。此外,对FluentOperator也进行了增强,调整了默认参数,以便适应更多场景,并对helmchart进行了优化,用户可以更方便的进行安装,并修......
  • Hyperledger Fabric开发之启动CouchDB作为状态数据库
    测试环境MacCatalinaDockerDesktop3.6.0HyperledgerFabric2.5.4CouchDB3.3.2简单分析当前版本的Fabric2.5.4默认支持的LevelDB仅能够实现存储简单的键值对数据,并且LevelDB与Peer节点并存于同一个操作系统进程中。CouchDB适用于存储JSON文件,并支持富查询和对更多数据类型的操......
  • KubeSphere 社区双周报 | Fluent Operator 发布 v2.5.0 | 2023.09.01-09.14
    KubeSphere社区双周报主要整理展示新增的贡献者名单和证书、新增的讲师证书以及两周内提交过commit的贡献者,并对近期重要的PR进行解析,同时还包含了线上/线下活动和布道推广等一系列社区动态。本次双周报涵盖时间为:2023.09.01-2023.09.14。贡献者名单新晋KubeSphereCon......
  • 【2.5v/5v手电筒升压方案】AP8105只需四个外围件低噪音
    AP8105系列产品是一种高效率、低纹波、工作频率高的PFM升压DC-DC变换器。AP8105系列产品仅需要四个外围元器件,就可完成将低输入的电池电压变换升压到所需的工作电压,非常适合于便携式1~4节普通电池应用的场合。电路采用了高性能、低功耗的参考电压电路结构,同时在生产中引入......
  • 【2.5v/5v手电筒升压方案】AP8105只需四个外围件低噪音
    AP8105系列产品是一种高效率、低纹波、工作频率高的PFM升压DC-DC变换器。AP8105系列产品仅需要四个外围元器件,就可完成将低输入的电池电压变换升压到所需的工作电压,非常适合于便携式1~4节普通电池应用的场合。电路采用了高性能、低功耗的参考电压电路结构,同时在生产中引入......
  • Fabric 2.x 智能合约开发记录
    表象:Returnschemainvalid.requireditemsmustbeunique[recovered]虽然Fabricv2.2已经发布了很久了,但之前因为项目历史问题,一直使用的都是Fabricv1.4.8,所以智能合约也一直使用的都是github.com/hyperledger/fabric/core/chaincode/shim包。在合约开发过程中,我一般......
  • FMC DA 子卡 14bit 2.5GS/s 双通道输出
    概要QT7225是一款具有2通道输出的转换速率最高为2.5GSPS的DAC回放板,DAC位数14bit;板卡基于ADI的DAC芯片AD9739BBC和时钟芯片AD9516设计;板卡支持3路触发输出/输入通道;DAC的时钟支持内部参考时钟、外部参考时钟、外部采样时钟三种方式;QT7225设计了风冷和导冷版本,能够满足用户在......
  • FMC AD 子卡 10bit 4 通道1.25GS/s 或 2 通道2.5GS/s 或 1 通道5.0GS/s
    概要QT7130是一款高分辨率、高采样率ADCFMC子板。它提供10bit4通道1.25GS/s或2通道2.5GS/s或1通道5.0GS/s的AD采样率(2通道2.5GS/s及1通道5GS/s模式需客户做交错采样校准),全功率模拟-3dB输入带宽可达3GHz。本产品是基于E2V公司的高速模数转换器EV10AQ190AVTPY而......
  • Adobe Lightroom Classic 2023最新(LrC12.5版本)安装下载
    AdobeLightroomClassic2023(LrC2023)使用针对桌面优化的应用程序编辑和整理您的照片。LightroomClassicCC为您提供强大的一键式工具和高级控件,让您的照片看起来很棒。轻松整理桌面上的所有照片,并以多种方式分享。迅雷云盘分享:https://pan.xunlei.com/s/VNdoEonKpUhx6XHs_H9Iw......
  • Adobe Lightroom Classic 2023(版本 12.5安装包资源)
    AdobeLightroomClassic2023(版本12.5)软件更新了,该版本新增了哪些功能呢?AdobeLightroomClassic2023激活版是一款专业的数字照片处理软件,它可以帮助摄影师对照片进行分类、编辑、调整和输出。它具有强大的图像处理功能,可以对RAW格式的照片进行处理,支持多种文件格式,包括JPEG、......