Tooling to directly verify and benchmark the results of go-ethereum state diffs.
Thomas E Lackey
353b68c395
All checks were successful
Test / Run unit tests (push) Successful in 12m32s
``` ❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-geth/ github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1 ❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-plugeth github.com/cerc-io/plugeth-statediff=/home/telackey/cerc/plugeth-statediff github.com/cerc-io/eth-iterator-utils=git.vdb.to/cerc-io/eth-iterator-utils@v0.1.2 github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1 github.com/ethereum/go-ethereum=git.vdb.to/cerc-io/plugeth@v0.0.0-20230808125822-691dc334fab1 github.com/openrelayxyz/plugeth-utils=git.vdb.to/cerc-io/plugeth-utils@v0.0.0-20230706160122-cd41de354c46 ❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-plugeth-parallel/ github.com/cerc-io/plugeth-statediff=/home/telackey/cerc/plugeth-statediff github.com/cerc-io/eth-iterator-utils=git.vdb.to/cerc-io/eth-iterator-utils@v0.1.2 github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1 github.com/ethereum/go-ethereum=git.vdb.to/cerc-io/plugeth@v0.0.0-20230808125822-691dc334fab1 github.com/openrelayxyz/plugeth-utils=git.vdb.to/cerc-io/plugeth-utils@v0.0.0-20230706160122-cd41de354c46 ``` Co-authored-by: Roy Crihfield <roy@manteia.ltd> Reviewed-on: #3 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com> |
||
---|---|---|
.github/workflows | ||
dumpdiff-geth | ||
dumpdiff-plugeth | ||
dumpdiff-plugeth-parallel | ||
internal/statediff | ||
pkg | ||
scripts | ||
go.mod | ||
go.sum | ||
Makefile | ||
README.md |
eth-statediff-compliance
Tooling to directly verify and benchmark the results of go-ethereum state diffs.
Usage
Use scripts/compare-diffs.sh
to compare outputs of go-ethereum/statediff
and plugeth-statediff
.
# Compare the output of geth-statediff and the statediff plugin (as of v0.1.1):
./scripts/compare-diffs.sh -d _var/ geth plugeth
# Compare geth-statediff and the plugin using parallel iterators:
./scripts/compare-diffs.sh -d _var/ geth plugeth
A zero exit code indicates identical outputs, modulo possible duplicate nodes.