diff --git a/README.md b/README.md index e11594c..60c53bb 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,11 @@ Tooling to directly verify and benchmark the results of go-ethereum state diffs. Specifically, compares `plugeth-statediff`- and `go-ethereum/statediff`-built diffs. + +## Usage + +``` +make dumpdiff.plugeth dumpdiff.geth + +./scripts/compare-diffs.sh +``` diff --git a/scripts/compare-diffs.sh b/scripts/compare-diffs.sh index 601a0e4..da67135 100755 --- a/scripts/compare-diffs.sh +++ b/scripts/compare-diffs.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e PLUGIN_OUTPUT=$(mktemp -d -t plugin_) GETH_OUTPUT=$(mktemp -d -t geth_) @@ -11,4 +11,5 @@ GETH_OUTPUT=$(mktemp -d -t geth_) for file in $(ls $PLUGIN_OUTPUT) do diff "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file" + echo Files match: "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file" done