eth-statediff-compliance/Makefile

29 lines
822 B
Makefile
Raw Normal View History

# Note: Top-level package code is shared, but commands are in separate modules to prevent
# go-ethereum import conflicts
ALL := dumpdiff.geth dumpdiff.plugeth dumpdiff.plugeth-parallel
BUILD_DIR := ./build
dumpdiff.geth: dumpdiff-geth/*
cd dumpdiff-geth && go build -tags geth -o ../$@ .
dumpdiff.plugeth:
cd dumpdiff-plugeth && go build -tags plugeth -o ../$@ .
dumpdiff.plugeth-parallel:
cd dumpdiff-plugeth-parallel && go build -tags plugeth_parallel -o ../$@ .
clean:
rm -rf $(ALL) $(BUILD_DIR)
Add 'test' target. (#5) ``` ❯ make test ./scripts/compare-diffs.sh -d _var/ geth plugeth DBUG[10-11|21:40:14] Registering statediff indexer metrics. DBUG[10-11|21:40:14] Registering statediff DB metrics. WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:14.563] Persisted trie from memory database nodes=1 size=147.00B time="5.248µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:14.563] Attempting PostTrieCommit, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:14.563] Persisted trie from memory database nodes=1 size=157.00B time="10.904µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:14.563] Attempting PostTrieCommit, but default PluginLoader has not been initialized + diff _var//A/0_diff.txt _var//B/0_diff.txt + diff _var//A/1_diff.txt _var//B/1_diff.txt + diff _var//A/2_diff.txt _var//B/2_diff.txt + diff _var//A/3_diff.txt _var//B/3_diff.txt ./scripts/compare-diffs.sh -d _var/ geth plugeth-parallel DBUG[10-11|21:40:16] Registering statediff indexer metrics. DBUG[10-11|21:40:16] Registering statediff DB metrics. WARN [10-11|21:40:16.986] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:16.987] Persisted trie from memory database nodes=1 size=147.00B time="7.87µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:16.987] Attempting PostTrieCommit, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.988] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.988] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:16.988] Persisted trie from memory database nodes=1 size=157.00B time="17.649µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:16.988] Attempting PostTrieCommit, but default PluginLoader has not been initialized + diff _var//A/0_diff.txt _var//B/0_diff.txt + diff _var//A/1_diff.txt _var//B/1_diff.txt + diff _var//A/2_diff.txt _var//B/2_diff.txt + diff _var//A/3_diff.txt _var//B/3_diff.txt ``` Reviewed-on: https://git.vdb.to/cerc-io/eth-statediff-compliance/pulls/5 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-10-12 15:03:18 +00:00
compare-plugeth: dumpdiff.geth dumpdiff.plugeth
./scripts/compare-diffs.sh -d $(BUILD_DIR)/ geth plugeth
Add 'test' target. (#5) ``` ❯ make test ./scripts/compare-diffs.sh -d _var/ geth plugeth DBUG[10-11|21:40:14] Registering statediff indexer metrics. DBUG[10-11|21:40:14] Registering statediff DB metrics. WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:14.563] Persisted trie from memory database nodes=1 size=147.00B time="5.248µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:14.563] Attempting PostTrieCommit, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:14.563] Persisted trie from memory database nodes=1 size=157.00B time="10.904µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:14.563] Attempting PostTrieCommit, but default PluginLoader has not been initialized + diff _var//A/0_diff.txt _var//B/0_diff.txt + diff _var//A/1_diff.txt _var//B/1_diff.txt + diff _var//A/2_diff.txt _var//B/2_diff.txt + diff _var//A/3_diff.txt _var//B/3_diff.txt ./scripts/compare-diffs.sh -d _var/ geth plugeth-parallel DBUG[10-11|21:40:16] Registering statediff indexer metrics. DBUG[10-11|21:40:16] Registering statediff DB metrics. WARN [10-11|21:40:16.986] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:16.987] Persisted trie from memory database nodes=1 size=147.00B time="7.87µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:16.987] Attempting PostTrieCommit, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.988] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.988] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:16.988] Persisted trie from memory database nodes=1 size=157.00B time="17.649µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:16.988] Attempting PostTrieCommit, but default PluginLoader has not been initialized + diff _var//A/0_diff.txt _var//B/0_diff.txt + diff _var//A/1_diff.txt _var//B/1_diff.txt + diff _var//A/2_diff.txt _var//B/2_diff.txt + diff _var//A/3_diff.txt _var//B/3_diff.txt ``` Reviewed-on: https://git.vdb.to/cerc-io/eth-statediff-compliance/pulls/5 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-10-12 15:03:18 +00:00
compare-plugeth-parallel: dumpdiff.geth dumpdiff.plugeth-parallel
./scripts/compare-diffs.sh -d $(BUILD_DIR)/ geth plugeth-parallel
Add 'test' target. (#5) ``` ❯ make test ./scripts/compare-diffs.sh -d _var/ geth plugeth DBUG[10-11|21:40:14] Registering statediff indexer metrics. DBUG[10-11|21:40:14] Registering statediff DB metrics. WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:14.563] Persisted trie from memory database nodes=1 size=147.00B time="5.248µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:14.563] Attempting PostTrieCommit, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:14.563] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:14.563] Persisted trie from memory database nodes=1 size=157.00B time="10.904µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:14.563] Attempting PostTrieCommit, but default PluginLoader has not been initialized + diff _var//A/0_diff.txt _var//B/0_diff.txt + diff _var//A/1_diff.txt _var//B/1_diff.txt + diff _var//A/2_diff.txt _var//B/2_diff.txt + diff _var//A/3_diff.txt _var//B/3_diff.txt ./scripts/compare-diffs.sh -d _var/ geth plugeth-parallel DBUG[10-11|21:40:16] Registering statediff indexer metrics. DBUG[10-11|21:40:16] Registering statediff DB metrics. WARN [10-11|21:40:16.986] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:16.987] Persisted trie from memory database nodes=1 size=147.00B time="7.87µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:16.987] Attempting PostTrieCommit, but default PluginLoader has not been initialized WARN [10-11|21:40:16.987] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.988] Attempting StateUpdate, but default PluginLoader has not been initialized WARN [10-11|21:40:16.988] Attempting PreTrieCommit, but default PluginLoader has not been initialized INFO [10-11|21:40:16.988] Persisted trie from memory database nodes=1 size=157.00B time="17.649µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B WARN [10-11|21:40:16.988] Attempting PostTrieCommit, but default PluginLoader has not been initialized + diff _var//A/0_diff.txt _var//B/0_diff.txt + diff _var//A/1_diff.txt _var//B/1_diff.txt + diff _var//A/2_diff.txt _var//B/2_diff.txt + diff _var//A/3_diff.txt _var//B/3_diff.txt ``` Reviewed-on: https://git.vdb.to/cerc-io/eth-statediff-compliance/pulls/5 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-10-12 15:03:18 +00:00
test: compare-plugeth compare-plugeth-parallel
all: $(ALL)
.PHONY: all