Documentation ¶
Index ¶
- func BlockFileName(chainid string, index uint32, h state.BlockHash) string
- func FileName(chainID isc.ChainID, stateIndex uint32) string
- func WriteKVToStream(store kv.KVIterator, stream kv.StreamWriter, p ...ConsoleReportParams) error
- func WriteSnapshot(sr state.State, dir string, p ...ConsoleReportParams) error
- type ConsoleReportParams
- type FileProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteKVToStream ¶
func WriteKVToStream(store kv.KVIterator, stream kv.StreamWriter, p ...ConsoleReportParams) error
WriteKVToStream dumps k/v pairs of the state into the file. Keys are not sorted, so the result in general is not deterministic
func WriteSnapshot ¶
func WriteSnapshot(sr state.State, dir string, p ...ConsoleReportParams) error
Types ¶
type ConsoleReportParams ¶
type FileProperties ¶
type FileProperties struct { FileName string ChainID isc.ChainID StateIndex uint32 TimeStamp time.Time NumRecords int MaxKeyLen int Bytes int }
func Scan ¶
func Scan(rdr kv.StreamIterator) (*FileProperties, error)
func ScanFile ¶
func ScanFile(fname string) (*FileProperties, error)
Click to show internal directories.
Click to hide internal directories.