usage in readme

This commit is contained in:
Roy Crihfield 2023-09-20 01:26:26 +08:00
parent 2bbea97cbf
commit c8d1222922
2 changed files with 10 additions and 1 deletions

View File

@ -3,3 +3,11 @@
Tooling to directly verify and benchmark the results of go-ethereum state diffs. Tooling to directly verify and benchmark the results of go-ethereum state diffs.
Specifically, compares `plugeth-statediff`- and `go-ethereum/statediff`-built diffs. Specifically, compares `plugeth-statediff`- and `go-ethereum/statediff`-built diffs.
## Usage
```
make dumpdiff.plugeth dumpdiff.geth
./scripts/compare-diffs.sh
```

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
set -ex set -e
PLUGIN_OUTPUT=$(mktemp -d -t plugin_) PLUGIN_OUTPUT=$(mktemp -d -t plugin_)
GETH_OUTPUT=$(mktemp -d -t geth_) GETH_OUTPUT=$(mktemp -d -t geth_)
@ -11,4 +11,5 @@ GETH_OUTPUT=$(mktemp -d -t geth_)
for file in $(ls $PLUGIN_OUTPUT) for file in $(ls $PLUGIN_OUTPUT)
do do
diff "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file" diff "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
echo Files match: "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
done done