Documentation
¶
Index ¶
- Constants
- Variables
- func Commit(batches []dbm.Batch) error
- func GetLatestVersion(db dbm.DB) int64
- func OpenApplicationDB(rootDir string) (dbm.DB, error)
- func OpenBlockStoreDB(rootDir string) (dbm.DB, error)
- func OpenStateDB(rootDir string) (dbm.DB, error)
- func PrefixDB(key *sdk.KVStoreKey, originDB dbm.DB) *dbm.PrefixDB
- type Node
Constants ¶
View Source
const ( Int64Size = 8 HashSize = sha256.Size LatestVersionKey = "s/latest" CommitInfoKeyFmt = "s/%d" // s/<version> )
Variables ¶
View Source
var ( RootKeyFormat = iavl.NewKeyFormat('r', Int64Size) // r<version> NodeKeyFormat = iavl.NewKeyFormat('n', HashSize) // n<hash> OrphanKeyFormat = iavl.NewKeyFormat('o', Int64Size, Int64Size, HashSize) // o<last-version><first-version><hash> )
Root nodes are indexed separately by their version
Functions ¶
func GetLatestVersion ¶
Types ¶
type Node ¶
type Node struct { Hash []byte LeftHash []byte RightHash []byte Version int64 // contains filtered or unexported fields }
Node represents a node in a Tree.
Click to show internal directories.
Click to hide internal directories.