Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SavePayloadsToFile ¶
SavePayloadsToFile given a block height and file path writes all the payloads for that snapshot height to the file in json format.
func SetProtocolUpgrade ¶ added in v0.74.0
SetProtocolUpgrade will take the latest snapshot in the tree and rewrites it with the protocolUpgrade flag set to true so that we can pretend that the snapshot was taken for a upgrade to help with testing.
Types ¶
type Data ¶ added in v0.62.0
type Data struct { Height uint64 `json:"height,omitempty"` Version int64 `json:"version"` Size int64 `json:"size"` Hash string `json:"hash"` }
Data is a representation of the information we scrape from the avl tree.
type Database ¶ added in v0.72.0
type Database interface { cometbftdb.DB Clear() error }
Click to show internal directories.
Click to hide internal directories.