syncer

package
v1.1.27 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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   data.StorageManager
	RequestHandler       trie.RequestHandler
	Timeout              time.Duration
	Cacher               storage.Cacher
	MaxTrieLevelInMemory uint
}

ArgsNewBaseAccountsSyncer defines the arguments needed for the new account syncer

type ArgsNewUserAccountsSyncer

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

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