trieIterators

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-3.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotCastAccountHandlerToUserAccount = errors.New("cannot cast AccountHandler to UserAccount")

ErrCannotCastAccountHandlerToUserAccount signal that returned account is wrong

View Source
var ErrNilAccountsAdapter = errors.New("trying to set nil accounts adapter")

ErrNilAccountsAdapter signals that a nil accounts adapter has been provided

View Source
var ErrNilMutex = errors.New("nil mutex")

ErrNilMutex signals that a nil mutex has been provided

View Source
var ErrNilPubkeyConverter = errors.New("nil pubkey converter")

ErrNilPubkeyConverter signals that an operation has been attempted to or with a nil public key converter implementation

View Source
var ErrNilQueryService = errors.New("nil query service")

ErrNilQueryService signals that a nil query service has been provided

View Source
var ErrTrieOperationsTimeout = errors.New("trie operations timeout")

ErrTrieOperationsTimeout signals a timeout during trie operations

Functions

func NewDelegatedListProcessor

func NewDelegatedListProcessor(arg ArgTrieIteratorProcessor) (*delegatedListProcessor, error)

NewDelegatedListProcessor will create a new instance of delegatedListProc

func NewDirectStakedListProcessor

func NewDirectStakedListProcessor(arg ArgTrieIteratorProcessor) (*directStakedListProcessor, error)

NewDirectStakedListProcessor will create a new instance of stakedValuesProc

func NewTotalStakedValueProcessor

func NewTotalStakedValueProcessor(arg ArgTrieIteratorProcessor) (*stakedValuesProcessor, error)

NewTotalStakedValueProcessor will create a new instance of stakedValuesProc

Types

type AccountsWrapper

type AccountsWrapper struct {
	*sync.Mutex
	state.AccountsAdapter
}

AccountsWrapper extends the AccountsAdapter interface

type ArgTrieIteratorProcessor

type ArgTrieIteratorProcessor struct {
	ShardID            uint32
	Accounts           *AccountsWrapper
	QueryService       process.SCQueryService
	PublicKeyConverter core.PubkeyConverter
}

ArgTrieIteratorProcessor represents the arguments DTO used in trie iterator processors constructors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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