smartbft

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_smartbft_configuration_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConfigMetadata

type ConfigMetadata struct {
	Consenters []*Consenter `protobuf:"bytes,1,rep,name=consenters,proto3" json:"consenters,omitempty"`
	Options    *Options     `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

ConfigMetadata is serialized and set as the value of ConsensusType.Metadata in a channel configuration when the ConsensusType.Type is set "smartbft".

func (*ConfigMetadata) Descriptor deprecated

func (*ConfigMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ConfigMetadata.ProtoReflect.Descriptor instead.

func (*ConfigMetadata) GetConsenters

func (x *ConfigMetadata) GetConsenters() []*Consenter

func (*ConfigMetadata) GetOptions

func (x *ConfigMetadata) GetOptions() *Options

func (*ConfigMetadata) ProtoMessage

func (*ConfigMetadata) ProtoMessage()

func (*ConfigMetadata) ProtoReflect added in v0.8.6

func (x *ConfigMetadata) ProtoReflect() protoreflect.Message

func (*ConfigMetadata) Reset

func (x *ConfigMetadata) Reset()

func (*ConfigMetadata) String

func (x *ConfigMetadata) String() string

type Consenter

type Consenter struct {
	ConsenterId   uint64 `protobuf:"varint,1,opt,name=consenter_id,json=consenterId,proto3" json:"consenter_id,omitempty"`
	Host          string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Port          uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	MspId         string `protobuf:"bytes,4,opt,name=msp_id,json=mspId,proto3" json:"msp_id,omitempty"`
	Identity      []byte `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"`
	ClientTlsCert []byte `protobuf:"bytes,6,opt,name=client_tls_cert,json=clientTlsCert,proto3" json:"client_tls_cert,omitempty"`
	ServerTlsCert []byte `protobuf:"bytes,7,opt,name=server_tls_cert,json=serverTlsCert,proto3" json:"server_tls_cert,omitempty"`
	// contains filtered or unexported fields
}

Consenter represents a consenting node (i.e. replica).

func (*Consenter) Descriptor deprecated

func (*Consenter) Descriptor() ([]byte, []int)

Deprecated: Use Consenter.ProtoReflect.Descriptor instead.

func (*Consenter) GetClientTlsCert

func (x *Consenter) GetClientTlsCert() []byte

func (*Consenter) GetConsenterId

func (x *Consenter) GetConsenterId() uint64

func (*Consenter) GetHost

func (x *Consenter) GetHost() string

func (*Consenter) GetIdentity

func (x *Consenter) GetIdentity() []byte

func (*Consenter) GetMspId

func (x *Consenter) GetMspId() string

func (*Consenter) GetPort

func (x *Consenter) GetPort() uint32

func (*Consenter) GetServerTlsCert

func (x *Consenter) GetServerTlsCert() []byte

func (*Consenter) ProtoMessage

func (*Consenter) ProtoMessage()

func (*Consenter) ProtoReflect added in v0.8.6

func (x *Consenter) ProtoReflect() protoreflect.Message

func (*Consenter) Reset

func (x *Consenter) Reset()

func (*Consenter) String

func (x *Consenter) String() string

type Options

type Options struct {
	RequestBatchMaxCount      uint64 `` /* 126-byte string literal not displayed */
	RequestBatchMaxBytes      uint64 `` /* 126-byte string literal not displayed */
	RequestBatchMaxInterval   string `` /* 134-byte string literal not displayed */
	IncomingMessageBufferSize uint64 `` /* 141-byte string literal not displayed */
	RequestPoolSize           uint64 `protobuf:"varint,6,opt,name=request_pool_size,json=requestPoolSize,proto3" json:"request_pool_size,omitempty"`
	RequestForwardTimeout     string `` /* 126-byte string literal not displayed */
	RequestComplainTimeout    string `` /* 129-byte string literal not displayed */
	RequestAutoRemoveTimeout  string `` /* 137-byte string literal not displayed */
	ViewChangeResendInterval  string `` /* 138-byte string literal not displayed */
	ViewChangeTimeout         string `protobuf:"bytes,11,opt,name=view_change_timeout,json=viewChangeTimeout,proto3" json:"view_change_timeout,omitempty"`
	LeaderHeartbeatTimeout    string `` /* 130-byte string literal not displayed */
	LeaderHeartbeatCount      uint64 `protobuf:"varint,13,opt,name=leader_heartbeat_count,json=leaderHeartbeatCount,proto3" json:"leader_heartbeat_count,omitempty"`
	CollectTimeout            string `protobuf:"bytes,14,opt,name=collect_timeout,json=collectTimeout,proto3" json:"collect_timeout,omitempty"`
	SyncOnStart               bool   `protobuf:"varint,15,opt,name=sync_on_start,json=syncOnStart,proto3" json:"sync_on_start,omitempty"`
	SpeedUpViewChange         bool   `protobuf:"varint,16,opt,name=speed_up_view_change,json=speedUpViewChange,proto3" json:"speed_up_view_change,omitempty"`
	// contains filtered or unexported fields
}

Options to be specified for all the smartbft nodes. These can be modified on a per-channel basis.

func (*Options) Descriptor deprecated

func (*Options) Descriptor() ([]byte, []int)

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetCollectTimeout

func (x *Options) GetCollectTimeout() string

func (*Options) GetIncomingMessageBufferSize

func (x *Options) GetIncomingMessageBufferSize() uint64

func (*Options) GetLeaderHeartbeatCount

func (x *Options) GetLeaderHeartbeatCount() uint64

func (*Options) GetLeaderHeartbeatTimeout

func (x *Options) GetLeaderHeartbeatTimeout() string

func (*Options) GetRequestAutoRemoveTimeout

func (x *Options) GetRequestAutoRemoveTimeout() string

func (*Options) GetRequestBatchMaxBytes

func (x *Options) GetRequestBatchMaxBytes() uint64

func (*Options) GetRequestBatchMaxCount

func (x *Options) GetRequestBatchMaxCount() uint64

func (*Options) GetRequestBatchMaxInterval

func (x *Options) GetRequestBatchMaxInterval() string

func (*Options) GetRequestComplainTimeout

func (x *Options) GetRequestComplainTimeout() string

func (*Options) GetRequestForwardTimeout

func (x *Options) GetRequestForwardTimeout() string

func (*Options) GetRequestPoolSize

func (x *Options) GetRequestPoolSize() uint64

func (*Options) GetSpeedUpViewChange

func (x *Options) GetSpeedUpViewChange() bool

func (*Options) GetSyncOnStart

func (x *Options) GetSyncOnStart() bool

func (*Options) GetViewChangeResendInterval

func (x *Options) GetViewChangeResendInterval() string

func (*Options) GetViewChangeTimeout

func (x *Options) GetViewChangeTimeout() string

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) ProtoReflect added in v0.8.6

func (x *Options) ProtoReflect() protoreflect.Message

func (*Options) Reset

func (x *Options) Reset()

func (*Options) String

func (x *Options) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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