Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateDB ¶
type StateDB interface { Init(storagePath, sorageType string) error Version() uint64 LoadVersion(int64) error // zero means last version, -1 is the previous to the last version AddTree(name string) error Tree(name string) StateTree TreeWithRoot(root []byte) StateTree ImmutableTree(name string) StateTree // a tree version that won't change Commit() ([]byte, error) // Returns New Hash Rollback() error KeyDiff(root1, root2 []byte) ([][]byte, error) // list of inserted keys on root2 that are not present in root1 Hash() []byte Close() error }
Click to show internal directories.
Click to hide internal directories.