otaindexer

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REINDEX = "reindex"
	INDEX   = "index"
	RUN     = "run"
)

Variables

View Source
var OTAAssignChn chan OTAAssignRequest
View Source
var Submitted_OTAKey = struct {
	sync.RWMutex
	Keys        map[string]*OTAkeyInfo
	KeysByShard map[int][]*OTAkeyInfo
	AssignedKey map[string]*worker
	TotalKeys   int
}{}

Functions

func GetOTAKeyListMinScannedCoinIndex

func GetOTAKeyListMinScannedCoinIndex(keylist map[int][]*OTAkeyInfo) (map[int]uint64, map[int]uint64)

func GetOTAKeyListMinScannedTxIndex added in v1.8.0

func GetOTAKeyListMinScannedTxIndex() map[int]string

func GetUnknownCoinsFromDB

func GetUnknownCoinsFromDB(fromPRVIndex, fromTokenIndex map[int]uint64) []shared.CoinData

func GetWorkerStat added in v1.1.0

func GetWorkerStat(c *gin.Context)

func ReCheckOTAKey added in v1.8.0

func ReCheckOTAKey(otaKey, pubKey string, reIndex bool) error

func StartOTAIndexing

func StartOTAIndexing()

func StartWorkerAssigner

func StartWorkerAssigner()

func WorkerRegisterHandler

func WorkerRegisterHandler(c *gin.Context)

Types

type CoordinatorState added in v1.8.0

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

type OTAAssignRequest

type OTAAssignRequest struct {
	Key     *shared.SubmittedOTAKeyData
	FromNow bool
	Respond chan error
}

type OTAkeyInfo

type OTAkeyInfo struct {
	ShardID int
	Pubkey  string
	OTAKey  string

	KeyInfo *shared.KeyInfoData
	// contains filtered or unexported fields
}

type WorkerOTACmd

type WorkerOTACmd struct {
	Action string
	Key    OTAkeyInfo
}

Jump to

Keyboard shortcuts

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