compare

package
v0.0.0-...-579b097 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AllPubDiffsByKey - Filename for the json output that contains all public differences ordered by key
	AllPubDiffsByKey = "all_pub_diffs_by_key.json"
	// AllPvtDiffsByKey - Filename for the json output that contains all private differences ordered by key
	AllPvtDiffsByKey = "all_pvt_diffs_by_key.json"
	// FirstDiffsByHeight - Filename for the json output that contains the first n differences ordered by height
	FirstDiffsByHeight = "first_diffs_by_height.json"
)

Variables

This section is empty.

Functions

func Compare

func Compare(snapshotDir1 string, snapshotDir2 string, outputDirLoc string, firstDiffs int) (count int, outputDirPath string, err error)

Compare - Compares two ledger snapshots and outputs the differences in snapshot records This function will throw an error if the output directory already exist in the outputDirLoc Function will return count of -1 if the public state and private state hashes are the same

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL