Documentation ¶
Index ¶
- func CreateTriesComponentsForShardId(generalConfig config.Config, coreComponentsHolder coreComponentsHandler, ...) (common.TriesHolder, map[string]common.StorageManager, error)
- func NewTrieFactory(args TrieFactoryArgs) (*trieCreator, error)
- func NewTrieNodeFactory() *trieNodeFactory
- type TrieCreateArgs
- type TrieFactoryArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTriesComponentsForShardId ¶
func CreateTriesComponentsForShardId( generalConfig config.Config, coreComponentsHolder coreComponentsHandler, storageService dataRetriever.StorageService, stateStatsHandler common.StateStatisticsHandler, ) (common.TriesHolder, map[string]common.StorageManager, error)
CreateTriesComponentsForShardId creates the user and peer tries and trieStorageManagers
func NewTrieFactory ¶
func NewTrieFactory( args TrieFactoryArgs, ) (*trieCreator, error)
NewTrieFactory creates a new trie factory
func NewTrieNodeFactory ¶
func NewTrieNodeFactory() *trieNodeFactory
NewTrieNodeFactory creates a new trieNodeFactory
Types ¶
type TrieCreateArgs ¶
type TrieCreateArgs struct { MainStorer storage.Storer PruningEnabled bool SnapshotsEnabled bool MaxTrieLevelInMem uint IdleProvider trie.IdleNodeProvider Identifier string EnableEpochsHandler common.EnableEpochsHandler StatsCollector common.StateStatisticsHandler }
TrieCreateArgs holds arguments for calling the Create method on the TrieFactory
type TrieFactoryArgs ¶
type TrieFactoryArgs struct { Marshalizer marshal.Marshalizer Hasher hashing.Hasher PathManager storage.PathManagerHandler TrieStorageManagerConfig config.TrieStorageManagerConfig StateStatsHandler common.StateStatisticsHandler }
TrieFactoryArgs holds the arguments for creating a trie factory
Click to show internal directories.
Click to hide internal directories.