dpos

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const ConfirmChainParallelNum = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveTrx

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

type BlockReceivedVotes

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

type DPoS

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

func NewDPoS

func NewDPoS(cfgFile string) *DPoS

func (*DPoS) CleanSyncCache added in v1.3.0

func (dps *DPoS) CleanSyncCache()

func (*DPoS) Init

func (dps *DPoS) Init()

func (*DPoS) ProcessMsg

func (dps *DPoS) ProcessMsg(bs *consensus.BlockSource)

func (*DPoS) RPC added in v1.4.0

func (dps *DPoS) RPC(kind uint, in, out interface{})

func (*DPoS) Start

func (dps *DPoS) Start()

func (*DPoS) Stop

func (dps *DPoS) Stop()

type Election

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

type EvictedFunc added in v1.3.1

type EvictedFunc func(interface{}, interface{})

type PerfType added in v1.4.0

type PerfType int32

func (PerfType) String added in v1.4.0

func (pt PerfType) String() string

type Processor

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

type RepAckStatistics added in v1.3.0

type RepAckStatistics struct {
	HeartCount      uint64 `json:"heartCount"`
	LastHeartHeight uint64 `json:"-"`
	VoteCount       uint64 `json:"voteCount"`
}

type RepOnlinePeriod added in v1.3.0

type RepOnlinePeriod struct {
	Period     uint64                              `json:"period"`
	Statistic  *sync.Map                           `json:"-"`
	Stat       map[types.Address]*RepAckStatistics `json:"statistics"`
	BlockCount uint64                              `json:"blockCount"`
}

func (*RepOnlinePeriod) String added in v1.3.0

func (op *RepOnlinePeriod) String() string

type Votes

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

Jump to

Keyboard shortcuts

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