mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
- Update import paths to use luxfi/consensus instead of luxfi/snow - Add protocol parameters for EIP-4844 blob gas support - Improve database handling with proper metrics and caching - Update dependency management scripts for better fork maintenance - Fix various import paths and test references
34 lines
890 B
Bash
Executable File
34 lines
890 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Usage: scripts/diff_against.sh {geth_commit}
|
|
#
|
|
# Per-file diffs will be written to `diffs/{geth_commit}`.
|
|
#
|
|
# Example: `scripts/diff_against.sh b20b4a71598481443d60b261d3e5dcb37f8a0d82` to compare with v1.13.8.
|
|
#
|
|
# *NOTE* Before running this script:
|
|
# 1. Run `scripts/format_as_upstream.sh` to reformat this repo as `luxfi/geth`.
|
|
# 2. Add geth as a remote: `git remote add -f geth [email protected]:luxfi/geth.git`.
|
|
# 3. Find the geth commit for the latest version merged into this repo.
|
|
#
|
|
|
|
set -e;
|
|
set -u;
|
|
|
|
ROOT=$(git rev-parse --show-toplevel);
|
|
cd "${ROOT}";
|
|
|
|
BASE="${1}";
|
|
|
|
# The diffs/ directory is in .gitignore to avoid recursive diffiffiffs.
|
|
mkdir -p "diffs/${BASE}";
|
|
|
|
git diff "${BASE}" --name-only | while read -r f
|
|
do
|
|
echo "${f}";
|
|
DIR=$(dirname "${f}");
|
|
mkdir -p "diffs/${BASE}/${DIR}";
|
|
git diff "${BASE}" -- "${f}" > "diffs/${BASE}/${f}.diff";
|
|
done
|