Documentation
¶
Overview ¶
Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- type Config
- type NodeBytesWithType
- type Store
- func (s *Store) Close() error
- func (s *Store) CommitChanges(blockNum uint64) error
- func (s *Store) GetNode(nodePtr []byte) (mptrie.TrieNode, error)
- func (s *Store) GetValue(valuePtr []byte) ([]byte, error)
- func (s *Store) Height() (uint64, error)
- func (s *Store) PersistNode(nodePtr []byte) (bool, error)
- func (s *Store) PersistValue(valuePtr []byte) (bool, error)
- func (s *Store) PutNode(nodePtr []byte, node mptrie.TrieNode) error
- func (s *Store) PutValue(valuePtr, value []byte) error
- func (s *Store) RollbackChanges() error
Constants ¶
View Source
const ( Branch = 0x1 Extension = 0x2 Value = 0x3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { StoreDir string Logger *logger.SugarLogger }
Config holds the configuration of a trie store
type NodeBytesWithType ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store maintains MPTrie nodes and values in backend store
func (*Store) CommitChanges ¶
func (*Store) RollbackChanges ¶
Click to show internal directories.
Click to hide internal directories.