types

package
v0.68.0-prev2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastBlock

type LastBlock struct {
	ChainID                         string
	BlockHeight                     uint64
	BlockHash                       string
	ProofOfWorkHashFunction         string
	ProofOfWorkDifficulty           uint32
	ProofOfWorkPastBlocks           uint32
	ProofOfWorkTxPerBlock           uint32
	ProofOfWorkIncreasingDifficulty bool
}

type PoWBlockState added in v0.68.0

type PoWBlockState struct {
	BlockHeight          uint64
	BlockHash            string
	TransactionsSeen     uint64
	ExpectedDifficulty   *uint64
	HashFunction         string
	Difficulty           uint64
	TxPerBlock           uint64
	IncreasingDifficulty bool
}

type PoWStatistics added in v0.68.0

type PoWStatistics struct {
	PowBlockStates []PoWBlockState
	PastBlocks     uint64
	BannedUntil    *string
}

type SpamStatistic added in v0.68.0

type SpamStatistic struct {
	CountForEpoch uint64
	MaxForEpoch   uint64
	BannedUntil   *string
}

type SpamStatistics added in v0.68.0

type SpamStatistics struct {
	ChainID           string
	EpochSeq          uint64
	LastBlockHeight   uint64
	Proposals         *SpamStatistic
	Delegations       *SpamStatistic
	Transfers         *SpamStatistic
	NodeAnnouncements *SpamStatistic
	IssuesSignatures  *SpamStatistic
	Votes             *VoteSpamStatistics
	PoW               *PoWStatistics
}

type Statistics

type Statistics struct {
	BlockHash   string
	BlockHeight uint64
	ChainID     string
	VegaTime    string
}

type TransactionError

type TransactionError struct {
	ABCICode uint32
	Message  string
}

func (TransactionError) Error

func (e TransactionError) Error() string

func (TransactionError) Is

func (e TransactionError) Is(target error) bool

type VoteSpamStatistics added in v0.68.0

type VoteSpamStatistics struct {
	Proposals   map[string]uint64
	MaxForEpoch uint64
	BannedUntil *string
}

Jump to

Keyboard shortcuts

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