Documentation
¶
Overview ¶
Package helpers contains functions to build sample data for tests/testgen
In it's own package to avoid poluting the godoc for ics23-iavl
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTree ¶
func BuildTree(size int) (tree *iavl.MutableTree, keys [][]byte, err error)
BuildTree creates random key/values and stores in tree returns a list of all keys in sorted order
Types ¶
type IavlResult ¶
type IavlResult struct { Key []byte Value []byte Proof *iavl.RangeProof RootHash []byte }
IavlResult is the result of one match
func GenerateIavlResult ¶
func GenerateIavlResult(size int, loc tmproofs.Where) (*IavlResult, error)
GenerateIavlResult makes a tree of size and returns a range proof for one random element
returns a range proof and the root hash of the tree
Click to show internal directories.
Click to hide internal directories.