stats

package
v0.0.0-...-7ece11e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IsEnableBPV3Stats bool = false
)

Functions

func GetShardHeightBPV3Stats

func GetShardHeightBPV3Stats(db incdb.Database, shardID byte, epoch uint64) (map[uint64]*DetailBlockInOneEpochStats, error)

func UpdateBPV3Stats

func UpdateBPV3Stats(db incdb.Database, shardBlock *types.ShardBlock, subsetID int, totalCommittees []incognitokey.CommitteePublicKey) error

Types

type DetailBlockInOneEpochStats

type DetailBlockInOneEpochStats struct {
	Height     uint64
	Producer   string
	ProducerID int
	Proposer   string
	ProposerID int
	VotersID   []int
}

func NewDetailBlockInOneEpochStats

func NewDetailBlockInOneEpochStats(height uint64) *DetailBlockInOneEpochStats

type NumberOfBlockInOneEpochStats

type NumberOfBlockInOneEpochStats struct {
	Epoch uint64
	Odd   int
	Even  int
}

func GetShardEpochBPV3Stats

func GetShardEpochBPV3Stats(db incdb.Database, shardID byte, epoch uint64) (*NumberOfBlockInOneEpochStats, error)

func NewBlockInOneEpochStats

func NewBlockInOneEpochStats(epoch uint64) *NumberOfBlockInOneEpochStats

Jump to

Keyboard shortcuts

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