Documentation ¶
Index ¶
- func NewUserAccountsSyncer(args ArgsNewUserAccountsSyncer) (*userAccountsSyncer, error)
- func NewValidatorAccountsSyncer(args ArgsNewValidatorAccountsSyncer) (*validatorAccountsSyncer, error)
- type ArgsNewBaseAccountsSyncer
- type ArgsNewUserAccountsSyncer
- type ArgsNewValidatorAccountsSyncer
- type SyncStatisticsHandler
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 common.StorageManager RequestHandler trie.RequestHandler Timeout time.Duration Cacher storage.Cacher MaxTrieLevelInMemory uint MaxHardCapForMissingNodes int TrieSyncerVersion int }
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
type SyncStatisticsHandler ¶
type SyncStatisticsHandler interface { Reset() AddNumReceived(value int) AddNumLarge(value int) SetNumMissing(rootHash []byte, value int) NumReceived() int NumLarge() int NumMissing() int IsInterfaceNil() bool }
SyncStatisticsHandler defines the methods for a component able to store the sync statistics for a trie
Click to show internal directories.
Click to hide internal directories.