pvtdatapolicy

package
v0.0.0-...-523a819 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BTLPolicy

type BTLPolicy interface {
	//getbtl返回给定命名空间和集合的blocktoLive
	GetBTL(ns string, coll string) (uint64, error)
	//GetExpiringBlock返回给定命名空间、集合和CommitingBlock的pvtData的到期块号。
	GetExpiringBlock(namesapce string, collection string, committingBlock uint64) (uint64, error)
}

btlpolicy blocktoLive策略用于pvt数据

func ConstructBTLPolicy

func ConstructBTLPolicy(collInfoProvider collectionInfoProvider) BTLPolicy

constructbtlpolicy构造lsccbasedbtlpolicy的实例

type LSCCBasedBTLPolicy

type LSCCBasedBTLPolicy struct {
	// contains filtered or unexported fields
}

lsccbasedbtlpolicy实现接口btlpolicy。 此实现从已填充的lscc命名空间加载btl策略 链码初始化期间的集合配置

func (*LSCCBasedBTLPolicy) GetBTL

func (p *LSCCBasedBTLPolicy) GetBTL(namesapce string, collection string) (uint64, error)

getbtl在接口“btlpolicymgr”中实现相应的函数

func (*LSCCBasedBTLPolicy) GetExpiringBlock

func (p *LSCCBasedBTLPolicy) GetExpiringBlock(namesapce string, collection string, committingBlock uint64) (uint64, error)

GetExpiringBlock从接口“btlpolicy”实现函数

Directories

Path Synopsis
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL