types

package
v1.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 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 RetryCounter

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

RetryCounter is a helper struct that ensure retrying for at least N times and not expire before time T

func DefaultRetryCounterFetchingRpc

func DefaultRetryCounterFetchingRpc() *RetryCounter

DefaultRetryCounterFetchingRpc returns default counter, ensure at least retry for 5 times, minimum 10s

func NewRetryCounter

func NewRetryCounter(expireAfterSecs int64, minRetry int8) *RetryCounter

func (*RetryCounter) Continue

func (c *RetryCounter) Continue() bool

type StreamingLightValidator

type StreamingLightValidator struct {
	Index                     int
	VotingPowerDisplayPercent float64
	Moniker                   string
}

type StreamingLightValidators

type StreamingLightValidators []StreamingLightValidator

type StreamingNextBlockVotingInformation

type StreamingNextBlockVotingInformation struct {
	HeightRoundStep       string
	Duration              time.Duration
	PreVotedPercent       float64
	PreCommitVotedPercent float64
	ValidatorVoteStates   []StreamingValidatorVoteState
}

type StreamingValidatorVoteState

type StreamingValidatorVoteState struct {
	ValidatorIndex    int
	PreVotedBlockHash string
	PreVoted          bool
	VotedZeroes       bool
	PreCommitVoted    bool
}

Jump to

Keyboard shortcuts

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