common

package
v0.4.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleConfig

type ModuleConfig struct {
	Self t.ModuleID

	App            t.ModuleID
	Ava            t.ModuleID
	Crypto         t.ModuleID
	Hasher         t.ModuleID
	Net            t.ModuleID
	Ord            t.ModuleID
	PPrepValidator t.ModuleID
	Timer          t.ModuleID
}

type Segment

The Segment type represents an ISS Segment. It is used to parametrize an orderer (i.e. the SB instance).

func NewSegment

func NewSegment(
	leader t.NodeID,
	membership *trantorpbtypes.Membership,
	proposals map[tt.SeqNr][]byte,
) (*Segment, error)

func (*Segment) LeaderIndex

func (seg *Segment) LeaderIndex() int

func (*Segment) Len

func (seg *Segment) Len() int

func (*Segment) NodeIDs

func (seg *Segment) NodeIDs() []t.NodeID

func (*Segment) PbType

func (seg *Segment) PbType() *ordererpbtypes.PBFTSegment

func (*Segment) PrimaryNode

func (seg *Segment) PrimaryNode(view types.ViewNr) t.NodeID

func (*Segment) SeqNrs

func (seg *Segment) SeqNrs() []tt.SeqNr

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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