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.
Click to show internal directories.
Click to hide internal directories.