pvtdatapolicy

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 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
伪造者生成的代码。
伪造者生成的代码。

Jump to

Keyboard shortcuts

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