syncer

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: GPL-3.0 Imports: 21 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 ErrNilEnableEpochsHandler = errors.New("nil enable epochs handler")

ErrNilEnableEpochsHandler signals that a nil enable epochs handler was provided

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

ErrNilPubkeyConverter signals that a nil public key converter was provided

View Source
var ErrNilStorageMarker = errors.New("nil storage marker")

ErrNilStorageMarker signals that a nil storage marker was provided

Functions

func NewMissingTrieNodesNotifier added in v1.6.0

func NewMissingTrieNodesNotifier() *missingTrieNodesNotifier

NewMissingTrieNodesNotifier creates a new missing trie nodes notifier

func NewUserAccountsSyncer

func NewUserAccountsSyncer(args ArgsNewUserAccountsSyncer) (*userAccountsSyncer, error)

NewUserAccountsSyncer creates a user account syncer

func NewValidatorAccountsSyncer

func NewValidatorAccountsSyncer(args ArgsNewValidatorAccountsSyncer) (*validatorAccountsSyncer, error)

NewValidatorAccountsSyncer creates a validator account syncer

Types

type ArgsNewBaseAccountsSyncer

type ArgsNewBaseAccountsSyncer struct {
	Hasher                            hashing.Hasher
	Marshalizer                       marshal.Marshalizer
	TrieStorageManager                common.StorageManager
	RequestHandler                    trie.RequestHandler
	Timeout                           time.Duration
	Cacher                            storage.Cacher
	UserAccountsSyncStatisticsHandler common.SizeSyncStatisticsHandler
	AppStatusHandler                  core.AppStatusHandler
	EnableEpochsHandler               common.EnableEpochsHandler
	MaxTrieLevelInMemory              uint
	MaxHardCapForMissingNodes         int
	TrieSyncerVersion                 int
	CheckNodesOnDisk                  bool
}

ArgsNewBaseAccountsSyncer defines the arguments needed for the new account syncer

type ArgsNewUserAccountsSyncer

type ArgsNewUserAccountsSyncer struct {
	ArgsNewBaseAccountsSyncer
	ShardId                uint32
	Throttler              data.GoRoutineThrottler
	AddressPubKeyConverter core.PubkeyConverter
}

ArgsNewUserAccountsSyncer defines the arguments needed for the new account syncer

type ArgsNewValidatorAccountsSyncer

type ArgsNewValidatorAccountsSyncer struct {
	ArgsNewBaseAccountsSyncer
}

ArgsNewValidatorAccountsSyncer defines the arguments needed for the new account syncer

Jump to

Keyboard shortcuts

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