types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Indexer common logic
	RPCCallTimeout          = 13 * time.Second
	AfterFailedRetryTimeout = 10 * time.Second
	CatchingUpSleepDuration = 100 * time.Millisecond
	DefaultSleepDuration    = 5 * time.Second
	UnHealthSleep           = 10 * time.Second

	// SQL Durations
	SQLQueryMaxDuration         = 10 * time.Second // common query timeout
	RetentionQuerySleepDuration = 1 * time.Hour    // retention logic

	// Fetching Height Logic
	FetchTimeout                  = 5 * time.Second
	FetchSleepDuration            = 5 * time.Second
	AfterFailedFetchSleepDuration = 10 * time.Second

	BatchSyncLimit = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LatestHeightCache

type LatestHeightCache struct {
	Mutex        sync.RWMutex
	LatestHeight int64
}

type MonikerIDMap

type MonikerIDMap map[int64]bool

type ValidatorIDMap

type ValidatorIDMap map[string]int64

types for indexer packages

Jump to

Keyboard shortcuts

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