Documentation ¶
Index ¶
Constants ¶
View Source
const PeerAccountTrie = "peerAccount"
PeerAccountTrie represents the peer account identifier
View Source
const UserAccountTrie = "userAccount"
UserAccountTrie represents the use account identifier
Variables ¶
This section is empty.
Functions ¶
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 { TrieStorageConfig config.StorageConfig ShardID string PruningEnabled bool CheckpointsEnabled bool MaxTrieLevelInMem uint }
TrieCreateArgs holds arguments for calling the Create method on the TrieFactory
type TrieFactoryArgs ¶
type TrieFactoryArgs struct { SnapshotDbCfg config.DBConfig Marshalizer marshal.Marshalizer Hasher hashing.Hasher PathManager storage.PathManagerHandler TrieStorageManagerConfig config.TrieStorageManagerConfig }
TrieFactoryArgs holds the arguments for creating a trie factory
Click to show internal directories.
Click to hide internal directories.