diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4ed70d500ab..26c75120147 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -11,16 +11,20 @@ version: 2.1
# act's local cache is not reusable across these machines; Pages plumbing is skipped after the
# validation build. Lint and unit jobs are distributed; other workflows run up to four jobs.
#
-# Excluded: pr-title.yml, label-pr.yml, and the privileged cyclops-audit.yml integration.
+# Excluded: pr-title.yml, label-pr.yml, the privileged cyclops-audit.yml integration, and
+# scan-github-actions.yml, whose reusable workflow needs a GitHub OIDC token.
jobs:
- # Replaces lint.yml's `deny` job, which calls tempoxyz/ci's reusable deny.yml. That workflow starts
- # with tempoxyz's secure-runner, which needs a GitHub OIDC token that act never receives, so the
- # check itself runs natively here. Its policy comes from deny.toml in this repo.
+ # Replaces lint.yml's `deny` job. That job calls a reusable workflow from tempoxyz, whose deny job
+ # starts with tempoxyz's secure-runner. secure-runner needs a GitHub OIDC token that act never
+ # receives, so the check itself runs natively here. Its policy comes from deny.toml in this repo.
#
- # When re-applying this CI patch onto a new reth release, diff lint.yml's `deny:` job and the
- # tempoxyz/ci deny.yml it calls against this job (toolchain, cargo-deny version, `check`
- # arguments, deny flags), and update both pins here.
+ # When re-applying this CI patch onto a new reth release, follow lint.yml's `deny:` job through the
+ # reusable workflows it calls until you reach the step that runs cargo deny. Compare its cargo-deny
+ # version, `check` command and flags with this job (on v2.7.0 the step is a vendored
+ # EmbarkStudios/cargo-deny-action, whose Dockerfile pins the version). When the version moves,
+ # update DENY_VERSION and DENY_SHA256 here. The Rust image stays on the MSRV on purpose, while
+ # upstream installs a floating nightly.
cargo-deny:
docker:
- image: rust:1.95-bookworm@sha256:6258907abe69656e41cd992e0b705cdcfabcbbe3db374f92ed2d47121282d4a1
@@ -120,6 +124,27 @@ jobs:
' - run: echo "Service plumbing disabled under act"' \
' shell: bash' \
> /tmp/noop-action/action.yml
+ - run:
+ name: Stub unsupported secure-runner
+ # Stub tempoxyz's secure-runner: it fetches its policy with a GitHub OIDC token that act
+ # never receives, and it hardens GitHub-hosted runners, not these machines. act maps whole
+ # repositories, and this one also serves vendored actions the checks need, so replace only
+ # secure-runner in a copy at the sha the workflows pin, reusing the no-op action from the
+ # step above. When re-applying this CI patch, move TEMPOXYZ_GH_ACTIONS_SHA with that pin;
+ # the guard below names any mismatch.
+ command: |
+ readonly TEMPOXYZ_GH_ACTIONS_SHA="ee2960a6cc25d99bda45614135bfe1197d879bac"
+ if grep -rhoE 'tempoxyz/gh-actions/[^@ ]+@[0-9a-f]{40}' .github/workflows/ \
+ | grep -v "@${TEMPOXYZ_GH_ACTIONS_SHA}\$"; then
+ echo "workflows pin tempoxyz/gh-actions at a sha other than ${TEMPOXYZ_GH_ACTIONS_SHA}" >&2
+ exit 1
+ fi
+ git init --quiet /tmp/tempoxyz-gh-actions
+ git -C /tmp/tempoxyz-gh-actions fetch --quiet --depth 1 \
+ https://github.com/tempoxyz/gh-actions "${TEMPOXYZ_GH_ACTIONS_SHA}"
+ git -C /tmp/tempoxyz-gh-actions checkout --quiet --detach FETCH_HEAD
+ cp /tmp/noop-action/action.yml /tmp/tempoxyz-gh-actions/actions/secure-runner/action.yml
+ echo "export TEMPOXYZ_GH_ACTIONS_SHA=${TEMPOXYZ_GH_ACTIONS_SHA}" >> "$BASH_ENV"
- run:
name: Run << parameters.wf >> via act
no_output_timeout: 45m
@@ -173,7 +198,8 @@ jobs:
--local-repository "mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba=/tmp/noop-action" \
--local-repository "Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6=/tmp/noop-action" \
--local-repository "actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d=/tmp/noop-action" \
- --local-repository "actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9=/tmp/noop-action"
+ --local-repository "actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9=/tmp/noop-action" \
+ --local-repository "tempoxyz/gh-actions@${TEMPOXYZ_GH_ACTIONS_SHA}=/tmp/tempoxyz-gh-actions"
workflows:
reth-act:
diff --git a/.github/scripts/bench-job-summary-test.js b/.github/scripts/bench-job-summary-test.js
new file mode 100644
index 00000000000..f24c0468522
--- /dev/null
+++ b/.github/scripts/bench-job-summary-test.js
@@ -0,0 +1,39 @@
+const assert = require('node:assert/strict');
+const fs = require('node:fs');
+const os = require('node:os');
+const path = require('node:path');
+const test = require('node:test');
+const jobSummary = require('./bench-job-summary');
+
+for (const mode of ['engine', 'call']) {
+ test(`${mode} summary preserves attachments and trace downloads`, async (t) => {
+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'bench-summary-'));
+ t.after(() => fs.rmSync(directory, { recursive: true, force: true }));
+ const previous = { ...process.env };
+ t.after(() => { process.env = previous; });
+ process.env.BENCH_WORK_DIR = directory;
+ process.env.BENCH_TRACING_CHROME = 'true';
+ process.env.BENCH_RESULTS_URL = 'https://github.com/owner/repo/actions/runs/1/artifacts/2';
+ const stats = { mean_ms: 1, stddev_ms: 0, p50_ms: 1, p90_ms: 1, p99_ms: 1, mean_mgas_s: 1 };
+ fs.writeFileSync(path.join(directory, 'summary.json'), JSON.stringify({
+ mode, changes: {}, blocks: 20,
+ baseline: { name: 'main', ref: 'a'.repeat(40), stats },
+ feature: { name: 'feature', ref: 'b'.repeat(40), stats },
+ }));
+ const charts = '\n### Charts\n\n\n';
+ if (mode === 'engine') fs.writeFileSync(path.join(directory, 'charts.md'), charts);
+ let markdown;
+ await jobSummary({
+ core: { summary: { addRaw(value) { markdown = value; return { async write() {} }; } } },
+ context: { repo: { owner: 'owner', repo: 'repo' } },
+ logsUrl: 'https://example.com/logs',
+ tracesUrl: 'https://example.com/traces',
+ runId: '1',
+ });
+ assert.equal(markdown.includes(charts), mode === 'engine');
+ assert.ok(markdown.includes(`[Download bench-results](${process.env.BENCH_RESULTS_URL})`));
+ assert.ok(markdown.includes('[Logs](https://example.com/logs)'));
+ assert.ok(markdown.includes('[Traces](https://example.com/traces)'));
+ assert.ok(!markdown.includes('reth-bench-charts'));
+ });
+}
diff --git a/.github/scripts/bench-job-summary.js b/.github/scripts/bench-job-summary.js
index 129507b7afa..7102a9b2055 100644
--- a/.github/scripts/bench-job-summary.js
+++ b/.github/scripts/bench-job-summary.js
@@ -12,13 +12,12 @@
//
// Usage from actions/github-script:
// const jobSummary = require('./.github/scripts/bench-job-summary.js');
-// await jobSummary({ core, context, chartSha, grafanaUrl, logsUrl, tracesUrl, runId });
+// await jobSummary({ core, context, grafanaUrl, logsUrl, tracesUrl, runId });
const fs = require('fs');
const {
verdict,
loadSamplyUrls,
- loadTracingChromeUrls,
blocksLabel,
metricRows,
waitTimeRows,
@@ -39,7 +38,7 @@ function fmtTargetMetricValue(metric, v) {
return fmtMetricValue(v);
}
-module.exports = async function ({ core, context, chartSha, grafanaUrl, logsUrl, tracesUrl, runId }) {
+module.exports = async function ({ core, context, grafanaUrl, logsUrl, tracesUrl, runId }) {
let summary;
try {
summary = JSON.parse(fs.readFileSync(process.env.BENCH_WORK_DIR + '/summary.json', 'utf8'));
@@ -116,21 +115,8 @@ module.exports = async function ({ core, context, chartSha, grafanaUrl, logsUrl,
md += '\n';
}
- // Charts (call mode does not generate any)
- if (chartSha && summary.mode !== 'call') {
- const prNum = prNumber || '0';
- const baseUrl = `https://raw.githubusercontent.com/decofe/reth-bench-charts/${chartSha}/pr/${prNum}/${runId}`;
- const charts = [
- { file: 'latency_throughput.png', label: 'Latency, Throughput & Diff' },
- { file: 'wait_breakdown.png', label: 'Wait Time Breakdown' },
- { file: 'gas_vs_latency.png', label: 'Gas vs Latency' },
- ];
- md += `### Charts\n\n`;
- for (const chart of charts) {
- md += `${chart.label}
\n\n`;
- md += `\n\n`;
- md += ` \n\n`;
- }
+ if (summary.mode !== 'call') {
+ md += fs.readFileSync(process.env.BENCH_WORK_DIR + '/charts.md', 'utf8');
}
// Samply profiles
@@ -140,11 +126,8 @@ module.exports = async function ({ core, context, chartSha, grafanaUrl, logsUrl,
md += `### Samply Profiles\n\n${samplyLinks.join('\n')}\n\n`;
}
- const tracingChromeUrls = loadTracingChromeUrls(process.env.BENCH_WORK_DIR);
- const tracingChromeLinks = Object.entries(tracingChromeUrls)
- .map(([run, url]) => `- **${run}**: [Perfetto](${url})`);
- if (tracingChromeLinks.length > 0) {
- md += `### Chrome Traces\n\n${tracingChromeLinks.join('\n')}\n\n`;
+ if (process.env.BENCH_TRACING_CHROME === 'true') {
+ md += `### Chrome Traces\n\n[Download bench-results](${process.env.BENCH_RESULTS_URL}), extract the archive, and open each run's \`tracing-chrome-profile.json\` in [Perfetto](https://ui.perfetto.dev/). GitHub sign-in is required; downloads are available until the artifact expires.\n\n`;
}
// Observability
diff --git a/.github/scripts/bench-reth-summary.py b/.github/scripts/bench-reth-summary.py
index 7d1ad07a2f4..e766fbdda94 100755
--- a/.github/scripts/bench-reth-summary.py
+++ b/.github/scripts/bench-reth-summary.py
@@ -14,7 +14,8 @@
Generates a statistical comparison between baseline and feature. Point estimates
use pooled baseline and feature rows. Confidence intervals use whole-run cluster
bootstrapping when multiple runs are available. Fails if baseline or feature CSV
-is missing or empty.
+is missing or empty. Elapsed time and end-to-end throughput use per-run means
+from sibling txgen report.json files; missing measured durations remain unavailable.
"""
from __future__ import annotations
@@ -49,6 +50,7 @@
"p90": 1.35,
"p99": 5.0,
"mgas_s": 1.20,
+ "end_to_end_mgas_s": 1.20,
"wall_clock": 0.70,
"persist_wait": 5.0,
}
@@ -243,7 +245,7 @@ def compute_stats(combined: list[dict]) -> dict:
mean_mgas_s = sum(mgas_s_values) / len(mgas_s_values) if mgas_s_values else 0
total_latencies_ms = [r["total_latency_us"] / 1_000 for r in combined]
- wall_clock_s = sum(total_latencies_ms) / 1_000
+ processing_time_s = sum(total_latencies_ms) / 1_000
mean_total_lat_ms = sum(total_latencies_ms) / n
# Persistence wait mean (for main table)
@@ -262,7 +264,9 @@ def compute_stats(combined: list[dict]) -> dict:
"p90_ms": percentile(sorted_lat, 90),
"p99_ms": percentile(sorted_lat, 99),
"mean_mgas_s": mean_mgas_s,
- "wall_clock_s": wall_clock_s,
+ "processing_time_s": processing_time_s,
+ "wall_clock_s": None,
+ "end_to_end_mgas_s": None,
"mean_total_lat_ms": mean_total_lat_ms,
"mean_persist_ms": mean_persist_ms,
}
@@ -286,6 +290,84 @@ def compute_point_stats(runs: list[list[dict]]) -> dict:
return stats
+def load_elapsed_run(csv_path: str, rows: list[dict]) -> dict | None:
+ """Read measured run totals, never reconstruct elapsed time from server timings."""
+ report_path = Path(csv_path).with_name("report.json")
+ if not report_path.exists():
+ return None
+ with report_path.open() as f:
+ report = json.load(f)
+ totals = report.get("run_stats", {})
+ duration_ms = totals.get("duration_ms")
+ if duration_ms is None:
+ return None
+ if (
+ isinstance(duration_ms, bool)
+ or not isinstance(duration_ms, (int, float))
+ or not math.isfinite(duration_ms)
+ or duration_ms <= 0
+ ):
+ raise ValueError(f"Invalid measured duration in {report_path}")
+ gas = sum(row["gas_used"] for row in rows)
+ expected = {
+ "total_blocks": len(rows),
+ "total_gas": gas,
+ "start_block": min(row["block_number"] for row in rows),
+ "end_block": max(row["block_number"] for row in rows),
+ }
+ if any(totals.get(key) != value for key, value in expected.items()):
+ raise ValueError(f"Run totals in {report_path} do not match {csv_path}")
+ duration_s = duration_ms / 1_000
+ return {
+ "wall_clock_s": duration_s,
+ "end_to_end_mgas_s": gas / duration_s / 1_000_000,
+ }
+
+
+def add_elapsed_stats(
+ baseline_paths: list[str],
+ feature_paths: list[str],
+ baseline_runs: list[list[dict]],
+ feature_runs: list[list[dict]],
+ baseline_stats: dict,
+ feature_stats: dict,
+ ci_stats: dict,
+) -> None:
+ """Average measured run metrics and bootstrap whole runs in matching units.
+
+ A single run has no run-to-run noise estimate. Its elapsed metrics remain
+ informational; block-level resampling cannot estimate that uncertainty.
+ """
+ baseline = [
+ load_elapsed_run(path, rows)
+ for path, rows in zip(baseline_paths, baseline_runs, strict=True)
+ ]
+ feature = [
+ load_elapsed_run(path, rows)
+ for path, rows in zip(feature_paths, feature_runs, strict=True)
+ ]
+ if any(run is None for run in baseline + feature):
+ print("Measured run duration unavailable; elapsed metrics are n/a", file=sys.stderr)
+ return
+ ci_stats["elapsed_informational"] = len(baseline) < 2 or len(feature) < 2
+ rng = random.Random(42)
+ for key, ci_key in (
+ ("wall_clock_s", "wall_clock_ci_s"),
+ ("end_to_end_mgas_s", "end_to_end_mgas_ci"),
+ ):
+ b = [run[key] for run in baseline]
+ f = [run[key] for run in feature]
+ baseline_stats[key] = _mean(b)
+ feature_stats[key] = _mean(f)
+ ci_stats[ci_key] = 0.0
+ if not ci_stats["elapsed_informational"]:
+ samples = [
+ _mean(rng.choices(f, k=len(f))) - _mean(rng.choices(b, k=len(b)))
+ for _ in range(BOOTSTRAP_ITERATIONS)
+ ]
+ ci_stats[ci_key] = _ci_half_width(samples)
+
+
def compute_wait_stats(combined: list[dict], field: str) -> dict:
"""Compute mean/p50/p95 for a wait time field (in ms)."""
values_ms = []
@@ -407,7 +489,6 @@ def _per_run_metric_values(runs: list[list[dict]]) -> dict[str, list[float]]:
"p90_ms": [],
"p99_ms": [],
"mgas": [],
- "wall_clock_ms": [],
"persist_ms": [],
}
for run in runs:
@@ -417,7 +498,6 @@ def _per_run_metric_values(runs: list[list[dict]]) -> dict[str, list[float]]:
values["p90_ms"].append(stats["p90_ms"])
values["p99_ms"].append(stats["p99_ms"])
values["mgas"].append(stats["mean_mgas_s"])
- values["wall_clock_ms"].append(stats["mean_total_lat_ms"])
values["persist_ms"].append(stats["mean_persist_ms"])
return values
@@ -434,7 +514,7 @@ def _cluster_bootstrap_ci(
replacement. This estimates run-to-run noise without expanding reused
baseline/feature runs into independent block-level datapoints.
"""
- metrics = ("mean_ms", "p50_ms", "p90_ms", "p99_ms", "mgas", "wall_clock_ms", "persist_ms")
+ metrics = ("mean_ms", "p50_ms", "p90_ms", "p99_ms", "mgas", "persist_ms")
empty = {metric: 0.0 for metric in metrics}
if len(baseline_runs) < 2 or len(feature_runs) < 2:
return empty
@@ -479,10 +559,9 @@ def compute_ci_stats(
p90_ci = cluster_ci["p90_ms"]
p99_ci = cluster_ci["p99_ms"]
mgas_ci = cluster_ci["mgas"]
- wall_clock_ci_ms = cluster_ci["wall_clock_ms"]
persist_ci_ms = cluster_ci["persist_ms"]
else:
- pairs, all_lat_diffs, all_mgas_diffs, all_total_lat_diffs, all_persist_diffs = (
+ pairs, all_lat_diffs, all_mgas_diffs, _all_total_lat_diffs, all_persist_diffs = (
_paired_data(baseline_runs[0], feature_runs[0])
)
if not all_lat_diffs:
@@ -492,7 +571,6 @@ def compute_ci_stats(
p90_ci = _bootstrap_percentile_ci(rng, pairs, 90)
p99_ci = _bootstrap_percentile_ci(rng, pairs, 99)
mgas_ci = _bootstrap_ci(rng, all_mgas_diffs) if all_mgas_diffs else 0.0
- wall_clock_ci_ms = _bootstrap_ci(rng, all_total_lat_diffs) if all_total_lat_diffs else 0.0
persist_ci_ms = _bootstrap_ci(rng, all_persist_diffs) if all_persist_diffs else 0.0
return {
@@ -501,7 +579,6 @@ def compute_ci_stats(
"p90_ci_ms": p90_ci,
"p99_ci_ms": p99_ci,
"mgas_ci": mgas_ci,
- "wall_clock_ci_ms": wall_clock_ci_ms,
"persist_ci_ms": persist_ci_ms,
"blocks": blocks,
}
@@ -578,6 +655,8 @@ def informational_reason(
baseline_stats: dict,
feature_stats: dict,
) -> str | None:
+ if metric in ("wall_clock", "end_to_end_mgas_s") and ci_stats.get("elapsed_informational"):
+ return "informational <2 measured runs per side"
if metric == "p99" and ci_stats["blocks"] < P99_MIN_VERDICT_BLOCKS:
return f"informational <{P99_MIN_VERDICT_BLOCKS} blocks"
if (
@@ -627,9 +706,13 @@ def ci_pct(ci_ms: float, base_ms: float) -> float:
("p90", "p90_ms", "p90_ci_ms", "p90_ms", True),
("p99", "p99_ms", "p99_ci_ms", "p99_ms", True),
("mgas_s", "mean_mgas_s", "mgas_ci", "mean_mgas_s", False),
- ("wall_clock", "wall_clock_s", "wall_clock_ci_ms", "mean_total_lat_ms", True),
("persist_wait", "mean_persist_ms", "persist_ci_ms", "mean_persist_ms", True),
]
+ if baseline_stats.get("wall_clock_s") is not None and feature_stats.get("wall_clock_s") is not None:
+ metrics.extend([
+ ("wall_clock", "wall_clock_s", "wall_clock_ci_s", "wall_clock_s", True),
+ ("end_to_end_mgas_s", "end_to_end_mgas_s", "end_to_end_mgas_ci", "end_to_end_mgas_s", False),
+ ])
changes = {}
for name, stat_key, ci_key, base_key, lower_is_better in metrics:
p = pct(baseline_stats[stat_key], feature_stats[stat_key])
@@ -1671,7 +1754,6 @@ def pct(base: float, feat: float) -> float:
return (feat - base) / base * 100.0 if base > 0 else 0.0
gas_pct = pct(run1["mean_mgas_s"], run2["mean_mgas_s"])
- wall_pct = pct(run1["wall_clock_s"], run2["wall_clock_s"])
mean_pct = pct(run1["mean_ms"], run2["mean_ms"])
p50_pct = pct(run1["p50_ms"], run2["p50_ms"])
@@ -1688,7 +1770,6 @@ def pct(base: float, feat: float) -> float:
# CI as a percentage of baseline
mgas_ci_pct = ci_stats["mgas_ci"] / run1["mean_mgas_s"] * 100.0 if run1["mean_mgas_s"] > 0 else 0.0
- wall_ci_pct = ci_stats["wall_clock_ci_ms"] / run1["mean_total_lat_ms"] * 100.0 if run1["mean_total_lat_ms"] > 0 else 0.0
persist_ci_pct = ci_stats["persist_ci_ms"] / run1["mean_persist_ms"] * 100.0 if run1["mean_persist_ms"] > 0 else 0.0
mean_floor = practical_floor_pct("mean", run1["mean_ms"])
@@ -1696,7 +1777,6 @@ def pct(base: float, feat: float) -> float:
p90_floor = practical_floor_pct("p90", run1["p90_ms"])
p99_floor = practical_floor_pct("p99", run1["p99_ms"])
mgas_floor = practical_floor_pct("mgas_s", run1["mean_mgas_s"])
- wall_floor = practical_floor_pct("wall_clock", run1["mean_total_lat_ms"])
persist_floor = practical_floor_pct("persist_wait", run1["mean_persist_ms"])
p99_informational = informational_reason("p99", ci_stats, run1, run2)
persist_informational = informational_reason("persist_wait", ci_stats, run1, run2)
@@ -1708,15 +1788,35 @@ def pct(base: float, feat: float) -> float:
lines = [
f"| Metric | {baseline_label} | {feature_label} | Change |",
"|--------|------|--------|--------|",
- f"| Mean | {fmt_ms(run1['mean_ms'])} | {fmt_ms(run2['mean_ms'])} | {change_str(mean_pct, mean_ci_pct, mean_floor, lower_is_better=True)} |",
- f"| P50 | {fmt_ms(run1['p50_ms'])} | {fmt_ms(run2['p50_ms'])} | {change_str(p50_pct, p50_ci_pct, p50_floor, lower_is_better=True)} |",
- f"| P90 | {fmt_ms(run1['p90_ms'])} | {fmt_ms(run2['p90_ms'])} | {change_str(p90_pct, p90_ci_pct, p90_floor, lower_is_better=True)} |",
- f"| P99 | {fmt_ms(run1['p99_ms'])} | {fmt_ms(run2['p99_ms'])} | {change_str(p99_pct, p99_ci_pct, p99_floor, lower_is_better=True, informational=p99_informational)} |",
- f"| Mgas/s | {fmt_mgas(run1['mean_mgas_s'])} | {fmt_mgas(run2['mean_mgas_s'])} | {change_str(gas_pct, mgas_ci_pct, mgas_floor, lower_is_better=False)} |",
- f"| Wall Clock | {fmt_s(run1['wall_clock_s'])} | {fmt_s(run2['wall_clock_s'])} | {change_str(wall_pct, wall_ci_pct, wall_floor, lower_is_better=True)} |",
+ f"| Execution Mean | {fmt_ms(run1['mean_ms'])} | {fmt_ms(run2['mean_ms'])} | {change_str(mean_pct, mean_ci_pct, mean_floor, lower_is_better=True)} |",
+ f"| Execution P50 | {fmt_ms(run1['p50_ms'])} | {fmt_ms(run2['p50_ms'])} | {change_str(p50_pct, p50_ci_pct, p50_floor, lower_is_better=True)} |",
+ f"| Execution P90 | {fmt_ms(run1['p90_ms'])} | {fmt_ms(run2['p90_ms'])} | {change_str(p90_pct, p90_ci_pct, p90_floor, lower_is_better=True)} |",
+ f"| Execution P99 | {fmt_ms(run1['p99_ms'])} | {fmt_ms(run2['p99_ms'])} | {change_str(p99_pct, p99_ci_pct, p99_floor, lower_is_better=True, informational=p99_informational)} |",
+ f"| Execution Mgas/s | {fmt_mgas(run1['mean_mgas_s'])} | {fmt_mgas(run2['mean_mgas_s'])} | {change_str(gas_pct, mgas_ci_pct, mgas_floor, lower_is_better=False)} |",
f"| Persist Wait | {fmt_ms(run1['mean_persist_ms'])} | {fmt_ms(run2['mean_persist_ms'])} | {change_str(persist_pct, persist_ci_pct, persist_floor, lower_is_better=True, informational=persist_informational)} |",
- "",
]
+ changes = compute_changes(run1, run2, ci_stats)
+ for label, key, metric, formatter, lower_is_better in (
+ ("Wall Clock", "wall_clock_s", "wall_clock", fmt_s, True),
+ ("End-to-end Mgas/s", "end_to_end_mgas_s", "end_to_end_mgas_s", fmt_mgas, False),
+ ):
+ if metric not in changes:
+ lines.append(f"| {label} | n/a | n/a | |")
+ continue
+ change = changes[metric]
+ description = change_str(
+ change["pct"], change["ci_pct"], change["floor_pct"], lower_is_better,
+ change.get("informational_reason"),
+ )
+ lines.append(f"| {label} | {formatter(run1[key])} | {formatter(run2[key])} | {description} |")
+ lines.extend([
+ "",
+ "Execution metrics use server processing time (local block time in RPC mode). "
+ "Wall Clock and end-to-end throughput use measured run duration, including persistence "
+ "waits and any configured pacing; values are averaged per run. "
+ "Missing measured durations are shown as n/a.",
+ "",
+ ])
meta_parts = [f"{n} {'big blocks' if big_blocks else 'blocks'}", f"mode: {mode}"]
if warmup_blocks:
meta_parts.append(f"{warmup_blocks} warmup")
@@ -2021,6 +2121,11 @@ def main():
print("No comparable baseline and feature results", file=sys.stderr)
sys.exit(1)
+ add_elapsed_stats(
+ args.baseline_csv, args.feature_csv, baseline_runs, feature_runs,
+ baseline_stats, feature_stats, ci_stats,
+ )
+
baseline_ref = args.baseline_ref or "main"
baseline_name = args.baseline_name or "baseline"
feature_name = args.feature_name or "feature"
diff --git a/.github/scripts/bench-scheduled-refs.sh b/.github/scripts/bench-scheduled-refs.sh
index 6040ed30c8a..44122a0be47 100755
--- a/.github/scripts/bench-scheduled-refs.sh
+++ b/.github/scripts/bench-scheduled-refs.sh
@@ -26,12 +26,8 @@
# nightly-created — ISO timestamp of the nightly build (nightly only)
# release-tag — release tag name (release mode only, e.g. "v2.0.0")
#
-# Reads:
-# state/nightly-last-feature-ref (nightly, from decofe/reth-bench-charts repo)
-# state/hourly-last-feature-ref (hourly, from decofe/reth-bench-charts repo)
-# state/release-last-feature-ref (release, from decofe/reth-bench-charts repo)
-#
-# Requires: gh (GitHub CLI), jq, date, git (hourly mode), curl, DEREK_TOKEN env
+# Reads bench-state- Actions artifacts from successful runs on this branch.
+# Requires: gh, jq, unzip, date, git (hourly mode), GH_TOKEN with actions:read.
set -euxo pipefail
FORCE="${1:-false}"
@@ -74,16 +70,10 @@ if [ "$MODE" = "hourly" ]; then
fi
echo "::endgroup::"
- # --- Step 3: Read last successful feature ref from charts repo ---
+ # --- Step 3: Read last successful feature ref from Actions artifacts ---
echo "::group::Reading persisted state"
- LAST_FEATURE_REF=""
- STATE_URL="https://raw.githubusercontent.com/decofe/reth-bench-charts/state/state/hourly-last-feature-ref"
- if RAW=$(curl -sfL -H "Authorization: token ${DEREK_TOKEN}" "$STATE_URL"); then
- LAST_FEATURE_REF=$(echo "$RAW" | tr -d '[:space:]')
- echo "Previous feature ref: $LAST_FEATURE_REF"
- else
- echo "No persisted state found (first run)"
- fi
+ LAST_FEATURE_REF=$(bash "$(dirname "$0")/bench-state.sh" "$REPO" hourly)
+ echo "Previous feature ref: ${LAST_FEATURE_REF:-none}"
echo "::endgroup::"
# --- Step 4: Determine baseline and skip logic ---
@@ -181,16 +171,10 @@ if [ "$MODE" = "release" ]; then
echo "Release commit (baseline): $BASELINE_REF"
echo "::endgroup::"
- # --- Step 3: Read last successful feature ref from charts repo ---
+ # --- Step 3: Read last successful feature ref from Actions artifacts ---
echo "::group::Reading persisted state"
- LAST_FEATURE_REF=""
- STATE_URL="https://raw.githubusercontent.com/decofe/reth-bench-charts/state/state/release-last-feature-ref"
- if RAW=$(curl -sfL -H "Authorization: token ${DEREK_TOKEN}" "$STATE_URL"); then
- LAST_FEATURE_REF=$(echo "$RAW" | tr -d '[:space:]')
- echo "Previous feature ref: $LAST_FEATURE_REF"
- else
- echo "No persisted state found (first run)"
- fi
+ LAST_FEATURE_REF=$(bash "$(dirname "$0")/bench-state.sh" "$REPO" release)
+ echo "Previous feature ref: ${LAST_FEATURE_REF:-none}"
echo "::endgroup::"
# --- Step 4: Skip logic ---
@@ -278,16 +262,10 @@ else
fi
echo "::endgroup::"
-# --- Step 3: Read last successful feature ref from charts repo ---
+# --- Step 3: Read last successful feature ref from Actions artifacts ---
echo "::group::Reading persisted state"
-LAST_FEATURE_REF=""
-STATE_URL="https://raw.githubusercontent.com/decofe/reth-bench-charts/state/state/nightly-last-feature-ref"
-if RAW=$(curl -sfL -H "Authorization: token ${DEREK_TOKEN}" "$STATE_URL"); then
- LAST_FEATURE_REF=$(echo "$RAW" | tr -d '[:space:]')
- echo "Previous feature ref: $LAST_FEATURE_REF"
-else
- echo "No persisted state found (first run)"
-fi
+LAST_FEATURE_REF=$(bash "$(dirname "$0")/bench-state.sh" "$REPO" nightly)
+ echo "Previous feature ref: ${LAST_FEATURE_REF:-none}"
echo "::endgroup::"
# --- Step 4: Determine baseline and skip logic ---
diff --git a/.github/scripts/bench-slack-notify.js b/.github/scripts/bench-slack-notify.js
index e71a9b8aa68..ffd631f9d7f 100644
--- a/.github/scripts/bench-slack-notify.js
+++ b/.github/scripts/bench-slack-notify.js
@@ -25,7 +25,6 @@ const {
verdict,
isWin,
loadSamplyUrls,
- loadTracingChromeUrls,
blocksLabel,
metricRows,
} = require('./bench-utils');
@@ -82,16 +81,6 @@ function profileLinks(samplyUrls, prefix) {
});
}
-function chromeTraceLinks(tracingChromeUrls, prefix) {
- return Object.entries(tracingChromeUrls)
- .filter(([run]) => run.startsWith(`${prefix}-`))
- .sort(([a], [b]) => a.localeCompare(b, undefined, { numeric: true }))
- .map(([run, url]) => {
- const index = run.slice(prefix.length + 1);
- return `<${url}|Chrome ${index}>`;
- });
-}
-
// Slack shortcodes for verdict (Block Kit header doesn't support unicode emoji)
const SLACK_VERDICT = {
'⚠️': ':warning:',
@@ -135,7 +124,6 @@ function buildSuccessBlocks({
jobUrl,
repo,
samplyUrls,
- tracingChromeUrls,
}) {
const { emoji, label } = verdict(summary.changes);
const headerEmoji = SLACK_VERDICT[emoji] || emoji;
@@ -151,18 +139,18 @@ function buildSuccessBlocks({
if (prNumber) metaParts.push(`*<${prUrl}|PR #${prNumber}>*`);
metaParts.push(`triggered by ${actorSlackId ? `<@${actorSlackId}>` : `@${actor}`}`);
+ if (process.env.BENCH_TRACING_CHROME === 'true' && process.env.BENCH_RESULTS_URL) {
+ metaParts.push(`<${process.env.BENCH_RESULTS_URL}|Download Chrome traces> (extract and open in Perfetto)`);
+ }
+
// Baseline/feature lines with samply profile links
let baselineLine = `*Baseline:* ${baselineLink}`;
const baselineProfiles = profileLinks(samplyUrls, 'baseline');
if (baselineProfiles.length) baselineLine += ` | ${baselineProfiles.join(' | ')}`;
- const baselineTraces = chromeTraceLinks(tracingChromeUrls, 'baseline');
- if (baselineTraces.length) baselineLine += ` | ${baselineTraces.join(' | ')}`;
let featureLine = `*Feature:* ${featureLink}`;
const featureProfiles = profileLinks(samplyUrls, 'feature');
if (featureProfiles.length) featureLine += ` | ${featureProfiles.join(' | ')}`;
- const featureTraces = chromeTraceLinks(tracingChromeUrls, 'feature');
- if (featureTraces.length) featureLine += ` | ${featureTraces.join(' | ')}`;
const countsLine = blocksLabel(summary).map(p => `*${p.key}:* ${p.value}`).join(' | ');
const configLine = benchConfigLine();
@@ -288,7 +276,6 @@ async function success({ core, context }) {
`${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
const samplyUrls = loadSamplyUrls(process.env.BENCH_WORK_DIR);
- const tracingChromeUrls = loadTracingChromeUrls(process.env.BENCH_WORK_DIR);
const slackUsers = loadSlackUsers(process.env.GITHUB_WORKSPACE || '.');
const actorSlackId = slackUsers[actor];
@@ -301,7 +288,6 @@ async function success({ core, context }) {
jobUrl,
repo,
samplyUrls,
- tracingChromeUrls,
});
const text = `Bench: ${summary.baseline.name} vs ${summary.feature.name}`;
diff --git a/.github/scripts/bench-state-test.sh b/.github/scripts/bench-state-test.sh
new file mode 100644
index 00000000000..f72e998c8cc
--- /dev/null
+++ b/.github/scripts/bench-state-test.sh
@@ -0,0 +1,151 @@
+#!/usr/bin/env bash
+set -euo pipefail
+scripts="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+scratch=$(mktemp -d)
+trap 'rm -rf "$scratch"' EXIT
+export STATE_TEST_DIR="$scratch"
+export GITHUB_OUTPUT="$scratch/output"
+export GITHUB_REPOSITORY=owner/repo
+export GITHUB_REF_NAME=main
+export STATE_TEST_VALUE=""
+export STATE_TEST_FAILURE=""
+export GH_TOKEN=workflow-test-token
+feature=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+previous=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+export STATE_TEST_DATE
+STATE_TEST_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
+
+gh() {
+ case "$1" in
+ api)
+ if [[ "$2" == *'/git/'* ]]; then
+ if [[ "$*" == *'.object.type'* ]]; then printf 'commit\n'; else printf '%s\n' bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; fi
+ return
+ fi
+ [[ "$GH_TOKEN" == workflow-test-token ]] || return 1
+ if [[ "$*" == *'--paginate --slurp'* ]]; then
+ [[ "$STATE_TEST_FAILURE" != list ]] || return 1
+ if [[ -n "${STATE_TEST_ARTIFACTS:-}" ]]; then
+ printf '%s\n' "$STATE_TEST_ARTIFACTS"
+ elif [[ -z "$STATE_TEST_VALUE" ]]; then
+ printf '[{"artifacts":[]}]\n'
+ else
+ local name="${!#}"
+ name="${name#*name=}"
+ name="${name%%&*}"
+ jq -nc --arg name "$name" '[{artifacts:[{id:10,name:$name,expired:false,
+ workflow_run:{id:100,head_branch:"main",repository_id:1,head_repository_id:1}}]}]'
+ fi
+ elif [[ "$2" == */runs/* ]]; then
+ [[ "$STATE_TEST_FAILURE" != run ]] || return 1
+ jq -nc --arg conclusion "${STATE_TEST_CONCLUSION:-success}" \
+ --arg path "${STATE_TEST_PATH:-.github/workflows/bench-scheduled.yml}" \
+ --arg event "${STATE_TEST_EVENT:-schedule}" --arg status "${STATE_TEST_STATUS:-completed}" \
+ '{path:$path,head_branch:"main",status:$status,conclusion:$conclusion,event:$event}'
+ elif [[ "$2" == */zip ]]; then
+ [[ "$STATE_TEST_FAILURE" != download ]] || return 1
+ printf '%s\n' "$2" >> "$STATE_TEST_DIR/downloads"
+ if [[ "$STATE_TEST_FAILURE" == archive ]]; then printf 'invalid zip'; return; fi
+ printf '%s\n' "$STATE_TEST_VALUE" > "$STATE_TEST_DIR/feature-ref"
+ (cd "$STATE_TEST_DIR" && zip -q - feature-ref)
+ else
+ return 1
+ fi
+ ;;
+ release) printf '{"tagName":"v1.0.0"}\n' ;;
+ run)
+ if [[ "$*" == *'--status=in_progress'* ]]; then
+ printf '0\n'
+ else
+ printf '[{"headSha":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","createdAt":"%s","conclusion":"success"}]\n' "$STATE_TEST_DATE"
+ fi
+ ;;
+ *) return 1 ;;
+ esac
+}
+git() {
+ case "$*" in
+ fetch*) ;;
+ 'rev-parse origin/main') printf '%s\n' aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ;;
+ 'rev-parse origin/main~1') printf '%s\n' bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ;;
+ 'log -1 --format=%cI '* ) printf '%s\n' "$STATE_TEST_DATE" ;;
+ *) return 1 ;;
+ esac
+}
+export -f gh git
+
+[[ -z "$(bash "$scripts/bench-state.sh" owner/repo hourly)" ]]
+export STATE_TEST_VALUE="$previous"
+[[ "$(bash "$scripts/bench-state.sh" owner/repo hourly)" == "$previous" ]]
+export STATE_TEST_VALUE=invalid
+if bash "$scripts/bench-state.sh" owner/repo hourly 2>/dev/null; then exit 1; fi
+if bash "$scripts/bench-state.sh" owner/repo invalid 2>/dev/null; then exit 1; fi
+export STATE_TEST_VALUE="$previous"
+for failure in list run download archive; do
+ export STATE_TEST_FAILURE="$failure"
+ if bash "$scripts/bench-state.sh" owner/repo hourly 2>/dev/null; then exit 1; fi
+done
+export STATE_TEST_FAILURE=""
+echo 'PASS: missing state, real ZIP restore, SHA validation, and API/archive failures'
+
+# Newer unusable artifacts must not hide the newest usable artifact, even when
+# it is on another page. The workflow SHA is deliberately not the feature SHA.
+export STATE_TEST_ARTIFACTS
+STATE_TEST_ARTIFACTS=$(jq -nc '
+ def artifact($id): {id:$id,name:"bench-state-hourly",expired:false,
+ workflow_run:{id:100,head_branch:"main",head_sha:"cccccccccccccccccccccccccccccccccccccccc",
+ repository_id:1,head_repository_id:1}};
+ [{artifacts:[
+ (artifact(90) | .expired=true),
+ (artifact(80) | .workflow_run.head_branch="test"),
+ (artifact(70) | .workflow_run.head_repository_id=2),
+ (artifact(60) | .name="bench-state-nightly")]},
+ {artifacts:[artifact(10),artifact(20)]}]')
+: > "$scratch/downloads"
+[[ "$(bash "$scripts/bench-state.sh" owner/repo hourly)" == "$previous" ]]
+[[ "$(cat "$scratch/downloads")" == repos/owner/repo/actions/artifacts/20/zip ]]
+export GITHUB_REF_NAME=other-branch
+[[ -z "$(bash "$scripts/bench-state.sh" owner/repo hourly)" ]]
+export GITHUB_REF_NAME=main
+export STATE_TEST_ARTIFACTS='[{"artifacts":[]}]'
+[[ -z "$(bash "$scripts/bench-state.sh" owner/repo hourly)" ]]
+unset STATE_TEST_ARTIFACTS
+for conclusion in failure cancelled skipped; do
+ export STATE_TEST_CONCLUSION="$conclusion"
+ [[ -z "$(bash "$scripts/bench-state.sh" owner/repo hourly)" ]]
+done
+unset STATE_TEST_CONCLUSION
+export STATE_TEST_STATUS=in_progress
+[[ -z "$(bash "$scripts/bench-state.sh" owner/repo hourly)" ]]
+unset STATE_TEST_STATUS
+export STATE_TEST_PATH=.github/workflows/other.yml
+[[ -z "$(bash "$scripts/bench-state.sh" owner/repo hourly)" ]]
+unset STATE_TEST_PATH
+export STATE_TEST_EVENT=pull_request
+[[ -z "$(bash "$scripts/bench-state.sh" owner/repo hourly)" ]]
+unset STATE_TEST_EVENT
+echo 'PASS: pagination, newest state, expiry, branch/mode/fork/workflow/event isolation, and run outcomes'
+
+for mode in hourly nightly release; do
+ for value in "" "$feature" "$previous"; do
+ export STATE_TEST_VALUE="$value"
+ : > "$GITHUB_OUTPUT"
+ bash "$scripts/bench-scheduled-refs.sh" false "$mode" > "$scratch/log" 2>&1
+ if [[ "$value" == "$feature" ]]; then
+ grep -q '^should-skip=true$' "$GITHUB_OUTPUT"
+ else
+ grep -q '^should-skip=false$' "$GITHUB_OUTPUT"
+ fi
+ if [[ "$value" == "$previous" ]]; then
+ grep -q "^baseline-ref=$previous$" "$GITHUB_OUTPUT"
+ fi
+ done
+ export STATE_TEST_VALUE="$feature"
+ : > "$GITHUB_OUTPUT"
+ bash "$scripts/bench-scheduled-refs.sh" true "$mode" > "$scratch/log" 2>&1
+ grep -q '^should-skip=false$' "$GITHUB_OUTPUT"
+ export STATE_TEST_FAILURE=list
+ if bash "$scripts/bench-scheduled-refs.sh" false "$mode" > "$scratch/log" 2>&1; then exit 1; fi
+ export STATE_TEST_FAILURE=""
+ echo "PASS: $mode first run, unchanged/changed commit, force, and API failure"
+done
diff --git a/.github/scripts/bench-state.sh b/.github/scripts/bench-state.sh
new file mode 100644
index 00000000000..a8f39977095
--- /dev/null
+++ b/.github/scripts/bench-state.sh
@@ -0,0 +1,45 @@
+#!/usr/bin/env bash
+# Restore the last successful benchmark commit from an Actions artifact.
+# Usage: bench-state.sh owner/repo hourly|nightly|release
+# Requires GH_TOKEN with actions:read. State is scoped to GITHUB_REF_NAME (main
+# outside Actions). Missing/expired state bootstraps; API/corruption errors fail.
+set -euo pipefail
+
+repo=${1:?expected owner/repo}
+mode=${2:?expected benchmark mode}
+case "$mode" in hourly|nightly|release) ;; *) echo "Invalid benchmark mode: $mode" >&2; exit 1 ;; esac
+name="bench-state-$mode"
+branch=${GITHUB_REF_NAME:-main}
+
+# Filter before downloading: dispatches on test branches must not change main's
+# baseline. Pagination matters when hourly state accumulates over its retention.
+artifacts=$(gh api --paginate --slurp "repos/$repo/actions/artifacts?name=$name&per_page=100")
+candidates=$(jq -r --arg name "$name" --arg branch "$branch" '
+ [.[].artifacts[] | select(.name == $name and .expired == false
+ and .workflow_run.head_branch == $branch
+ and .workflow_run.head_repository_id == .workflow_run.repository_id)]
+ | sort_by(.id) | reverse | .[] | [.id, .workflow_run.id] | @tsv
+' <<< "$artifacts")
+
+while IFS=$'\t' read -r artifact_id run_id; do
+ [[ -n "$artifact_id" ]] || continue
+ run=$(gh api "repos/$repo/actions/runs/$run_id")
+ if ! jq -e --arg branch "$branch" '
+ .path == ".github/workflows/bench-scheduled.yml" and .head_branch == $branch
+ and .status == "completed" and .conclusion == "success"
+ and (.event == "schedule" or .event == "workflow_dispatch")
+ ' <<< "$run" >/dev/null; then
+ continue
+ fi
+ scratch=$(mktemp -d)
+ trap 'rm -rf "$scratch"' EXIT
+ gh api "repos/$repo/actions/artifacts/$artifact_id/zip" > "$scratch/state.zip"
+ value=$(unzip -p "$scratch/state.zip" feature-ref)
+ if [[ ! "$value" =~ ^[0-9a-f]{40}$ ]]; then
+ echo "Invalid commit SHA in $name artifact $artifact_id" >&2
+ exit 1
+ fi
+ echo "Restored $name from run $run_id" >&2
+ printf '%s\n' "$value"
+ exit 0
+done <<< "$candidates"
diff --git a/.github/scripts/bench-txgen-build.sh b/.github/scripts/bench-txgen-build.sh
index 4c040558064..8803641548c 100755
--- a/.github/scripts/bench-txgen-build.sh
+++ b/.github/scripts/bench-txgen-build.sh
@@ -8,6 +8,9 @@
# payload format.
set -euxo pipefail
+# Use the runner's Git authentication configuration when fetching dependencies.
+export CARGO_NET_GIT_FETCH_WITH_CLI=true
+
MODE="$1"
SOURCE_DIR="$2"
COMMIT="$3"
@@ -22,10 +25,8 @@ else
fi
EXTRA_FEATURES=""
-EXTRA_RUSTFLAGS=""
if [ "${BENCH_TRACY:-off}" != "off" ]; then
EXTRA_FEATURES="tracy,tracy-client/ondemand"
- EXTRA_RUSTFLAGS=" -C force-frame-pointers=yes"
fi
build_node_binary() {
@@ -39,7 +40,7 @@ build_node_binary() {
fi
# shellcheck disable=SC2086
- RUSTFLAGS="-C target-cpu=native${EXTRA_RUSTFLAGS}" \
+ RUSTFLAGS="-C target-cpu=native -C force-frame-pointers=yes" \
cargo build --locked --profile profiling $NODE_PKG $workspace_arg $features_arg
}
diff --git a/.github/scripts/bench-upload-charts-test.sh b/.github/scripts/bench-upload-charts-test.sh
new file mode 100644
index 00000000000..9485a8304cd
--- /dev/null
+++ b/.github/scripts/bench-upload-charts-test.sh
@@ -0,0 +1,57 @@
+#!/usr/bin/env bash
+set -euo pipefail
+script="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/bench-upload-charts.sh"
+scratch=$(mktemp -d)
+trap 'rm -rf "$scratch"' EXIT
+mkdir -p "$scratch/charts with spaces" "$scratch/empty"
+# A 1x1 PNG; no credentials or network are needed by these tests.
+printf '%s' 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+jRZkAAAAASUVORK5CYII=' |
+ base64 -d > "$scratch/charts with spaces/latency_throughput.png"
+export UPLOAD_TEST_LOG="$scratch/calls"
+export UPLOAD_TEST_MODE=dry
+gh() {
+ printf '%s\n' "$*" >> "$UPLOAD_TEST_LOG"
+ [[ "$UPLOAD_TEST_MODE" != dry ]] || return 1
+ if [[ "$2" == repos/owner/repo ]]; then
+ printf '123\n'
+ return
+ fi
+ [[ "$2" == https://uploads.github.com/user-attachments/assets ]] || return 1
+ [[ "$*" == *'content_type=image/png'* && "$*" == *'repository_id=123'* ]] || return 1
+ [[ "$*" == *'Content-Type: application/octet-stream'* ]] || return 1
+ if [[ "$UPLOAD_TEST_MODE" == failure ]]; then
+ echo 'HTTP 401' >&2
+ return 1
+ fi
+ printf '{"url":"https://github.com/user-attachments/assets/test-image"}\n'
+}
+export -f gh
+bash "$script" --dry-run owner/repo "$scratch/charts with spaces" > "$scratch/dry-run"
+[[ ! -e "$UPLOAD_TEST_LOG" ]]
+[[ $(wc -l < "$scratch/dry-run") == 2 ]]
+grep -q 'repository_id=REPOSITORY_ID' "$scratch/dry-run"
+grep -q 'uploads.github.com/user-attachments/assets' "$scratch/dry-run"
+echo 'PASS: dry run validates files and prints requests without calling gh'
+
+export UPLOAD_TEST_MODE=success
+bash "$script" owner/repo "$scratch/charts with spaces" > "$scratch/charts.md"
+grep -Fq '' "$scratch/charts.md"
+[[ $(wc -l < "$UPLOAD_TEST_LOG") == 2 ]]
+echo 'PASS: upload request and rendered Markdown'
+
+export UPLOAD_TEST_MODE=failure
+if bash "$script" owner/repo "$scratch/charts with spaces" > /dev/null 2>&1; then
+ echo 'Expected upload failure' >&2; exit 1
+fi
+[[ $(wc -l < "$UPLOAD_TEST_LOG") == 4 ]]
+echo 'PASS: upload errors propagate without retries'
+
+if bash "$script" --dry-run owner/repo "$scratch/empty" > /dev/null 2>&1; then
+ echo 'Expected missing charts failure' >&2; exit 1
+fi
+printf invalid > "$scratch/charts with spaces/bad.png"
+if bash "$script" --dry-run owner/repo "$scratch/charts with spaces" > /dev/null 2>&1; then
+ echo 'Expected invalid PNG failure' >&2; exit 1
+fi
+[[ $(wc -l < "$UPLOAD_TEST_LOG") == 4 ]]
+echo 'PASS: missing or invalid charts fail before network calls'
diff --git a/.github/scripts/bench-upload-charts.sh b/.github/scripts/bench-upload-charts.sh
new file mode 100644
index 00000000000..e9ea1e7916d
--- /dev/null
+++ b/.github/scripts/bench-upload-charts.sh
@@ -0,0 +1,66 @@
+#!/usr/bin/env bash
+# Upload benchmark PNGs using the endpoint behind gh --attach.
+# Usage: bash bench-upload-charts.sh [--dry-run] owner/repo charts-directory
+# Requires gh authentication with a user token that can write to the repository.
+set -euo pipefail
+
+dry_run=false
+if [[ "${1:-}" == --dry-run ]]; then
+ dry_run=true
+ shift
+fi
+if [[ $# != 2 ]]; then
+ echo "Usage: $0 [--dry-run] owner/repo charts-directory" >&2
+ exit 1
+fi
+repo=$1
+directory=$2
+shopt -s nullglob
+charts=("$directory"/*.png)
+if (( ${#charts[@]} == 0 )); then
+ echo "No PNG charts found in $directory" >&2
+ exit 1
+fi
+# Validate the whole batch before uploading anything.
+for chart in "${charts[@]}"; do
+ if [[ ! -f "$chart" || ! -s "$chart" ]] || (( $(wc -c < "$chart") > 10485760 )); then
+ echo "Expected a nonempty PNG no larger than 10 MiB: $chart" >&2
+ exit 1
+ fi
+ if [[ "$(od -An -tx1 -N8 "$chart" | tr -d ' \n')" != 89504e470d0a1a0a ]]; then
+ echo "Invalid PNG: $chart" >&2
+ exit 1
+ fi
+done
+
+if $dry_run; then
+ printf '%q ' gh api "repos/$repo" --jq .id
+ printf '\n'
+ repository_id=REPOSITORY_ID
+else
+ repository_id=$(gh api "repos/$repo" --jq .id)
+ [[ "$repository_id" =~ ^[1-9][0-9]*$ ]]
+ printf '\n\n### Charts\n\n'
+fi
+for chart in "${charts[@]}"; do
+ name=${chart##*/}
+ command=(gh api https://uploads.github.com/user-attachments/assets
+ --method POST -H 'Content-Type: application/octet-stream'
+ -H 'Accept: application/vnd.github+json' --input "$chart"
+ -f "name=$name" -f content_type=image/png -F "repository_id=$repository_id")
+ if $dry_run; then
+ printf '%q ' "${command[@]}"
+ printf '\n'
+ continue
+ fi
+ # Print successful URLs immediately; never automatically retry an upload.
+ response=$("${command[@]}")
+ url=$(jq -er '.url | select(type == "string" and startswith("https://github.com/user-attachments/assets/"))' <<< "$response")
+ case "$name" in
+ latency_throughput.png) label='Latency, Throughput & Diff' ;;
+ wait_breakdown.png) label='Wait Time Breakdown' ;;
+ gas_vs_latency.png) label='Gas vs Latency' ;;
+ *) label='Benchmark chart' ;;
+ esac
+ printf '%s
\n\n\n\n \n\n' "$label" "$label" "$url"
+done
diff --git a/.github/scripts/bench-upload-clickhouse.py b/.github/scripts/bench-upload-clickhouse.py
index 6fe36c57922..d4b6fe32627 100755
--- a/.github/scripts/bench-upload-clickhouse.py
+++ b/.github/scripts/bench-upload-clickhouse.py
@@ -71,6 +71,11 @@ def wait_mean(field):
b_gas_per_second = b_stats["mean_mgas_s"] * 1_000_000
f_gas_per_second = f_stats["mean_mgas_s"] * 1_000_000
+ # Keep these legacy columns as summed processing latency, alongside the
+ # execution-only gas/s columns. wall_clock_s now means measured elapsed time.
+ b_processing_ms = b_stats.get("processing_time_s", b_stats.get("wall_clock_s", 0)) * 1000
+ f_processing_ms = f_stats.get("processing_time_s", f_stats.get("wall_clock_s", 0)) * 1000
+
mean_change = changes.get("mean", {}).get("pct", 0.0)
gas_change = changes.get("mgas_s", {}).get("pct", 0.0)
latency_improved = 1 if mean_change < 0 else 0
@@ -107,10 +112,10 @@ def esc(s):
'{esc(baseline["ref"])}', '{esc(baseline["ref"])}',
'{esc(feature["ref"])}', '{esc(feature["ref"])}',
{blocks},
- {b_stats.get("wall_clock_s", 0) * 1000}, {b_gas_per_second},
+ {b_processing_ms}, {b_gas_per_second},
{b_stats["mean_ms"]}, {b_stats["p50_ms"]},
{b_stats["p90_ms"]}, {b_stats["p99_ms"]},
- {f_stats.get("wall_clock_s", 0) * 1000}, {f_gas_per_second},
+ {f_processing_ms}, {f_gas_per_second},
{f_stats["mean_ms"]}, {f_stats["p50_ms"]},
{f_stats["p90_ms"]}, {f_stats["p99_ms"]},
{mean_change}, {gas_change},
diff --git a/.github/scripts/bench-utils.js b/.github/scripts/bench-utils.js
index b07e317eb23..1e7baabc471 100644
--- a/.github/scripts/bench-utils.js
+++ b/.github/scripts/bench-utils.js
@@ -45,10 +45,6 @@ function loadSamplyUrls(workDir) {
return loadProfileUrls(workDir, 'samply-profile-url.txt');
}
-function loadTracingChromeUrls(workDir) {
- return loadProfileUrls(workDir, 'tracing-chrome-profile-url.txt');
-}
-
function loadProfileUrls(workDir, fileName) {
const urls = {};
let runs = [];
@@ -134,14 +130,17 @@ function metricRows(summary) {
{ label: 'Error rate', baseline: optPct(b.error_rate_pct), feature: optPct(f.error_rate_pct), change: '' },
];
}
+ const optS = v => (Number.isFinite(v) ? fmtS(v) : 'n/a');
+ const optMgas = v => (Number.isFinite(v) ? fmtMgas(v) : 'n/a');
return [
- { label: 'Mean', baseline: fmtMs(b.mean_ms), feature: fmtMs(f.mean_ms), change: fmtChange(c.mean) },
- { label: 'StdDev', baseline: fmtMs(b.stddev_ms), feature: fmtMs(f.stddev_ms), change: '' },
- { label: 'P50', baseline: fmtMs(b.p50_ms), feature: fmtMs(f.p50_ms), change: fmtChange(c.p50) },
- { label: 'P90', baseline: fmtMs(b.p90_ms), feature: fmtMs(f.p90_ms), change: fmtChange(c.p90) },
- { label: 'P99', baseline: fmtMs(b.p99_ms), feature: fmtMs(f.p99_ms), change: fmtChange(c.p99) },
- { label: 'Mgas/s', baseline: fmtMgas(b.mean_mgas_s), feature: fmtMgas(f.mean_mgas_s), change: fmtChange(c.mgas_s) },
- { label: 'Wall Clock', baseline: fmtS(b.wall_clock_s), feature: fmtS(f.wall_clock_s), change: fmtChange(c.wall_clock) },
+ { label: 'Execution Mean', baseline: fmtMs(b.mean_ms), feature: fmtMs(f.mean_ms), change: fmtChange(c.mean) },
+ { label: 'Execution StdDev', baseline: fmtMs(b.stddev_ms), feature: fmtMs(f.stddev_ms), change: '' },
+ { label: 'Execution P50', baseline: fmtMs(b.p50_ms), feature: fmtMs(f.p50_ms), change: fmtChange(c.p50) },
+ { label: 'Execution P90', baseline: fmtMs(b.p90_ms), feature: fmtMs(f.p90_ms), change: fmtChange(c.p90) },
+ { label: 'Execution P99', baseline: fmtMs(b.p99_ms), feature: fmtMs(f.p99_ms), change: fmtChange(c.p99) },
+ { label: 'Execution Mgas/s', baseline: fmtMgas(b.mean_mgas_s), feature: fmtMgas(f.mean_mgas_s), change: fmtChange(c.mgas_s) },
+ { label: 'Wall Clock', baseline: optS(b.wall_clock_s), feature: optS(f.wall_clock_s), change: fmtChange(c.wall_clock) },
+ { label: 'End-to-end Mgas/s', baseline: optMgas(b.end_to_end_mgas_s), feature: optMgas(f.end_to_end_mgas_s), change: fmtChange(c.end_to_end_mgas_s) },
{ label: 'Persist Wait', baseline: fmtMs(b.mean_persist_ms || 0), feature: fmtMs(f.mean_persist_ms || 0), change: fmtChange(c.persist_wait) },
];
}
@@ -166,7 +165,6 @@ module.exports = {
verdict,
isWin,
loadSamplyUrls,
- loadTracingChromeUrls,
blocksLabel,
metricRows,
waitTimeRows,
diff --git a/.github/scripts/test_bench_elapsed_metrics.py b/.github/scripts/test_bench_elapsed_metrics.py
new file mode 100644
index 00000000000..0df455a5eaf
--- /dev/null
+++ b/.github/scripts/test_bench_elapsed_metrics.py
@@ -0,0 +1,150 @@
+"""Regression tests for measured elapsed metrics and the shared Slack renderer.
+
+Run with: uv run python -m unittest discover -s .github/scripts
+"""
+
+import csv
+import importlib.util
+import json
+from pathlib import Path
+import subprocess
+import tempfile
+import unittest
+
+
+SCRIPTS = Path(__file__).resolve().parent
+spec = importlib.util.spec_from_file_location("bench_summary", SCRIPTS / "bench-reth-summary.py")
+summary = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(summary)
+
+
+class ElapsedMetricsTests(unittest.TestCase):
+ def setUp(self):
+ self.temp = tempfile.TemporaryDirectory()
+ self.addCleanup(self.temp.cleanup)
+ self.root = Path(self.temp.name)
+
+ def run_fixture(self, name, execution_us, duration_ms, blocks=2):
+ directory = self.root / name
+ directory.mkdir()
+ path = directory / "combined_latency.csv"
+ with path.open("w", newline="") as f:
+ writer = csv.DictWriter(f, fieldnames=[
+ "block_number", "gas_used", "new_payload_latency", "total_latency",
+ "persistence_wait", "execution_cache_wait", "sparse_trie_wait",
+ ])
+ writer.writeheader()
+ for number in range(100, 100 + blocks):
+ writer.writerow({
+ "block_number": number, "gas_used": 1_000_000,
+ "new_payload_latency": execution_us, "total_latency": execution_us,
+ "persistence_wait": 0, "execution_cache_wait": 0, "sparse_trie_wait": 0,
+ })
+ if duration_ms is not None:
+ (directory / "report.json").write_text(json.dumps({"run_stats": {
+ "duration_ms": duration_ms, "total_gas": blocks * 1_000_000,
+ "total_blocks": blocks, "start_block": 100, "end_block": 99 + blocks,
+ }}))
+ return str(path)
+
+ def compare(self, baseline_paths, feature_paths):
+ b_runs = [summary.parse_combined_csv(path) for path in baseline_paths]
+ f_runs = [summary.parse_combined_csv(path) for path in feature_paths]
+ b = summary.compute_point_stats(b_runs)
+ f = summary.compute_point_stats(f_runs)
+ ci = summary.compute_ci_stats(b_runs, f_runs)
+ summary.add_elapsed_stats(baseline_paths, feature_paths, b_runs, f_runs, b, f, ci)
+ return b, f, ci, summary.compute_changes(b, f, ci)
+
+ def render_rows(self, b, f, changes):
+ result = subprocess.run([
+ "node", "-e",
+ "const u=require(process.argv[1]); let s=''; "
+ "process.stdin.on('data', d=>s+=d); "
+ "process.stdin.on('end', ()=>{const x=JSON.parse(s); "
+ "process.stdout.write(JSON.stringify({rows:u.metricRows(x),verdict:u.verdict(x.changes)}));});",
+ str(SCRIPTS / "bench-utils.js"),
+ ], input=json.dumps({"baseline": {"stats": b}, "feature": {"stats": f}, "changes": changes}),
+ text=True, capture_output=True, check=True)
+ return json.loads(result.stdout)
+
+ def test_persistence_savings_survive_slower_execution(self):
+ baseline = [self.run_fixture(f"b{i}", 10_000, 1000) for i in range(2)]
+ feature = [self.run_fixture(f"f{i}", 20_000, 500) for i in range(2)]
+ b, f, ci, changes = self.compare(baseline, feature)
+ self.assertEqual(b["wall_clock_s"], 1.0) # Mean per run, not the sum of two runs.
+ self.assertEqual(f["wall_clock_s"], 0.5)
+ self.assertEqual(b["end_to_end_mgas_s"], 2.0)
+ self.assertEqual(f["end_to_end_mgas_s"], 4.0)
+ self.assertEqual(changes["mean"]["sig"], "bad")
+ self.assertEqual(changes["mgas_s"]["sig"], "bad")
+ self.assertEqual(changes["wall_clock"]["sig"], "good")
+ self.assertEqual(changes["end_to_end_mgas_s"]["sig"], "good")
+ self.assertEqual(changes["wall_clock"]["pct"], -50.0)
+ self.assertEqual(changes["end_to_end_mgas_s"]["pct"], 100.0)
+ rendered = self.render_rows(b, f, changes)
+ rows = {row["label"]: row for row in rendered["rows"]}
+ self.assertEqual(rows["Wall Clock"]["baseline"], "1.00s")
+ self.assertEqual(rows["End-to-end Mgas/s"]["feature"], "4.00")
+ self.assertIn("❌", rows["Execution Mean"]["change"])
+ self.assertIn("✅", rows["Wall Clock"]["change"])
+ self.assertEqual(rendered["verdict"]["label"], "Mixed Results")
+ markdown = summary.generate_comparison_table(b, f, ci, "owner/repo", "base", "base", "feat", "sha")
+ self.assertIn("| Wall Clock | 1.00s | 0.50s |", markdown)
+ self.assertIn("| End-to-end Mgas/s | 2.00 | 4.00 |", markdown)
+
+ def test_average_run_throughput_not_ratio_of_averages(self):
+ baseline = [self.run_fixture("b1", 10_000, 1000), self.run_fixture("b2", 10_000, 3000)]
+ feature = [self.run_fixture("f1", 10_000, 2000), self.run_fixture("f2", 10_000, 2000)]
+ b, f, ci, changes = self.compare(baseline, feature)
+ self.assertEqual(b["wall_clock_s"], 2)
+ self.assertAlmostEqual(b["end_to_end_mgas_s"], (2 + 2 / 3) / 2)
+ self.assertAlmostEqual(ci["wall_clock_ci_s"], 1)
+ self.assertAlmostEqual(changes["wall_clock"]["ci_pct"], 50)
+ self.assertEqual(changes["wall_clock"]["sig"], "neutral")
+
+ def test_run_count_does_not_inflate_elapsed_time(self):
+ baseline = [self.run_fixture(f"b{i}", 10_000, 1000) for i in range(2)]
+ feature = [self.run_fixture(f"f{i}", 10_000, 1000) for i in range(3)]
+ b, f, ci, changes = self.compare(baseline, feature)
+ self.assertEqual(b["wall_clock_s"], f["wall_clock_s"])
+ self.assertEqual(changes["wall_clock"]["pct"], 0)
+
+ def test_single_run_elapsed_verdict_is_informational(self):
+ b, f, ci, changes = self.compare(
+ [self.run_fixture("b", 10_000, 1000)], [self.run_fixture("f", 10_000, 500)],
+ )
+ for name in ("wall_clock", "end_to_end_mgas_s"):
+ self.assertTrue(changes[name]["informational"])
+ self.assertEqual(changes[name]["sig"], "neutral")
+ self.assertEqual(self.render_rows(b, f, changes)["verdict"]["label"], "No Difference")
+
+ def test_missing_report_does_not_fabricate_wall_clock(self):
+ baseline = [self.run_fixture("b1", 10_000, 1000), self.run_fixture("b2", 10_000, None)]
+ feature = [self.run_fixture(f"f{i}", 10_000, 500) for i in range(2)]
+ b, f, ci, changes = self.compare(baseline, feature)
+ self.assertIsNone(b["wall_clock_s"])
+ self.assertIsNone(f["end_to_end_mgas_s"])
+ self.assertNotIn("wall_clock", changes)
+ rows = {row["label"]: row for row in self.render_rows(b, f, changes)["rows"]}
+ self.assertEqual(rows["Wall Clock"]["baseline"], "n/a")
+ markdown = summary.generate_comparison_table(b, f, ci, "owner/repo", "base", "base", "feat", "sha")
+ self.assertIn("| Wall Clock | n/a | n/a |", markdown)
+
+ def test_invalid_duration_rejected(self):
+ for i, duration in enumerate((0, -1, float("nan"), float("inf"), True, "1000")):
+ with self.subTest(duration=duration):
+ path = self.run_fixture(f"bad{i}", 10_000, duration)
+ with self.assertRaisesRegex(ValueError, "Invalid measured duration"):
+ summary.load_elapsed_run(path, summary.parse_combined_csv(path))
+
+ def test_mismatched_report_rejected(self):
+ path = self.run_fixture("bad", 10_000, 1000)
+ rows = summary.parse_combined_csv(path)
+ rows[0]["gas_used"] += 1
+ with self.assertRaisesRegex(ValueError, "do not match"):
+ summary.load_elapsed_run(path, rows)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/.github/sts/cargo-update-pr.sts.yaml b/.github/sts/cargo-update-pr.sts.yaml
new file mode 100644
index 00000000000..75ec78bd80f
--- /dev/null
+++ b/.github/sts/cargo-update-pr.sts.yaml
@@ -0,0 +1,14 @@
+# Only the pinned dependency updater on main may create dependency PRs.
+subject:
+ - repo:paradigmxyz/reth:ref:refs/heads/main
+ - repo:paradigmxyz@97369466/reth@537233603:ref:refs/heads/main
+
+claim_pattern:
+ repository_id: '537233603'
+ event_name: '(schedule|workflow_dispatch)'
+ workflow_ref: 'paradigmxyz/reth/\.github/workflows/dependencies\.yml@refs/heads/main'
+ job_workflow_ref: 'tempoxyz/gh-actions/\.github/workflows/cargo-update-pr\.yml@ee2960a6cc25d99bda45614135bfe1197d879bac'
+
+permissions:
+ contents: write
+ pull_requests: write
diff --git a/.github/workflows/bench-benchmarkoor.yml b/.github/workflows/bench-benchmarkoor.yml
index c9e69ef6bb3..e2b4c03eee6 100644
--- a/.github/workflows/bench-benchmarkoor.yml
+++ b/.github/workflows/bench-benchmarkoor.yml
@@ -153,6 +153,7 @@ jobs:
name: bench-benchmarkoor
runs-on: [self-hosted, Linux, X64, available]
permissions:
+ id-token: write
contents: read
timeout-minutes: 180
env:
@@ -175,6 +176,8 @@ jobs:
BENCHMARKOOR_REPLAY_PATH: ${{ inputs.benchmarkoor_replay_path || '~/projects/benchmarkoor-replay' }}
BENCHMARKOOR_CACHE: ${{ github.workspace }}/bench-work/benchmarkoor-cache
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- name: Clean up previous bench-work
run: sudo rm -rf "$BENCH_WORK_DIR" 2>/dev/null || true
@@ -196,7 +199,9 @@ jobs:
submodules: true
fetch-depth: 0
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
+ with:
+ toolchain: stable
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
continue-on-error: true
@@ -259,6 +264,8 @@ jobs:
set -euo pipefail
replay_path="$BENCHMARKOOR_REPLAY_PATH"
+ # Match a literal tilde before expanding it ourselves.
+ # shellcheck disable=SC2088
case "$replay_path" in
"~") replay_path="$HOME" ;;
"~/"*) replay_path="$HOME/${replay_path#"~/"}" ;;
@@ -306,6 +313,8 @@ jobs:
set -euo pipefail
metadata_root="$BENCHMARKOOR_METADATA_ROOT"
+ # Match a literal tilde before expanding it ourselves.
+ # shellcheck disable=SC2088
case "$metadata_root" in
"~") metadata_root="$HOME" ;;
"~/"*) metadata_root="$HOME/${metadata_root#"~/"}" ;;
@@ -377,6 +386,11 @@ jobs:
} >> "$GITHUB_OUTPUT"
- name: Prepare source dirs
+ env:
+ INPUT_BASELINE_REF: ${{ steps.refs.outputs.baseline-ref }}
+ INPUT_DOWNLOAD_NAME: ${{ steps.refs.outputs.download-name }}
+ INPUT_DOWNLOAD_REF: ${{ steps.refs.outputs.download-ref }}
+ INPUT_FEATURE_REF: ${{ steps.refs.outputs.feature-ref }}
run: |
set -euo pipefail
prepare_source_dir() {
@@ -400,13 +414,16 @@ jobs:
git -C "$dir" submodule update --init --recursive
}
- prepare_source_dir ../reth-baseline "${{ steps.refs.outputs.baseline-ref }}"
- prepare_source_dir ../reth-feature "${{ steps.refs.outputs.feature-ref }}"
- prepare_source_dir ../reth-download "${{ steps.refs.outputs.download-ref }}" "${{ steps.refs.outputs.download-name }}"
+ prepare_source_dir ../reth-baseline "${INPUT_BASELINE_REF}"
+ prepare_source_dir ../reth-feature "${INPUT_FEATURE_REF}"
+ prepare_source_dir ../reth-download "${INPUT_DOWNLOAD_REF}" "${INPUT_DOWNLOAD_NAME}"
- name: Build binaries
id: build
env:
+ INPUT_BASELINE_REF: ${{ steps.refs.outputs.baseline-ref }}
+ INPUT_DOWNLOAD_REF: ${{ steps.refs.outputs.download-ref }}
+ INPUT_FEATURE_REF: ${{ steps.refs.outputs.feature-ref }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEREK_PAT: ${{ secrets.DEREK_PAT }}
DEREK_TOKEN: ${{ secrets.DEREK_TOKEN }}
@@ -418,11 +435,11 @@ jobs:
FEATURE_DIR="$(cd ../reth-feature && pwd)"
DOWNLOAD_DIR="$(cd ../reth-download && pwd)"
- .github/scripts/bench-txgen-build.sh baseline "$BASELINE_DIR" "${{ steps.refs.outputs.baseline-ref }}" &
+ .github/scripts/bench-txgen-build.sh baseline "$BASELINE_DIR" "${INPUT_BASELINE_REF}" &
PID_BASELINE=$!
- .github/scripts/bench-txgen-build.sh feature "$FEATURE_DIR" "${{ steps.refs.outputs.feature-ref }}" &
+ .github/scripts/bench-txgen-build.sh feature "$FEATURE_DIR" "${INPUT_FEATURE_REF}" &
PID_FEATURE=$!
- .github/scripts/bench-txgen-build.sh baseline "$DOWNLOAD_DIR" "${{ steps.refs.outputs.download-ref }}" &
+ .github/scripts/bench-txgen-build.sh baseline "$DOWNLOAD_DIR" "${INPUT_DOWNLOAD_REF}" &
PID_DOWNLOAD=$!
FAIL=0
@@ -566,10 +583,13 @@ jobs:
- name: Import snapshot into schelk
id: snapshot
+ env:
+ INPUT_DOWNLOAD_NAME: ${{ steps.refs.outputs.download-name }}
+ INPUT_DOWNLOAD_REF: ${{ steps.refs.outputs.download-ref }}
run: |
set -euo pipefail
DOWNLOAD_RETH_BINARY="$(pwd)/../reth-download/target/profiling/reth"
- echo "Using download reth from ${{ steps.refs.outputs.download-name }} (${{ steps.refs.outputs.download-ref }})"
+ echo "Using download reth from ${INPUT_DOWNLOAD_NAME} (${INPUT_DOWNLOAD_REF})"
"$DOWNLOAD_RETH_BINARY" --version
BENCH_RETH_BINARY="$DOWNLOAD_RETH_BINARY" \
.github/scripts/bench-benchmarkoor-snapshot.sh
@@ -649,6 +669,11 @@ jobs:
- name: Parse results
id: results
if: success()
+ env:
+ INPUT_BASELINE_NAME: ${{ steps.refs.outputs.baseline-name }}
+ INPUT_BASELINE_REF: ${{ steps.refs.outputs.baseline-ref }}
+ INPUT_FEATURE_NAME: ${{ steps.refs.outputs.feature-name }}
+ INPUT_FEATURE_REF: ${{ steps.refs.outputs.feature-ref }}
run: |
set -euo pipefail
RESULTS="$BENCH_WORK_DIR/results.jsonl"
@@ -666,10 +691,10 @@ jobs:
--output-json "$BENCH_WORK_DIR/summary.json" \
--output-markdown "$BENCH_WORK_DIR/summary.md" \
--repo "${{ github.repository }}" \
- --baseline-name "${{ steps.refs.outputs.baseline-name }}" \
- --baseline-ref "${{ steps.refs.outputs.baseline-ref }}" \
- --feature-name "${{ steps.refs.outputs.feature-name }}" \
- --feature-ref "${{ steps.refs.outputs.feature-ref }}"
+ --baseline-name "${INPUT_BASELINE_NAME}" \
+ --baseline-ref "${INPUT_BASELINE_REF}" \
+ --feature-name "${INPUT_FEATURE_NAME}" \
+ --feature-ref "${INPUT_FEATURE_REF}"
- name: Write job summary
if: success()
diff --git a/.github/workflows/bench-scheduled.yml b/.github/workflows/bench-scheduled.yml
index 5e08ac69436..2cb2e34498b 100644
--- a/.github/workflows/bench-scheduled.yml
+++ b/.github/workflows/bench-scheduled.yml
@@ -9,9 +9,9 @@
# release — Compares the latest GitHub release tag against the current nightly
# Docker build. Runs daily to track nightly vs release performance.
#
-# State is persisted between runs via the decofe/reth-bench-charts repo: each
-# successful run saves the feature commit SHA so the next run knows what to
-# compare against.
+# State is an Actions artifact containing the feature SHA from a successful run,
+# scoped by mode and branch. After 90 days without retained state, the existing
+# first-run baseline rules apply. No PAT or separate repository is needed.
on:
schedule:
@@ -143,14 +143,14 @@ jobs:
- name: Resolve refs
id: refs
env:
+ INPUT_MODE: ${{ steps.mode.outputs.mode }}
GH_TOKEN: ${{ github.token }}
- DEREK_TOKEN: ${{ secrets.DEREK_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_RUN_ID: ${{ github.run_id }}
INPUT_FORCE: ${{ inputs.force || 'false' }}
run: |
FORCE="${INPUT_FORCE:-false}"
- MODE="${{ steps.mode.outputs.mode }}"
+ MODE="${INPUT_MODE}"
.github/scripts/bench-scheduled-refs.sh "$FORCE" "$MODE"
- name: Alert on long-running hourly
@@ -199,6 +199,9 @@ jobs:
if: steps.mode.outputs.mode == 'nightly' && steps.refs.outputs.is-stale == 'true' && !(github.event_name == 'workflow_dispatch' && inputs.slack == 'never')
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
+ INPUT_FEATURE_REF: ${{ steps.refs.outputs.feature-ref }}
+ INPUT_NIGHTLY_CREATED: ${{ steps.refs.outputs.nightly-created }}
+ INPUT_STALE_AGE_HOURS: ${{ steps.refs.outputs.stale-age-hours }}
SLACK_BENCH_BOT_TOKEN: ${{ secrets.SLACK_BENCH_BOT_TOKEN }}
SLACK_BENCH_CHANNEL: ${{ secrets.SLACK_BENCH_CHANNEL }}
with:
@@ -210,9 +213,9 @@ jobs:
return;
}
- const ageHours = '${{ steps.refs.outputs.stale-age-hours }}';
- const created = '${{ steps.refs.outputs.nightly-created }}';
- const featureRef = '${{ steps.refs.outputs.feature-ref }}';
+ const ageHours = process.env.INPUT_STALE_AGE_HOURS;
+ const created = process.env.INPUT_NIGHTLY_CREATED;
+ const featureRef = process.env.INPUT_FEATURE_REF;
const shortSha = featureRef.slice(0, 8);
const repo = '${{ github.repository }}';
const runUrl = `${context.serverUrl}/${repo}/actions/runs/${context.runId}`;
@@ -286,6 +289,7 @@ jobs:
name: bench-scheduled
runs-on: [self-hosted, Linux, X64, available]
permissions:
+ id-token: write
contents: read
actions: read
timeout-minutes: 120
@@ -323,6 +327,8 @@ jobs:
CLICKHOUSE_PASSWORD: ${{ secrets.CLICKHOUSE_PASSWORD }}
BENCH_VICTORIAMETRICS_URL: ${{ secrets.BENCH_VICTORIAMETRICS_URL }}
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- name: Clean up previous bench-work
run: sudo rm -rf "$BENCH_WORK_DIR" 2>/dev/null || true
@@ -347,11 +353,13 @@ jobs:
const jobUrl = job ? job.html_url : `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
core.exportVariable('BENCH_JOB_URL', jobUrl);
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
- - uses: dtolnay/rust-toolchain@stable
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
+ with:
+ toolchain: stable
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
continue-on-error: true
- - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
+ - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
- name: Install dependencies
env:
@@ -361,6 +369,7 @@ jobs:
# apt packages
sudo apt-get update -qq
+ sudo apt-get install -y --no-install-recommends gh
sudo apt-get install -y --no-install-recommends \
python3 make jq zstd curl dmsetup m4 \
linux-tools-"$(uname -r)" || \
@@ -402,7 +411,7 @@ jobs:
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
missing=()
- for cmd in mc schelk cpupower taskset stdbuf python3 curl make uv jq m4; do
+ for cmd in mc schelk cpupower taskset stdbuf python3 curl make uv jq m4 gh; do
command -v "$cmd" &>/dev/null || missing+=("$cmd")
done
if [ ${#missing[@]} -gt 0 ]; then
@@ -418,15 +427,21 @@ jobs:
run: |
FEATURE_SHORT=$(echo "$FEATURE_REF" | cut -c1-8)
if [ "$BENCH_MODE" = "release" ] && [ -n "$RELEASE_TAG" ]; then
- echo "baseline-name=${RELEASE_TAG}" >> "$GITHUB_OUTPUT"
- echo "baseline-ref=${RELEASE_TAG}" >> "$GITHUB_OUTPUT"
+ {
+ echo "baseline-name=${RELEASE_TAG}"
+ echo "baseline-ref=${RELEASE_TAG}"
+ } >> "$GITHUB_OUTPUT"
else
BASELINE_SHORT=$(echo "$BASELINE_REF" | cut -c1-8)
- echo "baseline-name=${BENCH_MODE}-${BASELINE_SHORT}" >> "$GITHUB_OUTPUT"
- echo "baseline-ref=$BASELINE_REF" >> "$GITHUB_OUTPUT"
+ {
+ echo "baseline-name=${BENCH_MODE}-${BASELINE_SHORT}"
+ echo "baseline-ref=$BASELINE_REF"
+ } >> "$GITHUB_OUTPUT"
fi
- echo "feature-name=${BENCH_MODE}-${FEATURE_SHORT}" >> "$GITHUB_OUTPUT"
- echo "feature-ref=$FEATURE_REF" >> "$GITHUB_OUTPUT"
+ {
+ echo "feature-name=${BENCH_MODE}-${FEATURE_SHORT}"
+ echo "feature-ref=$FEATURE_REF"
+ } >> "$GITHUB_OUTPUT"
- name: Prepare source dirs
run: |
@@ -630,14 +645,18 @@ jobs:
fi
printf '%s: %d panic(s), %d error(s)
\n\n' "$run_dir" "$panics" "$errors" >> "$ERRORS_FILE"
if [ "$panics" -gt 0 ]; then
- printf '**Panics:**\n```\n' >> "$ERRORS_FILE"
- grep -E 'panicked at' "$LOG" | head -10 >> "$ERRORS_FILE"
- printf '```\n' >> "$ERRORS_FILE"
+ {
+ printf '**Panics:**\n```\n'
+ grep -E 'panicked at' "$LOG" | head -10
+ printf '```\n'
+ } >> "$ERRORS_FILE"
fi
if [ "$errors" -gt 0 ]; then
- printf '**Errors (first 20):**\n```\n' >> "$ERRORS_FILE"
- grep ' ERROR ' "$LOG" | head -20 >> "$ERRORS_FILE"
- printf '```\n' >> "$ERRORS_FILE"
+ {
+ printf '**Errors (first 20):**\n```\n'
+ grep ' ERROR ' "$LOG" | head -20
+ printf '```\n'
+ } >> "$ERRORS_FILE"
fi
printf '\n \n\n' >> "$ERRORS_FILE"
fi
@@ -647,6 +666,7 @@ jobs:
id: results
if: success()
env:
+ INPUT_GRAFANA_URL: ${{ steps.metrics.outputs.grafana-url }}
BASELINE_NAME: ${{ steps.refs.outputs.baseline-name }}
FEATURE_NAME: ${{ steps.refs.outputs.feature-name }}
BASELINE_REF_DISPLAY: ${{ steps.refs.outputs.baseline-ref }}
@@ -667,7 +687,7 @@ jobs:
SUMMARY_ARGS="$SUMMARY_ARGS --feature-csv $FEATURE_CSVS"
SUMMARY_ARGS="$SUMMARY_ARGS --run-pairs $BENCH_RUN_PAIRS"
- GRAFANA_URL='${{ steps.metrics.outputs.grafana-url }}'
+ GRAFANA_URL="${INPUT_GRAFANA_URL}"
if [ -n "$GRAFANA_URL" ]; then
SUMMARY_ARGS="$SUMMARY_ARGS --grafana-url $GRAFANA_URL"
fi
@@ -680,6 +700,7 @@ jobs:
- name: Upload to ClickHouse
if: success()
env:
+ INPUT_GRAFANA_URL: ${{ steps.metrics.outputs.grafana-url }}
CLICKHOUSE_HOST: ${{ secrets.CLICKHOUSE_HOST }}
CLICKHOUSE_USER: ${{ secrets.CLICKHOUSE_USER }}
CLICKHOUSE_PASSWORD: ${{ secrets.CLICKHOUSE_PASSWORD }}
@@ -690,7 +711,7 @@ jobs:
WORKFLOW_NAME="workflows-nightly-regression-${{ github.run_id }}"
fi
DIFF_URL="https://github.com/${{ github.repository }}/compare/${BASELINE_REF}...${FEATURE_REF}"
- GRAFANA_URL='${{ steps.metrics.outputs.grafana-url }}'
+ GRAFANA_URL="${INPUT_GRAFANA_URL}"
JOB_URL="${BENCH_JOB_URL:-${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}}"
python3 .github/scripts/bench-upload-clickhouse.py \
@@ -726,55 +747,18 @@ jobs:
name: bench-scheduled-results
path: ${{ env.BENCH_WORK_DIR }}
- - name: Push charts
- id: push-charts
+ - name: Upload chart attachments
+ id: upload-charts
if: success() && env.BENCH_MODE != 'hourly'
env:
- DEREK_TOKEN: ${{ secrets.DEREK_TOKEN }}
- RUN_ID: ${{ github.run_id }}
- run: |
- CHART_DIR="${BENCH_MODE}/${RUN_ID}"
- CHARTS_REPO="https://x-access-token:${DEREK_TOKEN}@github.com/decofe/reth-bench-charts.git"
-
- TMP_DIR=""
- prepare_charts() {
- if [ -n "${TMP_DIR}" ]; then
- rm -rf "${TMP_DIR}"
- fi
-
- TMP_DIR=$(mktemp -d)
- if git clone --depth 1 "${CHARTS_REPO}" "${TMP_DIR}" 2>/dev/null; then
- true
- else
- git init "${TMP_DIR}"
- git -C "${TMP_DIR}" remote add origin "${CHARTS_REPO}"
- fi
- .github/scripts/configure-git-token-user.sh "${TMP_DIR}" "${DEREK_TOKEN}"
-
- mkdir -p "${TMP_DIR}/${CHART_DIR}"
- cp "$BENCH_WORK_DIR"/charts/*.png "${TMP_DIR}/${CHART_DIR}/"
- git -C "${TMP_DIR}" add "${CHART_DIR}"
- }
-
- for attempt in 1 2 3 4 5; do
- prepare_charts
- git -C "${TMP_DIR}" commit -m "nightly bench charts for run ${RUN_ID}"
- if git -C "${TMP_DIR}" push origin HEAD:main; then
- break
- fi
- if [ "$attempt" -eq 5 ]; then
- echo "::error::Failed to push charts after ${attempt} attempts"
- rm -rf "${TMP_DIR}"
- exit 1
- fi
- sleep "$attempt"
- done
- echo "sha=$(git -C "${TMP_DIR}" rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- rm -rf "${TMP_DIR}"
+ GH_TOKEN: ${{ secrets.DEREK_PAT }}
+ run: bash .github/scripts/bench-upload-charts.sh "$GITHUB_REPOSITORY" "$BENCH_WORK_DIR/charts" > "$BENCH_WORK_DIR/charts.md"
- name: Write job summary
if: success()
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ INPUT_GRAFANA_URL: ${{ steps.metrics.outputs.grafana-url }}
with:
script: |
const fs = require('fs');
@@ -821,25 +805,11 @@ jobs:
md += '\n';
}
- // Charts
- const chartSha = '${{ steps.push-charts.outputs.sha }}';
- if (chartSha) {
- const runId = '${{ github.run_id }}';
- const baseUrl = `https://raw.githubusercontent.com/decofe/reth-bench-charts/${chartSha}/nightly/${runId}`;
- const charts = [
- { file: 'latency_throughput.png', label: 'Latency, Throughput & Diff' },
- { file: 'wait_breakdown.png', label: 'Wait Time Breakdown' },
- { file: 'gas_vs_latency.png', label: 'Gas vs Latency' },
- ];
- md += `### Charts\n\n`;
- for (const chart of charts) {
- md += `${chart.label}
\n\n`;
- md += `\n\n`;
- md += ` \n\n`;
- }
+ if (process.env.BENCH_MODE !== 'hourly') {
+ md += fs.readFileSync(process.env.BENCH_WORK_DIR + '/charts.md', 'utf8');
}
- const grafanaUrl = '${{ steps.metrics.outputs.grafana-url }}';
+ const grafanaUrl = process.env.INPUT_GRAFANA_URL;
if (grafanaUrl) {
md += `### Grafana Dashboard\n\n[View real-time metrics](${grafanaUrl})\n\n`;
}
@@ -1092,34 +1062,21 @@ jobs:
if: success()
name: save-state
runs-on: ubuntu-latest
+ permissions: {}
steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- sparse-checkout: .github/scripts
- sparse-checkout-cone-mode: true
-
- - name: Push state to charts repo
+ - name: Prepare benchmark state
env:
- DEREK_TOKEN: ${{ secrets.DEREK_TOKEN }}
+ FEATURE_REF: ${{ needs.resolve-refs.outputs.feature-ref }}
run: |
- MODE="${{ needs.resolve-refs.outputs.mode }}"
- FEATURE_REF="${{ needs.resolve-refs.outputs.feature-ref }}"
- CHARTS_REPO="https://x-access-token:${DEREK_TOKEN}@github.com/decofe/reth-bench-charts.git"
+ [[ "$FEATURE_REF" =~ ^[0-9a-f]{40}$ ]] || exit 1
+ mkdir -p "$RUNNER_TEMP/bench-state"
+ printf '%s\n' "$FEATURE_REF" > "$RUNNER_TEMP/bench-state/feature-ref"
- TMP_DIR=$(mktemp -d)
- if git clone --depth 1 --branch state "${CHARTS_REPO}" "${TMP_DIR}" 2>/dev/null; then
- true
- else
- git init "${TMP_DIR}"
- git -C "${TMP_DIR}" remote add origin "${CHARTS_REPO}"
- fi
- .github/scripts/configure-git-token-user.sh "${TMP_DIR}" "${DEREK_TOKEN}"
-
- mkdir -p "${TMP_DIR}/state"
- echo "${FEATURE_REF}" > "${TMP_DIR}/state/${MODE}-last-feature-ref"
- git -C "${TMP_DIR}" add state/
- git -C "${TMP_DIR}" diff --cached --quiet && echo "No state change" && exit 0
- git -C "${TMP_DIR}" commit -m "bench: update ${MODE} state to ${FEATURE_REF}"
- git -C "${TMP_DIR}" push origin HEAD:state
- rm -rf "${TMP_DIR}"
+ - name: Save benchmark state
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: bench-state-${{ needs.resolve-refs.outputs.mode }}
+ path: ${{ runner.temp }}/bench-state/feature-ref
+ retention-days: 90
+ if-no-files-found: error
+ overwrite: true
diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml
index 897514909ff..afddfab67ac 100644
--- a/.github/workflows/bench.yml
+++ b/.github/workflows/bench.yml
@@ -84,12 +84,12 @@ on:
samply:
description: "Enable samply profiling"
required: false
- default: "false"
+ default: false
type: boolean
tracing_chrome:
description: "Enable Chrome trace recording"
required: false
- default: "false"
+ default: false
type: boolean
cores:
description: "Limit reth to N CPU cores (0 = all available)"
@@ -114,12 +114,12 @@ on:
otlp:
description: "Export OTLP traces and logs"
required: false
- default: "true"
+ default: true
type: boolean
metrics:
description: "Upload txgen metrics to VictoriaMetrics"
required: false
- default: "false"
+ default: false
type: boolean
call_args:
description: "Call mode arguments as key=value pairs (corpus, class, methods, rps, duration, passes, concurrency)"
@@ -813,6 +813,39 @@ jobs:
id: ack
if: steps.command.outputs.command == 'bench'
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ INPUT_ACTOR: ${{ steps.args.outputs.actor }}
+ INPUT_BAL: ${{ steps.args.outputs.bal }}
+ INPUT_BASELINE_ARGS: ${{ steps.args.outputs.baseline-args }}
+ INPUT_BASELINE_NAME: ${{ steps.args.outputs.baseline-name }}
+ INPUT_BIG_BLOCKS: ${{ steps.args.outputs.big-blocks }}
+ INPUT_BLOCK_TIME: ${{ steps.args.outputs.block-time }}
+ INPUT_BLOCKS: ${{ steps.args.outputs.blocks }}
+ INPUT_CLASS: ${{ steps.args.outputs.class }}
+ INPUT_CONCURRENCY: ${{ steps.args.outputs.concurrency }}
+ INPUT_CORES: ${{ steps.args.outputs.cores }}
+ INPUT_CORPUS: ${{ steps.args.outputs.corpus }}
+ INPUT_DURATION: ${{ steps.args.outputs.duration }}
+ INPUT_FEATURE_ARGS: ${{ steps.args.outputs.feature-args }}
+ INPUT_FEATURE_NAME: ${{ steps.args.outputs.feature-name }}
+ INPUT_METHODS: ${{ steps.args.outputs.methods }}
+ INPUT_METRICS: ${{ steps.args.outputs.metrics }}
+ INPUT_MODE: ${{ steps.args.outputs.mode }}
+ INPUT_NAMESPACE: ${{ steps.args.outputs.namespace }}
+ INPUT_OTLP: ${{ steps.args.outputs.otlp }}
+ INPUT_PASSES: ${{ steps.args.outputs.passes }}
+ INPUT_PR: ${{ steps.args.outputs.pr }}
+ INPUT_REORG: ${{ steps.args.outputs.reorg }}
+ INPUT_RPS: ${{ steps.args.outputs.rps }}
+ INPUT_RUN_ORDER: ${{ steps.args.outputs.run-order }}
+ INPUT_RUN_PAIRS: ${{ steps.args.outputs.run-pairs }}
+ INPUT_SAMPLY: ${{ steps.args.outputs.samply }}
+ INPUT_SLACK: ${{ steps.args.outputs.slack }}
+ INPUT_TOP_GAS: ${{ steps.args.outputs.top-gas }}
+ INPUT_TRACER: ${{ steps.args.outputs.tracer }}
+ INPUT_TRACING_CHROME: ${{ steps.args.outputs.tracing-chrome }}
+ INPUT_WAIT_TIME: ${{ steps.args.outputs.wait-time }}
+ INPUT_WARMUP: ${{ steps.args.outputs.warmup }}
with:
github-token: ${{ secrets.DEREK_PAT }}
script: |
@@ -825,7 +858,7 @@ jobs:
});
}
- const pr = '${{ steps.args.outputs.pr }}';
+ const pr = process.env.INPUT_PR;
if (!pr) return;
const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
@@ -860,34 +893,34 @@ jobs:
core.info(`Skipping queue tracking: ${e.message}`);
}
- const actor = '${{ steps.args.outputs.actor }}';
- const blocks = '${{ steps.args.outputs.blocks }}';
- const warmup = '${{ steps.args.outputs.warmup }}';
- const baseline = '${{ steps.args.outputs.baseline-name }}';
- const feature = '${{ steps.args.outputs.feature-name }}';
- const samply = '${{ steps.args.outputs.samply }}' === 'true';
- const tracingChrome = '${{ steps.args.outputs.tracing-chrome }}' === 'true';
- const slack = '${{ steps.args.outputs.slack }}' || 'always';
- const bigBlocks = '${{ steps.args.outputs.big-blocks }}' === 'true';
- const mode = '${{ steps.args.outputs.mode }}' || 'engine';
- const reorg = '${{ steps.args.outputs.reorg }}';
- const bal = '${{ steps.args.outputs.bal }}' || 'false';
+ const actor = process.env.INPUT_ACTOR;
+ const blocks = process.env.INPUT_BLOCKS;
+ const warmup = process.env.INPUT_WARMUP;
+ const baseline = process.env.INPUT_BASELINE_NAME;
+ const feature = process.env.INPUT_FEATURE_NAME;
+ const samply = process.env.INPUT_SAMPLY === 'true';
+ const tracingChrome = process.env.INPUT_TRACING_CHROME === 'true';
+ const slack = process.env.INPUT_SLACK || 'always';
+ const bigBlocks = process.env.INPUT_BIG_BLOCKS === 'true';
+ const mode = process.env.INPUT_MODE || 'engine';
+ const reorg = process.env.INPUT_REORG;
+ const bal = process.env.INPUT_BAL || 'false';
const samplyNote = samply ? ', samply: `enabled`' : '';
const tracingChromeNote = tracingChrome ? ', tracing-chrome: `enabled`' : '';
const slackNote = slack !== 'always' ? `, slack: \`${slack}\`` : '';
const reorgNote = reorg ? `, reorg: \`${reorg}\`` : '';
const balNote = bal !== 'false' ? `, BAL: \`${bal}\`` : '';
const modeNote = mode !== 'engine' ? `, mode: \`${mode}\`` : '';
- const corpus = '${{ steps.args.outputs.corpus }}';
- const callClass = '${{ steps.args.outputs.class }}';
- const callMethods = '${{ steps.args.outputs.methods }}';
- const callRps = '${{ steps.args.outputs.rps }}';
- const callDuration = '${{ steps.args.outputs.duration }}';
- const callPasses = '${{ steps.args.outputs.passes }}';
- const callConcurrency = '${{ steps.args.outputs.concurrency }}';
- const callTopGas = '${{ steps.args.outputs.top-gas }}';
- const callNamespace = '${{ steps.args.outputs.namespace }}';
- const callTracer = '${{ steps.args.outputs.tracer }}';
+ const corpus = process.env.INPUT_CORPUS;
+ const callClass = process.env.INPUT_CLASS;
+ const callMethods = process.env.INPUT_METHODS;
+ const callRps = process.env.INPUT_RPS;
+ const callDuration = process.env.INPUT_DURATION;
+ const callPasses = process.env.INPUT_PASSES;
+ const callConcurrency = process.env.INPUT_CONCURRENCY;
+ const callTopGas = process.env.INPUT_TOP_GAS;
+ const callNamespace = process.env.INPUT_NAMESPACE;
+ const callTracer = process.env.INPUT_TRACER;
const callExtras = [
callTopGas ? `top-gas: \`${callTopGas}\`` : '',
callNamespace ? `namespace: \`${callNamespace}\`` : '',
@@ -896,22 +929,22 @@ jobs:
const callNote = mode === 'call'
? `, corpus: \`${corpus}\`, class: \`${callClass}\`, methods: \`${callMethods}\`, rps: \`${callRps}\`, duration: \`${callDuration}\`, passes: \`${callPasses}\`, concurrency: \`${callConcurrency}\`${callExtras}`
: '';
- const cores = '${{ steps.args.outputs.cores }}';
+ const cores = process.env.INPUT_CORES;
const coresNote = cores && cores !== '0' ? `, cores: \`${cores}\`` : '';
- const runPairs = '${{ steps.args.outputs.run-pairs }}' || '6';
- const runOrder = '${{ steps.args.outputs.run-order }}';
+ const runPairs = process.env.INPUT_RUN_PAIRS || '6';
+ const runOrder = process.env.INPUT_RUN_ORDER;
const runPairsNote = `, run-pairs: \`${runPairs}\`${runOrder ? ` (${runOrder})` : ''}`;
- const otlpEnabled = '${{ steps.args.outputs.otlp }}' !== 'false';
+ const otlpEnabled = process.env.INPUT_OTLP !== 'false';
const otlpNote = !otlpEnabled ? ', otlp: `disabled`' : '';
- const metricsEnabled = '${{ steps.args.outputs.metrics }}' === 'true';
+ const metricsEnabled = process.env.INPUT_METRICS === 'true';
const metricsNote = metricsEnabled ? ', metrics: `enabled`' : '';
- const waitTimeVal = '${{ steps.args.outputs.wait-time }}';
+ const waitTimeVal = process.env.INPUT_WAIT_TIME;
const waitTimeNote = waitTimeVal ? `, wait-time: \`${waitTimeVal}\`` : '';
- const blockTimeVal = '${{ steps.args.outputs.block-time }}';
+ const blockTimeVal = process.env.INPUT_BLOCK_TIME;
const blockTimeNote = blockTimeVal ? `, block-time: \`${blockTimeVal}\`` : '';
- const baselineArgsVal = '${{ steps.args.outputs.baseline-args }}';
+ const baselineArgsVal = process.env.INPUT_BASELINE_ARGS;
const baselineArgsNote = baselineArgsVal ? `, baseline-args: \`${baselineArgsVal}\`` : '';
- const featureArgsVal = '${{ steps.args.outputs.feature-args }}';
+ const featureArgsVal = process.env.INPUT_FEATURE_ARGS;
const featureArgsNote = featureArgsVal ? `, feature-args: \`${featureArgsVal}\`` : '';
const blocksDesc = mode === 'call'
? `${blocks} corpus blocks, ${warmup}s warmup`
@@ -930,39 +963,74 @@ jobs:
- name: Poll queue position
if: steps.ack.outputs.comment-id && steps.ack.outputs.queue-position != '0'
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ INPUT_COMMENT_ID: ${{ steps.ack.outputs.comment-id }}
+ INPUT_QUEUE_POSITION: ${{ steps.ack.outputs.queue-position }}
+ INPUT_ACTOR: ${{ steps.args.outputs.actor }}
+ INPUT_BAL: ${{ steps.args.outputs.bal }}
+ INPUT_BASELINE_ARGS: ${{ steps.args.outputs.baseline-args }}
+ INPUT_BASELINE_NAME: ${{ steps.args.outputs.baseline-name }}
+ INPUT_BIG_BLOCKS: ${{ steps.args.outputs.big-blocks }}
+ INPUT_BLOCK_TIME: ${{ steps.args.outputs.block-time }}
+ INPUT_BLOCKS: ${{ steps.args.outputs.blocks }}
+ INPUT_CLASS: ${{ steps.args.outputs.class }}
+ INPUT_CONCURRENCY: ${{ steps.args.outputs.concurrency }}
+ INPUT_CORES: ${{ steps.args.outputs.cores }}
+ INPUT_CORPUS: ${{ steps.args.outputs.corpus }}
+ INPUT_DURATION: ${{ steps.args.outputs.duration }}
+ INPUT_FEATURE_ARGS: ${{ steps.args.outputs.feature-args }}
+ INPUT_FEATURE_NAME: ${{ steps.args.outputs.feature-name }}
+ INPUT_METHODS: ${{ steps.args.outputs.methods }}
+ INPUT_METRICS: ${{ steps.args.outputs.metrics }}
+ INPUT_MODE: ${{ steps.args.outputs.mode }}
+ INPUT_NAMESPACE: ${{ steps.args.outputs.namespace }}
+ INPUT_OTLP: ${{ steps.args.outputs.otlp }}
+ INPUT_PASSES: ${{ steps.args.outputs.passes }}
+ INPUT_PR: ${{ steps.args.outputs.pr }}
+ INPUT_REORG: ${{ steps.args.outputs.reorg }}
+ INPUT_RPS: ${{ steps.args.outputs.rps }}
+ INPUT_RUN_ORDER: ${{ steps.args.outputs.run-order }}
+ INPUT_RUN_PAIRS: ${{ steps.args.outputs.run-pairs }}
+ INPUT_SAMPLY: ${{ steps.args.outputs.samply }}
+ INPUT_SLACK: ${{ steps.args.outputs.slack }}
+ INPUT_TOP_GAS: ${{ steps.args.outputs.top-gas }}
+ INPUT_TRACER: ${{ steps.args.outputs.tracer }}
+ INPUT_TRACING_CHROME: ${{ steps.args.outputs.tracing-chrome }}
+ INPUT_WAIT_TIME: ${{ steps.args.outputs.wait-time }}
+ INPUT_WARMUP: ${{ steps.args.outputs.warmup }}
with:
github-token: ${{ secrets.DEREK_PAT }}
script: |
- const pr = '${{ steps.args.outputs.pr }}';
- const commentId = parseInt('${{ steps.ack.outputs.comment-id }}');
- const actor = '${{ steps.args.outputs.actor }}';
- const blocks = '${{ steps.args.outputs.blocks }}';
- const warmup = '${{ steps.args.outputs.warmup }}';
- const baseline = '${{ steps.args.outputs.baseline-name }}';
- const feature = '${{ steps.args.outputs.feature-name }}';
- const samply = '${{ steps.args.outputs.samply }}' === 'true';
- const tracingChrome = '${{ steps.args.outputs.tracing-chrome }}' === 'true';
- const slack = '${{ steps.args.outputs.slack }}' || 'always';
- const bigBlocks = '${{ steps.args.outputs.big-blocks }}' === 'true';
- const mode = '${{ steps.args.outputs.mode }}' || 'engine';
- const reorg = '${{ steps.args.outputs.reorg }}';
- const bal = '${{ steps.args.outputs.bal }}' || 'false';
+ const pr = process.env.INPUT_PR;
+ const commentId = parseInt(process.env.INPUT_COMMENT_ID);
+ const actor = process.env.INPUT_ACTOR;
+ const blocks = process.env.INPUT_BLOCKS;
+ const warmup = process.env.INPUT_WARMUP;
+ const baseline = process.env.INPUT_BASELINE_NAME;
+ const feature = process.env.INPUT_FEATURE_NAME;
+ const samply = process.env.INPUT_SAMPLY === 'true';
+ const tracingChrome = process.env.INPUT_TRACING_CHROME === 'true';
+ const slack = process.env.INPUT_SLACK || 'always';
+ const bigBlocks = process.env.INPUT_BIG_BLOCKS === 'true';
+ const mode = process.env.INPUT_MODE || 'engine';
+ const reorg = process.env.INPUT_REORG;
+ const bal = process.env.INPUT_BAL || 'false';
const samplyNote = samply ? ', samply: `enabled`' : '';
const tracingChromeNote = tracingChrome ? ', tracing-chrome: `enabled`' : '';
const slackNote = slack !== 'always' ? `, slack: \`${slack}\`` : '';
const reorgNote = reorg ? `, reorg: \`${reorg}\`` : '';
const balNote = bal !== 'false' ? `, BAL: \`${bal}\`` : '';
const modeNote = mode !== 'engine' ? `, mode: \`${mode}\`` : '';
- const corpus = '${{ steps.args.outputs.corpus }}';
- const callClass = '${{ steps.args.outputs.class }}';
- const callMethods = '${{ steps.args.outputs.methods }}';
- const callRps = '${{ steps.args.outputs.rps }}';
- const callDuration = '${{ steps.args.outputs.duration }}';
- const callPasses = '${{ steps.args.outputs.passes }}';
- const callConcurrency = '${{ steps.args.outputs.concurrency }}';
- const callTopGas = '${{ steps.args.outputs.top-gas }}';
- const callNamespace = '${{ steps.args.outputs.namespace }}';
- const callTracer = '${{ steps.args.outputs.tracer }}';
+ const corpus = process.env.INPUT_CORPUS;
+ const callClass = process.env.INPUT_CLASS;
+ const callMethods = process.env.INPUT_METHODS;
+ const callRps = process.env.INPUT_RPS;
+ const callDuration = process.env.INPUT_DURATION;
+ const callPasses = process.env.INPUT_PASSES;
+ const callConcurrency = process.env.INPUT_CONCURRENCY;
+ const callTopGas = process.env.INPUT_TOP_GAS;
+ const callNamespace = process.env.INPUT_NAMESPACE;
+ const callTracer = process.env.INPUT_TRACER;
const callExtras = [
callTopGas ? `top-gas: \`${callTopGas}\`` : '',
callNamespace ? `namespace: \`${callNamespace}\`` : '',
@@ -971,22 +1039,22 @@ jobs:
const callNote = mode === 'call'
? `, corpus: \`${corpus}\`, class: \`${callClass}\`, methods: \`${callMethods}\`, rps: \`${callRps}\`, duration: \`${callDuration}\`, passes: \`${callPasses}\`, concurrency: \`${callConcurrency}\`${callExtras}`
: '';
- const cores = '${{ steps.args.outputs.cores }}';
+ const cores = process.env.INPUT_CORES;
const coresNote = cores && cores !== '0' ? `, cores: \`${cores}\`` : '';
- const runPairs = '${{ steps.args.outputs.run-pairs }}' || '6';
- const runOrder = '${{ steps.args.outputs.run-order }}';
+ const runPairs = process.env.INPUT_RUN_PAIRS || '6';
+ const runOrder = process.env.INPUT_RUN_ORDER;
const runPairsNote = `, run-pairs: \`${runPairs}\`${runOrder ? ` (${runOrder})` : ''}`;
- const otlpEnabled = '${{ steps.args.outputs.otlp }}' !== 'false';
+ const otlpEnabled = process.env.INPUT_OTLP !== 'false';
const otlpNote = !otlpEnabled ? ', otlp: `disabled`' : '';
- const metricsEnabled = '${{ steps.args.outputs.metrics }}' === 'true';
+ const metricsEnabled = process.env.INPUT_METRICS === 'true';
const metricsNote = metricsEnabled ? ', metrics: `enabled`' : '';
- const waitTimeVal = '${{ steps.args.outputs.wait-time }}';
+ const waitTimeVal = process.env.INPUT_WAIT_TIME;
const waitTimeNote = waitTimeVal ? `, wait-time: \`${waitTimeVal}\`` : '';
- const blockTimeVal = '${{ steps.args.outputs.block-time }}';
+ const blockTimeVal = process.env.INPUT_BLOCK_TIME;
const blockTimeNote = blockTimeVal ? `, block-time: \`${blockTimeVal}\`` : '';
- const baselineArgsVal = '${{ steps.args.outputs.baseline-args }}';
+ const baselineArgsVal = process.env.INPUT_BASELINE_ARGS;
const baselineArgsNote = baselineArgsVal ? `, baseline-args: \`${baselineArgsVal}\`` : '';
- const featureArgsVal = '${{ steps.args.outputs.feature-args }}';
+ const featureArgsVal = process.env.INPUT_FEATURE_ARGS;
const featureArgsNote = featureArgsVal ? `, feature-args: \`${featureArgsVal}\`` : '';
const blocksDesc = mode === 'call'
? `${blocks} corpus blocks, ${warmup}s warmup`
@@ -1015,7 +1083,7 @@ jobs:
return { ahead: Math.max(0, totalAhead - numRunners + 1), numRunners };
}
- let lastPosition = parseInt('${{ steps.ack.outputs.queue-position }}');
+ let lastPosition = parseInt(process.env.INPUT_QUEUE_POSITION);
const sleep = ms => new Promise(r => setTimeout(r, ms));
while (true) {
@@ -1046,6 +1114,7 @@ jobs:
name: bench-txgen
runs-on: [self-hosted, Linux, X64, available]
permissions:
+ id-token: write
contents: read
pull-requests: write
timeout-minutes: 120
@@ -1101,17 +1170,21 @@ jobs:
BENCH_OTLP_LOGS_ENDPOINT: ${{ needs.bench-ack.outputs.otlp != 'false' && secrets.BENCH_OTLP_LOGS_ENDPOINT || '' }}
BENCH_VICTORIAMETRICS_URL: ${{ needs.bench-ack.outputs.metrics == 'true' && secrets.BENCH_VICTORIAMETRICS_URL || '' }}
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- name: Clean up previous bench-work
run: sudo rm -rf "$BENCH_WORK_DIR" 2>/dev/null || true
- name: Resolve checkout ref
id: checkout-ref
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ INPUT_REF: ${{ github.ref }}
with:
script: |
if (!process.env.BENCH_PR) {
core.setOutput('repository', '${{ github.repository }}');
- core.setOutput('ref', '${{ github.ref }}');
+ core.setOutput('ref', process.env.INPUT_REF);
return;
}
const sha = process.env.BENCH_PR_HEAD_SHA;
@@ -1134,6 +1207,9 @@ jobs:
- name: Initialize run summary and update status
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ INPUT_BASELINE_NAME: ${{ needs.bench-ack.outputs.baseline-name }}
+ INPUT_FEATURE_NAME: ${{ needs.bench-ack.outputs.feature-name }}
with:
github-token: ${{ secrets.DEREK_PAT }}
script: |
@@ -1151,8 +1227,8 @@ jobs:
const blocks = process.env.BENCH_BLOCKS;
const warmup = process.env.BENCH_WARMUP_BLOCKS;
- const baseline = '${{ needs.bench-ack.outputs.baseline-name }}';
- const feature = '${{ needs.bench-ack.outputs.feature-name }}';
+ const baseline = process.env.INPUT_BASELINE_NAME;
+ const feature = process.env.INPUT_FEATURE_NAME;
const samply = process.env.BENCH_SAMPLY === 'true';
const tracingChrome = process.env.BENCH_TRACING_CHROME === 'true';
const slack = process.env.BENCH_SLACK || 'always';
@@ -1226,11 +1302,13 @@ jobs:
});
}
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
- - uses: dtolnay/rust-toolchain@stable
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
+ with:
+ toolchain: stable
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
continue-on-error: true
- - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
+ - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
- name: Mask OTLP endpoints
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -1261,6 +1339,7 @@ jobs:
# apt packages
sudo apt-get update -qq
+ sudo apt-get install -y --no-install-recommends gh
sudo apt-get install -y --no-install-recommends \
python3 make jq zstd curl dmsetup m4 \
linux-tools-"$(uname -r)" || \
@@ -1309,7 +1388,7 @@ jobs:
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
missing=()
- for cmd in mc schelk cpupower taskset stdbuf python3 curl make uv pzstd jq llvm-config m4; do
+ for cmd in mc schelk cpupower taskset stdbuf python3 curl make uv pzstd jq llvm-config m4 gh; do
command -v "$cmd" &>/dev/null || missing+=("$cmd")
done
if [ ${#missing[@]} -gt 0 ]; then
@@ -1322,42 +1401,49 @@ jobs:
- name: Resolve PR head branch
id: pr-info
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ INPUT_REF_NAME: ${{ github.ref_name }}
with:
script: |
if (process.env.BENCH_PR) {
- const ref = process.env.BENCH_PR_HEAD_REF || '${{ github.ref_name }}';
+ const ref = process.env.BENCH_PR_HEAD_REF || process.env.INPUT_REF_NAME;
const sha = process.env.BENCH_PR_HEAD_SHA || '${{ github.sha }}';
core.setOutput('head-ref', ref);
core.setOutput('head-sha', sha);
} else {
- core.setOutput('head-ref', '${{ github.ref_name }}');
+ core.setOutput('head-ref', process.env.INPUT_REF_NAME);
core.setOutput('head-sha', '${{ github.sha }}');
}
- name: Resolve refs
id: refs
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ INPUT_BASELINE: ${{ needs.bench-ack.outputs.baseline }}
+ INPUT_FEATURE: ${{ needs.bench-ack.outputs.feature }}
+ INPUT_HEAD_REF: ${{ steps.pr-info.outputs.head-ref }}
+ INPUT_HEAD_SHA: ${{ steps.pr-info.outputs.head-sha }}
with:
script: |
- const { execSync } = require('child_process');
- const run = (cmd) => execSync(cmd, { encoding: 'utf8' }).trim();
+ const { execFileSync } = require('child_process');
+ const run = (...args) => execFileSync('git', args, { encoding: 'utf8' }).trim();
- const baselineArg = '${{ needs.bench-ack.outputs.baseline }}';
- const featureArg = '${{ needs.bench-ack.outputs.feature }}';
+ const baselineArg = process.env.INPUT_BASELINE;
+ const featureArg = process.env.INPUT_FEATURE;
let baselineRef, baselineName, featureRef, featureName;
if (baselineArg) {
- try { run(`git fetch origin "${baselineArg}" --quiet`); } catch {}
+ try { run('fetch', '--quiet', '--', 'origin', baselineArg); } catch {}
try {
- baselineRef = run(`git rev-parse "${baselineArg}"`);
+ baselineRef = run('rev-parse', '--verify', '--end-of-options', baselineArg);
} catch {
- baselineRef = run(`git rev-parse "origin/${baselineArg}"`);
+ baselineRef = run('rev-parse', '--verify', '--end-of-options', `origin/${baselineArg}`);
}
baselineName = baselineArg;
} else {
try {
- baselineRef = run('git merge-base HEAD origin/main');
+ baselineRef = run('merge-base', 'HEAD', 'origin/main');
} catch {
baselineRef = '${{ github.sha }}';
}
@@ -1365,16 +1451,16 @@ jobs:
}
if (featureArg) {
- try { run(`git fetch origin "${featureArg}" --quiet`); } catch {}
+ try { run('fetch', '--quiet', '--', 'origin', featureArg); } catch {}
try {
- featureRef = run(`git rev-parse "${featureArg}"`);
+ featureRef = run('rev-parse', '--verify', '--end-of-options', featureArg);
} catch {
- featureRef = run(`git rev-parse "origin/${featureArg}"`);
+ featureRef = run('rev-parse', '--verify', '--end-of-options', `origin/${featureArg}`);
}
featureName = featureArg;
} else {
- featureRef = '${{ steps.pr-info.outputs.head-sha }}';
- featureName = '${{ steps.pr-info.outputs.head-ref }}';
+ featureRef = process.env.INPUT_HEAD_SHA;
+ featureName = process.env.INPUT_HEAD_REF;
}
core.setOutput('baseline-ref', baselineRef);
@@ -1383,6 +1469,9 @@ jobs:
core.setOutput('feature-name', featureName);
- name: Prepare source dirs
+ env:
+ INPUT_BASELINE_REF: ${{ steps.refs.outputs.baseline-ref }}
+ INPUT_FEATURE_REF: ${{ steps.refs.outputs.feature-ref }}
run: |
prepare_source_dir() {
local dir="$1"
@@ -1399,15 +1488,17 @@ jobs:
git -C "$dir" checkout --force "$ref"
}
- BASELINE_REF="${{ steps.refs.outputs.baseline-ref }}"
+ BASELINE_REF="${INPUT_BASELINE_REF}"
prepare_source_dir ../reth-baseline "$BASELINE_REF"
- FEATURE_REF="${{ steps.refs.outputs.feature-ref }}"
+ FEATURE_REF="${INPUT_FEATURE_REF}"
prepare_source_dir ../reth-feature "$FEATURE_REF"
- name: Build binaries
id: build
env:
+ INPUT_BASELINE_REF: ${{ steps.refs.outputs.baseline-ref }}
+ INPUT_FEATURE_REF: ${{ steps.refs.outputs.feature-ref }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TXGEN_DEPLOY_KEY: ${{ secrets.TXGEN_DEPLOY_KEY }}
TXGEN_TOKEN: ${{ secrets.TXGEN_TOKEN }}
@@ -1422,9 +1513,9 @@ jobs:
.github/scripts/bench-txgen-install.sh
- .github/scripts/bench-txgen-build.sh baseline "${BASELINE_DIR}" "${{ steps.refs.outputs.baseline-ref }}" &
+ .github/scripts/bench-txgen-build.sh baseline "${BASELINE_DIR}" "${INPUT_BASELINE_REF}" &
PID_BASELINE=$!
- .github/scripts/bench-txgen-build.sh feature "${FEATURE_DIR}" "${{ steps.refs.outputs.feature-ref }}" &
+ .github/scripts/bench-txgen-build.sh feature "${FEATURE_DIR}" "${INPUT_FEATURE_REF}" &
PID_FEATURE=$!
FAIL=0
@@ -1519,6 +1610,9 @@ jobs:
mkdir -p "$BENCH_WORK_DIR"
- name: Initialize benchmark metrics labels
+ env:
+ INPUT_BASELINE_NAME: ${{ needs.bench-ack.outputs.baseline-name }}
+ INPUT_FEATURE_NAME: ${{ needs.bench-ack.outputs.feature-name }}
run: |
if [ -n "${BENCH_VICTORIAMETRICS_URL:-}" ]; then
echo "::add-mask::$BENCH_VICTORIAMETRICS_URL"
@@ -1540,8 +1634,8 @@ jobs:
derek_cmd+=(
blocks="$BENCH_BLOCKS"
warmup="$BENCH_WARMUP_BLOCKS"
- baseline="${{ needs.bench-ack.outputs.baseline-name }}"
- feature="${{ needs.bench-ack.outputs.feature-name }}"
+ baseline="${INPUT_BASELINE_NAME}"
+ feature="${INPUT_FEATURE_NAME}"
bal="$BENCH_BAL"
cores="$BENCH_CORES"
run-pairs="$BENCH_RUN_PAIRS"
@@ -1751,11 +1845,13 @@ jobs:
)"
LOGS_URL="$(printf '%s\n' "$OBSERVABILITY_URLS" | sed -n '1p')"
TRACES_URL="$(printf '%s\n' "$OBSERVABILITY_URLS" | sed -n '2p')"
- echo "grafana-url=${GRAFANA_URL}" >> "$GITHUB_OUTPUT"
- echo "logs-url=${LOGS_URL}" >> "$GITHUB_OUTPUT"
- echo "traces-url=${TRACES_URL}" >> "$GITHUB_OUTPUT"
- echo "observability-from-ms=${FROM_MS}" >> "$GITHUB_OUTPUT"
- echo "observability-to-ms=${TO_MS}" >> "$GITHUB_OUTPUT"
+ {
+ echo "grafana-url=${GRAFANA_URL}"
+ echo "logs-url=${LOGS_URL}"
+ echo "traces-url=${TRACES_URL}"
+ echo "observability-from-ms=${FROM_MS}"
+ echo "observability-to-ms=${TO_MS}"
+ } >> "$GITHUB_OUTPUT"
echo "Grafana URL: ${GRAFANA_URL}"
echo "Logs URL: ${LOGS_URL}"
echo "Traces URL: ${TRACES_URL}"
@@ -1780,14 +1876,18 @@ jobs:
fi
printf '%s: %d panic(s), %d error(s)
\n\n' "$run_dir" "$panics" "$errors" >> "$ERRORS_FILE"
if [ "$panics" -gt 0 ]; then
- printf '**Panics:**\n```\n' >> "$ERRORS_FILE"
- grep -E 'panicked at' "$LOG" | head -10 >> "$ERRORS_FILE"
- printf '```\n' >> "$ERRORS_FILE"
+ {
+ printf '**Panics:**\n```\n'
+ grep -E 'panicked at' "$LOG" | head -10
+ printf '```\n'
+ } >> "$ERRORS_FILE"
fi
if [ "$errors" -gt 0 ]; then
- printf '**Errors (first 20):**\n```\n' >> "$ERRORS_FILE"
- grep ' ERROR ' "$LOG" | head -20 >> "$ERRORS_FILE"
- printf '```\n' >> "$ERRORS_FILE"
+ {
+ printf '**Errors (first 20):**\n```\n'
+ grep ' ERROR ' "$LOG" | head -20
+ printf '```\n'
+ } >> "$ERRORS_FILE"
fi
printf '\n \n\n' >> "$ERRORS_FILE"
fi
@@ -1855,6 +1955,11 @@ jobs:
id: results
if: success()
env:
+ INPUT_GRAFANA_URL: ${{ steps.metrics.outputs.grafana-url }}
+ INPUT_LOGS_URL: ${{ steps.metrics.outputs.logs-url }}
+ INPUT_OBSERVABILITY_FROM_MS: ${{ steps.metrics.outputs.observability-from-ms }}
+ INPUT_OBSERVABILITY_TO_MS: ${{ steps.metrics.outputs.observability-to-ms }}
+ INPUT_TRACES_URL: ${{ steps.metrics.outputs.traces-url }}
BASELINE_REF: ${{ steps.refs.outputs.baseline-ref }}
BASELINE_NAME: ${{ steps.refs.outputs.baseline-name }}
FEATURE_NAME: ${{ steps.refs.outputs.feature-name }}
@@ -1897,11 +2002,11 @@ jobs:
if [ -n "${BENCH_ID:-}" ]; then
CALL_ARGS="$CALL_ARGS --benchmark-id $BENCH_ID"
fi
- LOGS_URL='${{ steps.metrics.outputs.logs-url }}'
+ LOGS_URL="${INPUT_LOGS_URL}"
if [ -n "$LOGS_URL" ]; then
CALL_ARGS="$CALL_ARGS --logs-url $LOGS_URL"
fi
- TRACES_URL='${{ steps.metrics.outputs.traces-url }}'
+ TRACES_URL="${INPUT_TRACES_URL}"
if [ -n "$TRACES_URL" ]; then
CALL_ARGS="$CALL_ARGS --traces-url $TRACES_URL"
fi
@@ -1948,20 +2053,20 @@ jobs:
if [ -n "${BENCH_ID:-}" ]; then
SUMMARY_ARGS="$SUMMARY_ARGS --benchmark-id $BENCH_ID"
fi
- GRAFANA_URL='${{ steps.metrics.outputs.grafana-url }}'
+ GRAFANA_URL="${INPUT_GRAFANA_URL}"
if [ "${BENCH_METRICS:-false}" = "true" ] && [ -n "$GRAFANA_URL" ]; then
SUMMARY_ARGS="$SUMMARY_ARGS --grafana-url $GRAFANA_URL"
fi
- LOGS_URL='${{ steps.metrics.outputs.logs-url }}'
+ LOGS_URL="${INPUT_LOGS_URL}"
if [ -n "$LOGS_URL" ]; then
SUMMARY_ARGS="$SUMMARY_ARGS --logs-url $LOGS_URL"
fi
- TRACES_URL='${{ steps.metrics.outputs.traces-url }}'
+ TRACES_URL="${INPUT_TRACES_URL}"
if [ -n "$TRACES_URL" ]; then
SUMMARY_ARGS="$SUMMARY_ARGS --traces-url $TRACES_URL"
fi
- OBSERVABILITY_FROM_MS='${{ steps.metrics.outputs.observability-from-ms }}'
- OBSERVABILITY_TO_MS='${{ steps.metrics.outputs.observability-to-ms }}'
+ OBSERVABILITY_FROM_MS="${INPUT_OBSERVABILITY_FROM_MS}"
+ OBSERVABILITY_TO_MS="${INPUT_OBSERVABILITY_TO_MS}"
if [ -n "$OBSERVABILITY_FROM_MS" ] && [ -n "$OBSERVABILITY_TO_MS" ]; then
SUMMARY_ARGS="$SUMMARY_ARGS --observability-from-ms $OBSERVABILITY_FROM_MS"
SUMMARY_ARGS="$SUMMARY_ARGS --observability-to-ms $OBSERVABILITY_TO_MS"
@@ -1993,7 +2098,15 @@ jobs:
# shellcheck disable=SC2086
uv run --with matplotlib python3 .github/scripts/bench-reth-charts.py $CHART_ARGS
+ - name: Upload chart attachments
+ id: upload-charts
+ if: success() && env.BENCH_EXECUTION_MODE != 'call'
+ env:
+ GH_TOKEN: ${{ secrets.DEREK_PAT }}
+ run: bash .github/scripts/bench-upload-charts.sh "$GITHUB_REPOSITORY" "$BENCH_WORK_DIR/charts" > "$BENCH_WORK_DIR/charts.md"
+
- name: Upload results
+ id: upload-results
if: "!cancelled()"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
@@ -2005,106 +2118,11 @@ jobs:
!${{ env.BENCH_WORK_DIR }}/txgen-payloads/corpus.jsonl
!${{ env.BENCH_WORK_DIR }}/txgen-payloads/corpus.jsonl.gz
- - name: Push benchmark artifacts
- id: push-charts
- if: success()
- env:
- DEREK_TOKEN: ${{ secrets.DEREK_TOKEN }}
- RUN_ID: ${{ github.run_id }}
- run: |
- PR_NUMBER="${BENCH_PR:-0}"
- CHART_DIR="pr/${PR_NUMBER}/${RUN_ID}"
- CHARTS_REPO="https://x-access-token:${DEREK_TOKEN}@github.com/decofe/reth-bench-charts.git"
-
- TMP_DIR=""
- prepare_artifacts() {
- if [ -n "${TMP_DIR}" ]; then
- rm -rf "${TMP_DIR}"
- fi
-
- TMP_DIR=$(mktemp -d)
- if git clone --depth 1 --filter=blob:none --sparse "${CHARTS_REPO}" "${TMP_DIR}" 2>/dev/null; then
- git -C "${TMP_DIR}" sparse-checkout set --no-cone "${CHART_DIR}"
- true
- else
- git init "${TMP_DIR}"
- git -C "${TMP_DIR}" remote add origin "${CHARTS_REPO}"
- fi
- .github/scripts/configure-git-token-user.sh "${TMP_DIR}" "${DEREK_TOKEN}"
-
- mkdir -p "${TMP_DIR}/${CHART_DIR}"
- if compgen -G "$BENCH_WORK_DIR/charts/*.png" > /dev/null; then
- cp "$BENCH_WORK_DIR"/charts/*.png "${TMP_DIR}/${CHART_DIR}/"
- fi
- if [ "${BENCH_TRACING_CHROME:-false}" = "true" ]; then
- TRACE_DIR="${CHART_DIR}/tracing-chrome"
- mkdir -p "${TMP_DIR}/${TRACE_DIR}"
- mapfile -t RUN_DIRS < <(find "$BENCH_WORK_DIR" -mindepth 1 -maxdepth 1 -type d \( -name 'baseline-*' -o -name 'feature-*' \) -printf '%f\n' | sort -V)
- for run_dir in "${RUN_DIRS[@]}"; do
- TRACE="$BENCH_WORK_DIR/$run_dir/tracing-chrome-profile.json"
- if [ ! -f "$TRACE" ]; then continue; fi
-
- TRACE_SIZE=$(du -h "$TRACE" | cut -f1)
- echo "Adding $run_dir Chrome trace (${TRACE_SIZE}) to benchmark artifacts..."
- gzip -c "$TRACE" > "${TMP_DIR}/${TRACE_DIR}/${run_dir}.json.gz"
- done
- fi
- git -C "${TMP_DIR}" add "${CHART_DIR}"
- }
-
- prepare_artifacts
- if git -C "${TMP_DIR}" diff --cached --quiet; then
- echo "Artifacts for ${CHART_DIR} are already present, skipping push"
- PUSH_SHA="$(git -C "${TMP_DIR}" rev-parse HEAD)"
- else
- for attempt in 1 2 3 4 5; do
- git -C "${TMP_DIR}" commit -m "bench artifacts for PR #${PR_NUMBER} run ${RUN_ID}"
- if git -C "${TMP_DIR}" push origin HEAD:main; then
- break
- fi
- if [ "$attempt" -eq 5 ]; then
- echo "::error::Failed to push benchmark artifacts after ${attempt} attempts"
- rm -rf "${TMP_DIR}"
- exit 1
- fi
- sleep "$attempt"
- prepare_artifacts
- done
-
- PUSH_SHA="$(git -C "${TMP_DIR}" rev-parse HEAD)"
- fi
-
- if [ "${BENCH_TRACING_CHROME:-false}" = "true" ]; then
- RAW_BASE="https://raw.githubusercontent.com/decofe/reth-bench-charts/${PUSH_SHA}/${CHART_DIR}/tracing-chrome"
- mapfile -t RUN_DIRS < <(find "$BENCH_WORK_DIR" -mindepth 1 -maxdepth 1 -type d \( -name 'baseline-*' -o -name 'feature-*' \) -printf '%f\n' | sort -V)
- for run_dir in "${RUN_DIRS[@]}"; do
- if [ ! -f "${TMP_DIR}/${CHART_DIR}/tracing-chrome/${run_dir}.json.gz" ]; then continue; fi
-
- RAW_URL="${RAW_BASE}/${run_dir}.json.gz"
- PERFETTO_URL="$(python3 - "$RAW_URL" "${run_dir}.json.gz" <<'PY'
- import sys
- from urllib.parse import quote
-
- raw_url, file_name = sys.argv[1:3]
- print(
- "https://ui.perfetto.dev/#!/?url="
- + quote(raw_url, safe="")
- + "&fileName="
- + quote(file_name, safe="")
- )
- PY
- )"
- echo "$PERFETTO_URL" > "$BENCH_WORK_DIR/$run_dir/tracing-chrome-profile-url.txt"
- echo "Perfetto URL for $run_dir: $PERFETTO_URL"
- done
- fi
-
- echo "sha=${PUSH_SHA}" >> "$GITHUB_OUTPUT"
- rm -rf "${TMP_DIR}"
-
- name: Compare & comment
if: success() && env.BENCH_COMMENT_ID
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ BENCH_RESULTS_URL: ${{ steps.upload-results.outputs.artifact-url }}
with:
github-token: ${{ secrets.DEREK_PAT }}
script: |
@@ -2117,25 +2135,8 @@ jobs:
comment = '⚠️ Benchmark completed but failed to generate comparison.';
}
- const sha = '${{ steps.push-charts.outputs.sha }}';
- const prNumber = process.env.BENCH_PR || '0';
- const runId = '${{ github.run_id }}';
-
- // Call mode does not generate charts, so never link them.
- if (sha && process.env.BENCH_EXECUTION_MODE !== 'call') {
- const baseUrl = `https://raw.githubusercontent.com/decofe/reth-bench-charts/${sha}/pr/${prNumber}/${runId}`;
- const charts = [
- { file: 'latency_throughput.png', label: 'Latency, Throughput & Diff' },
- { file: 'wait_breakdown.png', label: 'Wait Time Breakdown' },
- { file: 'gas_vs_latency.png', label: 'Gas vs Latency' },
- ];
- let chartMarkdown = '\n\n### Charts\n\n';
- for (const chart of charts) {
- chartMarkdown += `${chart.label}
\n\n`;
- chartMarkdown += `\n\n`;
- chartMarkdown += ` \n\n`;
- }
- comment += chartMarkdown;
+ if (process.env.BENCH_EXECUTION_MODE !== 'call') {
+ comment += fs.readFileSync(process.env.BENCH_WORK_DIR + '/charts.md', 'utf8');
}
// Samply profile links (URLs point directly to Firefox Profiler)
@@ -2152,15 +2153,7 @@ jobs:
}
if (process.env.BENCH_TRACING_CHROME === 'true') {
- const { loadTracingChromeUrls } = require('./.github/scripts/bench-utils');
- const tracingChromeUrls = loadTracingChromeUrls(process.env.BENCH_WORK_DIR);
- const links = [];
- for (const [run, url] of Object.entries(tracingChromeUrls)) {
- links.push(`- **${run}**: [Perfetto](${url})`);
- }
- if (links.length > 0) {
- comment += `\n\n### Chrome Traces\n\n${links.join('\n')}\n`;
- }
+ comment += `\n\n### Chrome Traces\n\n[Download bench-results](${process.env.BENCH_RESULTS_URL}), extract the archive, and open each run's \`tracing-chrome-profile.json\` in [Perfetto](https://ui.perfetto.dev/). GitHub sign-in is required; downloads are available until the artifact expires.\n`;
}
// Node errors (panics / ERROR logs)
@@ -2187,15 +2180,18 @@ jobs:
- name: Write job summary
if: success()
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ env:
+ INPUT_LOGS_URL: ${{ steps.metrics.outputs.logs-url }}
+ INPUT_TRACES_URL: ${{ steps.metrics.outputs.traces-url }}
+ BENCH_RESULTS_URL: ${{ steps.upload-results.outputs.artifact-url }}
with:
script: |
const jobSummary = require('./.github/scripts/bench-job-summary.js');
await jobSummary({
core,
context,
- chartSha: '${{ steps.push-charts.outputs.sha }}',
- logsUrl: '${{ steps.metrics.outputs.logs-url }}',
- tracesUrl: '${{ steps.metrics.outputs.traces-url }}',
+ logsUrl: process.env.INPUT_LOGS_URL,
+ tracesUrl: process.env.INPUT_TRACES_URL,
runId: '${{ github.run_id }}',
});
@@ -2203,6 +2199,7 @@ jobs:
if: success() && (env.BENCH_SLACK == 'always' || env.BENCH_SLACK == 'on-win')
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
+ BENCH_RESULTS_URL: ${{ steps.upload-results.outputs.artifact-url }}
SLACK_BENCH_BOT_TOKEN: ${{ secrets.SLACK_BENCH_BOT_TOKEN }}
SLACK_BENCH_CHANNEL: ${{ secrets.SLACK_BENCH_CHANNEL }}
with:
@@ -2283,10 +2280,10 @@ jobs:
run: |
# Restore frequency scaling to full range
for f in /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq; do
- cat "$(dirname "$f")/cpuinfo_min_freq" | sudo tee "$f" > /dev/null 2>&1 || true
+ printf '%s\n' "$(< "$(dirname "$f")/cpuinfo_min_freq")" | sudo tee "$f" > /dev/null 2>&1 || true
done
for f in /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq; do
- cat "$(dirname "$f")/cpuinfo_max_freq" | sudo tee "$f" > /dev/null 2>&1 || true
+ printf '%s\n' "$(< "$(dirname "$f")/cpuinfo_max_freq")" | sudo tee "$f" > /dev/null 2>&1 || true
done
# Restore amd-pstate to active (EPP) mode with powersave governor
echo active | sudo tee /sys/devices/system/cpu/amd_pstate/status 2>/dev/null || true
diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml
index 7f71b63d156..a7d070a7a3a 100644
--- a/.github/workflows/book.yml
+++ b/.github/workflows/book.yml
@@ -16,12 +16,17 @@ jobs:
build:
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-8' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 90
env:
+ # Include the system trust store containing Aegis's CA for Bun and Node.
+ NODE_EXTRA_CA_CERTS: /etc/ssl/certs/ca-certificates.crt
# Read by build-cargo-docs.sh, which `bun run build` also invokes.
RUST_NIGHTLY: nightly-2026-07-14
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
@@ -39,10 +44,10 @@ jobs:
run: |
cd docs/vocs/
bun i
- npx playwright install --with-deps chromium
+ npx playwright@1.64.1 install --with-deps chromium
- name: Install Rust nightly
- uses: dtolnay/rust-toolchain@nightly
+ uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: ${{ env.RUST_NIGHTLY }}
diff --git a/.github/workflows/check-alloy.yml b/.github/workflows/check-alloy.yml
index 93df79f1dbb..3f15cf387d1 100644
--- a/.github/workflows/check-alloy.yml
+++ b/.github/workflows/check-alloy.yml
@@ -29,17 +29,22 @@ jobs:
name: Check compilation with patched alloy
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-16' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 60
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
+ with:
+ toolchain: stable
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
@@ -51,23 +56,23 @@ jobs:
ALLOY_EVM_BRANCH: ${{ inputs.alloy_evm_branch }}
OP_ALLOY_BRANCH: ${{ inputs.op_alloy_branch }}
run: |
- ARGS=""
+ ARGS=()
if [ -n "$ALLOY_BRANCH" ]; then
- ARGS="$ARGS --alloy $ALLOY_BRANCH"
+ ARGS+=(--alloy "$ALLOY_BRANCH")
fi
if [ -n "$ALLOY_EVM_BRANCH" ]; then
- ARGS="$ARGS --evm $ALLOY_EVM_BRANCH"
+ ARGS+=(--evm "$ALLOY_EVM_BRANCH")
fi
if [ -n "$OP_ALLOY_BRANCH" ]; then
- ARGS="$ARGS --op $OP_ALLOY_BRANCH"
+ ARGS+=(--op "$OP_ALLOY_BRANCH")
fi
- if [ -z "$ARGS" ]; then
+ if [ "${#ARGS[@]}" -eq 0 ]; then
echo "No branches specified, nothing to patch"
exit 1
fi
- ./scripts/patch-alloy.sh $ARGS
+ ./scripts/patch-alloy.sh "${ARGS[@]}"
echo "=== Final patch section ==="
tail -50 Cargo.toml
diff --git a/.github/workflows/compact.yml b/.github/workflows/compact.yml
index 86e2fb8d9a2..fc6beaf006d 100644
--- a/.github/workflows/compact.yml
+++ b/.github/workflows/compact.yml
@@ -22,19 +22,22 @@ jobs:
compact-codec:
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
strategy:
matrix:
bin:
- cargo run --bin reth --features "dev"
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- name: Checkout PR
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
diff --git a/.github/workflows/cyclops-audit.yml b/.github/workflows/cyclops-audit.yml
index d4e3eaef337..d468bfaba3d 100644
--- a/.github/workflows/cyclops-audit.yml
+++ b/.github/workflows/cyclops-audit.yml
@@ -48,306 +48,25 @@ jobs:
github.event.issue.pull_request &&
(
startsWith(github.event.comment.body, 'cyclops audit') ||
+ startsWith(github.event.comment.body, 'cyclops private audit') ||
startsWith(github.event.comment.body, '@decofe cyclops audit') ||
+ startsWith(github.event.comment.body, '@decofe cyclops private audit') ||
startsWith(github.event.comment.body, 'derek audit')
)
runs-on: ubuntu-latest
permissions:
+ contents: read
issues: write
pull-requests: write
steps:
- - name: Check commenter permission
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
+ - name: Handle audit command
+ uses: tempoxyz/gh-actions/actions/pr-audit-comment@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
+ command-regex: '^(?:@decofe\s+)?(?:cyclops\s+(?:private\s+)?audit|derek\s+audit)\b'
+ permission-check-mode: association
+ allowed-associations: OWNER,MEMBER,COLLABORATOR
+ organization: paradigmxyz
+ events-key: ${{ secrets.EVENTS_KEY }}
+ events-cert: ${{ secrets.EVENTS_CERT }}
+ events-args: ${{ secrets.EVENTS_ARGS }}
github-token: ${{ github.token }}
- script: |
- const allowed = new Set(['OWNER', 'MEMBER', 'COLLABORATOR']);
- const commenterAssociation = context.payload.comment.author_association;
- if (!allowed.has(commenterAssociation)) {
- core.setFailed(`@${context.payload.comment.user.login} is not allowed to trigger Cyclops audits (${commenterAssociation})`);
- return;
- }
-
- const trustedPermissions = new Set(['admin', 'maintain', 'write']);
- const { data: pr } = await github.rest.pulls.get({
- owner: context.repo.owner,
- repo: context.repo.repo,
- pull_number: context.issue.number,
- });
- if (!allowed.has(pr.author_association)) {
- const { data: authorPermission } = await github.rest.repos.getCollaboratorPermissionLevel({
- owner: context.repo.owner,
- repo: context.repo.repo,
- username: pr.user.login,
- });
- if (!trustedPermissions.has(authorPermission.permission)) {
- core.setFailed(`PR author @${pr.user.login} is not allowed to trigger Cyclops audits (${pr.author_association}, ${authorPermission.permission})`);
- return;
- }
- }
-
- - name: Parse arguments
- id: args
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- with:
- github-token: ${{ github.token }}
- script: |
- const usage = [
- '**Usage:** `cyclops audit [fast] [perf] [iterations=N] [hours=N] [config=pr-review.yaml] ',
- '[models="anthropic/claude-opus-4-7,openai/gpt-5.5"] [run-label=LABEL] ',
- '[dry-run] [note="per-run audit guidance"]`',
- ].join('');
- const body = context.payload.comment.body.trim();
- const prefix = /^(?:@decofe\s+)?(?:cyclops\s+audit|derek\s+audit)\b/i;
- const args = body.replace(prefix, '').trim();
- const parts = [];
- const argRegex = /(\S+?[=:]"[^"]*"|\S+?[=:]'[^']*'|\S+?[=:]\S+|\S+)/g;
- let match;
- while ((match = argRegex.exec(args)) !== null) parts.push(match[1]);
-
- const defaults = {
- config: '',
- iterations: '',
- hours: '',
- models: '',
- 'run-label': '',
- 'dry-run': 'false',
- perf: 'false',
- note: '',
- };
- const intArgs = new Set(['iterations', 'hours']);
- const stringArgs = new Set(['config', 'models', 'run-label', 'note']);
- const boolArgs = new Set(['dry-run', 'perf']);
- const unknown = [];
- const invalid = [];
-
- for (const part of parts) {
- if (part === 'fast') {
- defaults.iterations = '1';
- continue;
- }
-
- const eq = part.indexOf('=');
- const colon = part.indexOf(':');
- const sep = eq === -1 ? colon : colon === -1 ? eq : Math.min(eq, colon);
- if (sep === -1) {
- if (boolArgs.has(part)) {
- defaults[part] = 'true';
- } else {
- unknown.push(part);
- }
- continue;
- }
-
- const key = part.slice(0, sep);
- let value = part.slice(sep + 1);
- if ((value.startsWith('"') && value.endsWith('"')) || (value.startsWith("'") && value.endsWith("'"))) {
- value = value.slice(1, -1);
- }
-
- if (intArgs.has(key)) {
- if (!/^[1-9]\d*$/.test(value)) {
- invalid.push(`\`${key}=${value}\` (must be a positive integer)`);
- } else {
- defaults[key] = value;
- }
- } else if (boolArgs.has(key)) {
- if (value === 'true' || value === 'false') {
- defaults[key] = value;
- } else {
- invalid.push(`\`${key}=${value}\` (must be true or false)`);
- }
- } else if (stringArgs.has(key)) {
- if (!value) {
- invalid.push(`\`${key}=\` (must not be empty)`);
- } else {
- defaults[key] = value;
- }
- } else {
- unknown.push(key);
- }
- }
-
- const errors = [];
- if (unknown.length) errors.push(`Unknown argument(s): \`${unknown.join('`, `')}\``);
- if (invalid.length) errors.push(`Invalid value(s): ${invalid.join(', ')}`);
- if (errors.length) {
- const msg = `Invalid cyclops audit command\n\n${errors.join('\n')}\n\n${usage}`;
- await github.rest.issues.createComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: context.issue.number,
- body: msg,
- });
- core.setFailed(msg);
- return;
- }
-
- const { data: pr } = await github.rest.pulls.get({
- owner: context.repo.owner,
- repo: context.repo.repo,
- pull_number: context.issue.number,
- });
-
- const data = {
- pr_number: context.issue.number,
- sha: pr.head.sha,
- source: 'comment',
- actor: context.payload.comment.user.login,
- comment_id: context.payload.comment.id,
- dry_run: defaults['dry-run'] === 'true',
- };
- if (defaults.config) data.config = defaults.config;
- if (defaults.iterations) data.max_iterations = Number(defaults.iterations);
- if (defaults.hours) data.max_hours = Number(defaults.hours);
- if (defaults.models) data.models = defaults.models;
- if (defaults['run-label']) data.run_label = defaults['run-label'];
- if (defaults.note) data.audit_note_b64 = Buffer.from(defaults.note, 'utf8').toString('base64');
- if (defaults.perf === 'true') data.perf = true;
-
- const payload = {
- repository: `${context.repo.owner}/${context.repo.repo}`,
- event: 'pr_audit',
- data,
- };
-
- const summaryParts = [
- defaults.config ? `config: \`${defaults.config}\`` : 'config: `default`',
- defaults.iterations ? `iterations: \`${defaults.iterations}\`` : 'iterations: `default`',
- defaults.hours ? `hours: \`${defaults.hours}\`` : 'hours: `default`',
- ];
- if (defaults.models) summaryParts.push(`models: \`${defaults.models}\``);
- if (defaults['run-label']) summaryParts.push(`run-label: \`${defaults['run-label']}\``);
- if (defaults['dry-run'] === 'true') summaryParts.push('dry-run: `true`');
- if (defaults.perf === 'true') summaryParts.push('perf: `true`');
- if (defaults.note) {
- const note = defaults.note.replace(/`/g, "'").slice(0, 160);
- summaryParts.push(`note: \`${note}${defaults.note.length > 160 ? '...' : ''}\``);
- }
-
- core.setOutput('actor', context.payload.comment.user.login);
- core.setOutput('payload-b64', Buffer.from(JSON.stringify(payload), 'utf8').toString('base64'));
- core.setOutput('summary', `**Config:** ${summaryParts.join(', ')}`);
-
- - name: Check publisher configuration
- id: publisher-config
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- env:
- ACTOR: ${{ steps.args.outputs.actor }}
- HAS_EVENTS_ARGS: ${{ secrets.EVENTS_ARGS != '' }}
- HAS_EVENTS_KEY: ${{ secrets.EVENTS_KEY != '' }}
- HAS_EVENTS_CERT: ${{ secrets.EVENTS_CERT != '' }}
- with:
- github-token: ${{ github.token }}
- script: |
- const required = {
- EVENTS_ARGS: process.env.HAS_EVENTS_ARGS,
- EVENTS_KEY: process.env.HAS_EVENTS_KEY,
- EVENTS_CERT: process.env.HAS_EVENTS_CERT,
- };
- const missing = Object.entries(required).filter(([, present]) => present !== 'true').map(([name]) => name);
- if (!missing.length) return;
-
- const msg = `Cyclops audit is not configured: missing ${missing.map((name) => `\`${name}\``).join(', ')} secret${missing.length === 1 ? '' : 's'}.`;
- try {
- await github.rest.issues.createComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: context.issue.number,
- body: `cc @${process.env.ACTOR}\n\n${msg}`,
- });
- } catch (error) {
- core.warning(`Could not create configuration failure comment: ${error.message}`);
- }
- core.setFailed(msg);
-
- - name: Acknowledge request
- id: ack
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- env:
- ACTOR: ${{ steps.args.outputs.actor }}
- SUMMARY: ${{ steps.args.outputs.summary }}
- with:
- github-token: ${{ github.token }}
- script: |
- try {
- await github.rest.reactions.createForIssueComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- comment_id: context.payload.comment.id,
- content: 'eyes',
- });
- } catch (error) {
- core.warning(`Could not add acknowledgement reaction: ${error.message}`);
- }
-
- const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
- try {
- const { data: comment } = await github.rest.issues.createComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: context.issue.number,
- body: `cc @${process.env.ACTOR}\n\nCyclops audit event queued. [View workflow run](${runUrl})\n\n${process.env.SUMMARY}`,
- });
- core.setOutput('comment-id', String(comment.id));
- } catch (error) {
- core.warning(`Could not create acknowledgement comment: ${error.message}`);
- core.setOutput('comment-id', '');
- }
-
- - name: Publish event
- id: publish
- continue-on-error: true
- env:
- PAYLOAD_B64: ${{ steps.args.outputs.payload-b64 }}
- HAS_EVENTS_ARGS: ${{ secrets.EVENTS_ARGS != '' }}
- HAS_EVENTS_KEY: ${{ secrets.EVENTS_KEY != '' }}
- HAS_EVENTS_CERT: ${{ secrets.EVENTS_CERT != '' }}
- run: |
- set -euo pipefail
-
- [[ "$HAS_EVENTS_ARGS" == "true" ]] || { echo "::error::Missing EVENTS_ARGS secret"; exit 1; }
- [[ "$HAS_EVENTS_KEY" == "true" ]] || { echo "::error::Missing EVENTS_KEY secret"; exit 1; }
- [[ "$HAS_EVENTS_CERT" == "true" ]] || { echo "::error::Missing EVENTS_CERT secret"; exit 1; }
-
- printf '%s' '${{ secrets.EVENTS_KEY }}' > "${RUNNER_TEMP}/key"
- printf '%s' '${{ secrets.EVENTS_CERT }}' > "${RUNNER_TEMP}/cert"
- printf '%s' "$PAYLOAD_B64" | base64 --decode > "${RUNNER_TEMP}/pr-audit-event.json"
-
- # EVENTS_ARGS may contain additional curl arguments, not just a URL.
- curl -sf -o /dev/null -X POST ${{ secrets.EVENTS_ARGS }} \
- -H "Content-Type: application/json" \
- --key "${RUNNER_TEMP}/key" \
- --cert "${RUNNER_TEMP}/cert" \
- -d @"${RUNNER_TEMP}/pr-audit-event.json"
-
- - name: Update status
- if: ${{ always() && steps.args.outcome == 'success' && steps.publisher-config.outcome == 'success' }}
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- env:
- COMMENT_ID: ${{ steps.ack.outputs['comment-id'] }}
- PUBLISH_OUTCOME: ${{ steps.publish.outcome }}
- ACTOR: ${{ steps.args.outputs.actor }}
- SUMMARY: ${{ steps.args.outputs.summary }}
- with:
- github-token: ${{ github.token }}
- script: |
- const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
- const success = process.env.PUBLISH_OUTCOME === 'success';
- const body = success
- ? `cc @${process.env.ACTOR}\n\nCyclops audit event published. [View workflow run](${runUrl})\n\n${process.env.SUMMARY}`
- : `cc @${process.env.ACTOR}\n\nCyclops audit event failed to publish. [View workflow run](${runUrl})\n\n${process.env.SUMMARY}`;
-
- if (process.env.COMMENT_ID) {
- try {
- await github.rest.issues.updateComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- comment_id: Number(process.env.COMMENT_ID),
- body,
- });
- } catch (error) {
- core.warning(`Could not update acknowledgement comment: ${error.message}`);
- }
- }
- if (!success) core.setFailed('Failed to publish pr_audit event');
diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml
index 47b27170690..fab87788aa1 100644
--- a/.github/workflows/dependencies.yml
+++ b/.github/workflows/dependencies.yml
@@ -15,8 +15,6 @@ jobs:
update:
if: github.repository == 'paradigmxyz/reth'
permissions:
- contents: write
- pull-requests: write
- uses: tempoxyz/ci/.github/workflows/cargo-update-pr.yml@main
- secrets:
- token: ${{ secrets.GITHUB_TOKEN }}
+ contents: read
+ id-token: write
+ uses: tempoxyz/gh-actions/.github/workflows/cargo-update-pr.yml@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
diff --git a/.github/workflows/docker-tag-latest.yml b/.github/workflows/docker-tag-latest.yml
index 24d159a4bd6..851619e0ef1 100644
--- a/.github/workflows/docker-tag-latest.yml
+++ b/.github/workflows/docker-tag-latest.yml
@@ -38,13 +38,13 @@ jobs:
env:
VERSION: ${{ inputs.version }}
run: |
- docker pull ghcr.io/${{ github.repository_owner }}/reth:${VERSION}
+ docker pull "ghcr.io/${{ github.repository_owner }}/reth:${VERSION}"
- name: Tag reth as latest
env:
VERSION: ${{ inputs.version }}
run: |
- docker tag ghcr.io/${{ github.repository_owner }}/reth:${VERSION} ghcr.io/${{ github.repository_owner }}/reth:latest
+ docker tag "ghcr.io/${{ github.repository_owner }}/reth:${VERSION}" ghcr.io/${{ github.repository_owner }}/reth:latest
- name: Push reth latest tag
run: |
diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml
index 31edbe19fa0..246f9cc5c46 100644
--- a/.github/workflows/docker-test.yml
+++ b/.github/workflows/docker-test.yml
@@ -2,6 +2,9 @@ name: Build test Docker image
on:
workflow_call:
+ secrets:
+ DEPOT_TOKEN:
+ required: false
inputs:
hive_target:
required: true
@@ -23,6 +26,8 @@ jobs:
id-token: write
contents: read
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
@@ -31,8 +36,10 @@ jobs:
- name: Get git info
id: git
run: |
- echo "sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
- echo "describe=$(git describe --always --tags)" >> "$GITHUB_OUTPUT"
+ {
+ echo "sha=${{ github.sha }}"
+ echo "describe=$(git describe --always --tags)"
+ } >> "$GITHUB_OUTPUT"
- name: Detect fork
id: fork
@@ -47,6 +54,15 @@ jobs:
echo "is_fork=false" >> "$GITHUB_OUTPUT"
fi
+ - uses: tempoxyz/gh-actions/vendor/dtolnay/rust-toolchain@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
+ if: steps.fork.outputs.is_fork == 'false'
+ with:
+ toolchain: "1.95.0"
+
+ - name: Check Reth dependencies through Aegis
+ if: steps.fork.outputs.is_fork == 'false'
+ run: cargo fetch --locked --manifest-path Cargo.toml
+
# Depot build (upstream only)
- name: Set up Depot CLI
if: steps.fork.outputs.is_fork == 'false'
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 1b6932b7a4c..1e40ad717b4 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -41,10 +41,19 @@ jobs:
contents: read
id-token: write
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
+ - uses: tempoxyz/gh-actions/vendor/dtolnay/rust-toolchain@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
+ with:
+ toolchain: "1.95.0"
+
+ - name: Check Reth dependencies through Aegis
+ run: cargo fetch --locked --manifest-path Cargo.toml
+
- name: Set up Depot CLI
uses: depot/setup-action@91bc8495a33ebfc504ffc89e5674379ccf23c29c # v1.7.2
@@ -58,9 +67,11 @@ jobs:
- name: Get git info for vergen
id: git
run: |
- echo "sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
- echo "describe=$(git describe --always --tags)" >> "$GITHUB_OUTPUT"
- echo "dirty=false" >> "$GITHUB_OUTPUT"
+ {
+ echo "sha=${{ github.sha }}"
+ echo "describe=$(git describe --always --tags)"
+ echo "dirty=false"
+ } >> "$GITHUB_OUTPUT"
- name: Determine build parameters
id: params
@@ -84,26 +95,31 @@ jobs:
echo "EOF"
} >> "$GITHUB_OUTPUT"
else
- echo "ethereum_tags=${REGISTRY}/reth:${VERSION}" >> "$GITHUB_OUTPUT"
- echo "ethereum_set=ethereum.tags=${REGISTRY}/reth:${VERSION}" >> "$GITHUB_OUTPUT"
+ {
+ echo "ethereum_tags=${REGISTRY}/reth:${VERSION}"
+ echo "ethereum_set=ethereum.tags=${REGISTRY}/reth:${VERSION}"
+ } >> "$GITHUB_OUTPUT"
fi
elif [[ "${EVENT_NAME}" == "schedule" ]] || [[ "${BUILD_TYPE}" == "nightly" ]]; then
- echo "targets=nightly" >> "$GITHUB_OUTPUT"
- echo "ethereum_tags=${REGISTRY}/reth:nightly" >> "$GITHUB_OUTPUT"
+ {
+ echo "targets=nightly"
+ echo "ethereum_tags=${REGISTRY}/reth:nightly"
+ } >> "$GITHUB_OUTPUT"
{
echo "ethereum_set<> "$GITHUB_OUTPUT"
else
# git-sha build
- echo "targets=ethereum" >> "$GITHUB_OUTPUT"
- echo "ethereum_tags=${REGISTRY}/reth:${{ github.sha }}" >> "$GITHUB_OUTPUT"
- echo "ethereum_set=ethereum.tags=${REGISTRY}/reth:${{ github.sha }}" >> "$GITHUB_OUTPUT"
+ {
+ echo "targets=ethereum"
+ echo "ethereum_tags=${REGISTRY}/reth:${{ github.sha }}"
+ echo "ethereum_set=ethereum.tags=${REGISTRY}/reth:${{ github.sha }}"
+ } >> "$GITHUB_OUTPUT"
fi
- name: Build and push images
@@ -125,12 +141,14 @@ jobs:
- name: Verify image architectures
env:
+ INPUT_ETHEREUM_TAGS: ${{ steps.params.outputs.ethereum_tags }}
+ INPUT_TARGETS: ${{ steps.params.outputs.targets }}
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}
run: |
./.github/scripts/verify_image_arch.sh \
- "${{ steps.params.outputs.targets }}" \
+ "${INPUT_TARGETS}" \
"ghcr.io/${{ github.repository_owner }}" \
- "${{ steps.params.outputs.ethereum_tags }}"
+ "${INPUT_ETHEREUM_TAGS}"
notify:
name: Notify on failure
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 98f7d55e787..c4bd8b3ab10 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -24,23 +24,29 @@ jobs:
name: e2e-testsuite
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-4' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_BACKTRACE: 1
timeout-minutes: 90
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install nextest
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: nextest
+ tool: nextest@0.9.140
+ checksum: true
+ fallback: none
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
prefix-key: v1-rust-e2e-targets
@@ -62,23 +68,29 @@ jobs:
name: e2e-rocksdb
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-4' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_BACKTRACE: 1
timeout-minutes: 60
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install nextest
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: nextest
+ tool: nextest@0.9.140
+ checksum: true
+ fallback: none
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
cache-on-failure: true
diff --git a/.github/workflows/hive.yml b/.github/workflows/hive.yml
index 5e007f154e0..428ab9d65ed 100644
--- a/.github/workflows/hive.yml
+++ b/.github/workflows/hive.yml
@@ -25,13 +25,15 @@ jobs:
with:
hive_target: hive
artifact_name: "reth"
- secrets: inherit
+ secrets:
+ DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
prepare-hive:
if: github.repository == 'paradigmxyz/reth'
timeout-minutes: 45
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-16' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
strategy:
fail-fast: false
@@ -41,6 +43,8 @@ jobs:
- osaka
name: Prepare Hive - ${{ matrix.variant == 'amsterdam' && 'Amsterdam' || 'Osaka' }}
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
@@ -53,7 +57,7 @@ jobs:
- name: Get hive commit hash
id: hive-commit
- run: echo "hash=$(cd hivetests && git rev-parse HEAD)" >> $GITHUB_OUTPUT
+ run: echo "hash=$(cd hivetests && git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
@@ -209,9 +213,12 @@ jobs:
# Use larger runners for eels tests to avoid OOM runner crashes
runs-on: ${{ github.repository == 'paradigmxyz/reth' && (contains(matrix.scenario.sim, 'eels') && 'depot-ubuntu-latest-8' || 'depot-ubuntu-latest-4') || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
issues: write
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
@@ -270,7 +277,7 @@ jobs:
- name: Parse hive output
run: |
- find hivetests/workspace/logs -type f -name "*.json" ! -name "hive.json" | xargs -I {} python .github/scripts/hive/parse.py {} --exclusion .github/scripts/hive/expected_failures.yaml --ignored .github/scripts/hive/ignored_tests.yaml
+ find hivetests/workspace/logs -type f -name "*.json" ! -name "hive.json" -print0 | xargs -0 -I {} python .github/scripts/hive/parse.py {} --exclusion .github/scripts/hive/expected_failures.yaml --ignored .github/scripts/hive/ignored_tests.yaml
- name: Print simulator output
if: ${{ failure() }}
@@ -395,9 +402,12 @@ jobs:
# Use larger runners for eels tests to avoid OOM runner crashes
runs-on: ${{ github.repository == 'paradigmxyz/reth' && (contains(matrix.scenario.sim, 'eels') && 'depot-ubuntu-latest-8' || 'depot-ubuntu-latest-4') || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
issues: write
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
@@ -456,7 +466,7 @@ jobs:
- name: Parse hive output
run: |
- find hivetests/workspace/logs -type f -name "*.json" ! -name "hive.json" | xargs -I {} python .github/scripts/hive/parse.py {} --exclusion .github/scripts/hive/expected_failures.yaml --ignored .github/scripts/hive/ignored_tests.yaml
+ find hivetests/workspace/logs -type f -name "*.json" ! -name "hive.json" -print0 | xargs -0 -I {} python .github/scripts/hive/parse.py {} --exclusion .github/scripts/hive/expected_failures.yaml --ignored .github/scripts/hive/ignored_tests.yaml
- name: Print simulator output
if: ${{ failure() }}
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 45567fed0b0..ef5f4619be6 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -28,6 +28,7 @@ jobs:
if: github.event_name != 'schedule'
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-4' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_BACKTRACE: 1
@@ -36,19 +37,24 @@ jobs:
network: ["ethereum"]
timeout-minutes: 60
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- name: Install Geth
run: .github/scripts/install_geth.sh
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install nextest
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: nextest
+ tool: nextest@0.9.140
+ checksum: true
+ fallback: none
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
@@ -71,7 +77,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
+ uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
with:
jobs: ${{ toJSON(needs) }}
@@ -80,19 +86,25 @@ jobs:
if: github.event_name == 'schedule' && github.repository == 'paradigmxyz/reth'
runs-on: ubuntu-latest
permissions:
+ id-token: write
contents: read
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install nextest
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: nextest
+ tool: nextest@0.9.140
+ checksum: true
+ fallback: none
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
diff --git a/.github/workflows/kurtosis.yml b/.github/workflows/kurtosis.yml
index ff8a910e3f0..f2a0f4c84fe 100644
--- a/.github/workflows/kurtosis.yml
+++ b/.github/workflows/kurtosis.yml
@@ -29,7 +29,8 @@ jobs:
uses: ./.github/workflows/docker-test.yml
with:
hive_target: kurtosis
- secrets: inherit
+ secrets:
+ DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
test:
timeout-minutes: 60
@@ -38,10 +39,13 @@ jobs:
name: run kurtosis
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
needs:
- build-reth
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
diff --git a/.github/workflows/lint-actions.yml b/.github/workflows/lint-actions.yml
index b2374d13b9e..e9950d740c9 100644
--- a/.github/workflows/lint-actions.yml
+++ b/.github/workflows/lint-actions.yml
@@ -14,15 +14,25 @@ jobs:
actionlint:
runs-on: ubuntu-latest
permissions:
+ id-token: write
contents: read
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - name: Download actionlint
- id: get_actionlint
- run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
- shell: bash
+ - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
+ with:
+ go-version: '1.25'
+ cache: false
+ - name: Install actionlint
+ run: go install github.com/rhysd/actionlint/cmd/actionlint@v1.7.12
- name: Check workflow files
- run: SHELLCHECK_OPTS="-S error" ${{ steps.get_actionlint.outputs.executable }} -color
+ run: SHELLCHECK_OPTS="-S error" actionlint -color
shell: bash
+ - name: Test benchmark CI helpers
+ run: |
+ bash .github/scripts/bench-state-test.sh
+ bash .github/scripts/bench-upload-charts-test.sh
+ node --test .github/scripts/bench-job-summary-test.js
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 1368de51907..556ea80ea04 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -22,6 +22,7 @@ jobs:
name: clippy binaries / ${{ matrix.type }}
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
strategy:
@@ -31,12 +32,14 @@ jobs:
args: --workspace --lib --examples --tests --benches --locked
features: "asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@clippy
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: nightly-2026-07-14
components: clippy
@@ -53,15 +56,18 @@ jobs:
name: clippy
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@nightly
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: nightly-2026-07-14
components: clippy
@@ -76,21 +82,27 @@ jobs:
wasm:
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
target: wasm32-wasip1
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install cargo-hack
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: cargo-hack
+ tool: cargo-hack@0.6.45
+ checksum: true
+ fallback: none
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
@@ -104,20 +116,26 @@ jobs:
riscv:
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 60
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
- - uses: dtolnay/rust-toolchain@stable
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
target: riscv32imac-unknown-none-elf
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install cargo-hack
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: cargo-hack
+ tool: cargo-hack@0.6.45
+ checksum: true
+ fallback: none
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
@@ -130,6 +148,7 @@ jobs:
name: crate-checks (${{ matrix.partition }}/${{ matrix.total_partitions }})
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-4' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
strategy:
matrix:
@@ -137,17 +156,22 @@ jobs:
total_partitions: [3]
timeout-minutes: 60
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install cargo-hack
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: cargo-hack
+ tool: cargo-hack@0.6.45
+ checksum: true
+ fallback: none
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
@@ -158,15 +182,18 @@ jobs:
name: MSRV
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-8' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@master
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.95" # MSRV
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
@@ -181,15 +208,18 @@ jobs:
name: docs
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-4' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@nightly
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: nightly-2026-07-14
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
@@ -206,14 +236,17 @@ jobs:
name: fmt
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
- - uses: dtolnay/rust-toolchain@nightly
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: nightly-2026-07-14
components: rustfmt
@@ -225,39 +258,48 @@ jobs:
name: udeps
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@nightly
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: nightly-2026-07-14
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
cache-on-failure: true
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install cargo-udeps
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: cargo-udeps
+ tool: cargo-udeps@0.1.61
+ checksum: true
+ fallback: none
- run: cargo udeps --workspace --lib --examples --tests --benches --all-features --locked
book:
name: book
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@nightly
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: nightly-2026-07-14
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
@@ -274,9 +316,12 @@ jobs:
typos:
runs-on: ubuntu-latest
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
@@ -285,9 +330,12 @@ jobs:
check-toml:
runs-on: ubuntu-latest
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
@@ -300,28 +348,32 @@ jobs:
grafana:
runs-on: ubuntu-latest
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check dashboard JSON with jq
- uses: sergeysova/jq-action@a3f0d4ff59cc1dddf023fc0b325dd75b10deec58 # v2.3.0
- with:
- cmd: jq empty etc/grafana/dashboards/overview.json
+ run: jq empty etc/grafana/dashboards/overview.json
no-test-deps:
runs-on: ubuntu-latest
permissions:
+ id-token: write
contents: read
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
- - uses: dtolnay/rust-toolchain@stable
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- name: Ensure no arbitrary or proptest dependency on default build
@@ -331,18 +383,21 @@ jobs:
feature-propagation:
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
timeout-minutes: 20
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- uses: taiki-e/cache-cargo-install-action@9ee83daaa7b96a6fab930949ecf1122bba04a389 # v3.0.8
with:
tool: zepter
@@ -353,7 +408,10 @@ jobs:
deny:
permissions:
contents: read
- uses: tempoxyz/ci/.github/workflows/deny.yml@main
+ id-token: write
+ uses: tempoxyz/gh-actions/.github/workflows/rust-deny.yml@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
+ with:
+ rust-toolchain: nightly
lint-success:
name: lint success
@@ -376,6 +434,6 @@ jobs:
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
+ uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
with:
jobs: ${{ toJSON(needs) }}
diff --git a/.github/workflows/release-dist.yml b/.github/workflows/release-dist.yml
index 35f726492cc..4595a4db18f 100644
--- a/.github/workflows/release-dist.yml
+++ b/.github/workflows/release-dist.yml
@@ -17,10 +17,14 @@ permissions: {}
jobs:
release-homebrew:
runs-on: ubuntu-latest
- permissions: {}
+ permissions:
+ contents: read
+ id-token: write
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- name: Update Homebrew formula
- uses: dawidd6/action-homebrew-bump-formula@a0e064e08103c01870c6d1b05168d1b726aab119 # v8
+ uses: dawidd6/action-homebrew-bump-formula@b12d2bc99c46444125e606142f28200ec71a1214 # v10
with:
token: ${{ secrets.HOMEBREW }}
no_fork: true
diff --git a/.github/workflows/release-reproducible.yml b/.github/workflows/release-reproducible.yml
index 98adf750cfb..66b0b485b23 100644
--- a/.github/workflows/release-reproducible.yml
+++ b/.github/workflows/release-reproducible.yml
@@ -4,7 +4,7 @@ name: release-reproducible
permissions: {}
-on:
+on: # zizmor: ignore[dangerous-triggers] Only successful same-repository release pushes or manual releases are accepted below.
workflow_run:
workflows: [release]
types: [completed]
@@ -15,7 +15,11 @@ env:
jobs:
extract-version:
name: extract version
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
+ if: >-
+ github.event.workflow_run.conclusion == 'success' &&
+ github.event.workflow_run.head_repository.full_name == github.repository &&
+ github.event.workflow_run.path == '.github/workflows/release.yml' &&
+ (github.event.workflow_run.event == 'push' || github.event.workflow_run.event == 'workflow_dispatch')
runs-on: ubuntu-latest
permissions:
contents: read
@@ -37,7 +41,7 @@ jobs:
exit 1
fi
- echo "VERSION=$TAG" >> $GITHUB_OUTPUT
+ echo "VERSION=$TAG" >> "$GITHUB_OUTPUT"
outputs:
VERSION: ${{ steps.extract_version.outputs.VERSION }}
@@ -46,13 +50,16 @@ jobs:
runs-on: ubuntu-latest
needs: [extract-version]
permissions:
+ id-token: write
packages: write
contents: write
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- ref: ${{ needs.extract-version.outputs.VERSION }}
+ ref: ${{ github.event.workflow_run.head_sha }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
@@ -68,7 +75,7 @@ jobs:
id: rust_version
run: |
RUST_TOOLCHAIN=$(rustc --version | cut -d' ' -f2)
- echo "RUST_TOOLCHAIN=$RUST_TOOLCHAIN" >> $GITHUB_OUTPUT
+ echo "RUST_TOOLCHAIN=$RUST_TOOLCHAIN" >> "$GITHUB_OUTPUT"
- name: Build reproducible artifacts
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
@@ -101,29 +108,34 @@ jobs:
DOCKER_BUILD_RECORD_UPLOAD: false
- name: Prepare artifacts from Docker build
+ env:
+ INPUT_VERSION: ${{ needs.extract-version.outputs.VERSION }}
run: |
mkdir reproducible-artifacts
- cp docker-artifacts/reth reproducible-artifacts/reth-reproducible-${{ needs.extract-version.outputs.VERSION }}-x86_64-unknown-linux-gnu
+ cp docker-artifacts/reth reproducible-artifacts/reth-reproducible-"${INPUT_VERSION}"-x86_64-unknown-linux-gnu
cp -R docker-artifacts/LICENSES reproducible-artifacts/LICENSES
cp docker-artifacts/README.md reproducible-artifacts/README.md
- cp docker-artifacts/*.deb reproducible-artifacts/reth-${{ needs.extract-version.outputs.VERSION }}-x86_64-unknown-linux-gnu-reproducible.deb
+ cp docker-artifacts/*.deb reproducible-artifacts/reth-"${INPUT_VERSION}"-x86_64-unknown-linux-gnu-reproducible.deb
- name: Configure GPG and create artifacts
env:
+ INPUT_VERSION: ${{ needs.extract-version.outputs.VERSION }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: |
- export GPG_TTY=$(tty)
+ GPG_TTY=$(tty)
+ export GPG_TTY
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --batch --import
cd reproducible-artifacts
- tar -czf reth-reproducible-${{ needs.extract-version.outputs.VERSION }}-x86_64-unknown-linux-gnu.tar.gz reth-reproducible-${{ needs.extract-version.outputs.VERSION }}-x86_64-unknown-linux-gnu LICENSES README.md --remove-files
- echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab reth-reproducible-${{ needs.extract-version.outputs.VERSION }}-x86_64-unknown-linux-gnu.tar.gz
- echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab reth-${{ needs.extract-version.outputs.VERSION }}-x86_64-unknown-linux-gnu-reproducible.deb
+ tar -czf reth-reproducible-"${INPUT_VERSION}"-x86_64-unknown-linux-gnu.tar.gz reth-reproducible-"${INPUT_VERSION}"-x86_64-unknown-linux-gnu LICENSES README.md --remove-files
+ echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab reth-reproducible-"${INPUT_VERSION}"-x86_64-unknown-linux-gnu.tar.gz
+ echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab reth-"${INPUT_VERSION}"-x86_64-unknown-linux-gnu-reproducible.deb
- name: Upload reproducible artifacts to release
env:
+ INPUT_VERSION: ${{ needs.extract-version.outputs.VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- gh release upload ${{ needs.extract-version.outputs.VERSION }} \
+ gh release upload "${INPUT_VERSION}" \
reproducible-artifacts/*
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5dc76c32844..859178ba70c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -49,7 +49,7 @@ jobs:
- name: Extract version
env:
REF: ${{ env.RELEASE_REF }}
- run: echo "VERSION=${REF#refs/tags/}" >> $GITHUB_OUTPUT
+ run: echo "VERSION=${REF#refs/tags/}" >> "$GITHUB_OUTPUT"
id: extract_version
outputs:
VERSION: ${{ steps.extract_version.outputs.VERSION }}
@@ -59,19 +59,26 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
+ id-token: write
needs: extract-version
if: ${{ github.event.inputs.dry_run != 'true' }}
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ env.RELEASE_REF }}
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
+ with:
+ toolchain: stable
- name: Verify crate version matches tag
# Check that the Cargo version starts with the tag,
# so that Cargo version 1.4.8 can be matched against both v1.4.8 and v1.4.8-rc.1
+ env:
+ INPUT_VERSION: ${{ needs.extract-version.outputs.VERSION }}
run: |
- tag="${{ needs.extract-version.outputs.VERSION }}"
+ tag="${INPUT_VERSION}"
tag=${tag#v}
cargo_ver=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
[[ "$tag" == "$cargo_ver"* ]] || { echo "Tag $tag doesn’t match the Cargo version $cargo_ver"; exit 1; }
@@ -80,6 +87,7 @@ jobs:
name: build release
runs-on: ${{ matrix.configs.os }}
permissions:
+ id-token: write
contents: read
needs: extract-version
continue-on-error: ${{ matrix.configs.allow_fail }}
@@ -108,13 +116,16 @@ jobs:
- command: build
binary: reth
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ env.RELEASE_REF }}
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
- - uses: dtolnay/rust-toolchain@stable
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
+ toolchain: stable
target: ${{ matrix.configs.target }}
- name: Install LLVM
if: runner.os == 'Linux'
@@ -133,8 +144,8 @@ jobs:
- name: Apple M1 setup
if: matrix.configs.target == 'aarch64-apple-darwin'
run: |
- echo "SDKROOT=$(xcrun -sdk macosx --show-sdk-path)" >> $GITHUB_ENV
- echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" >> $GITHUB_ENV
+ echo "SDKROOT=$(xcrun -sdk macosx --show-sdk-path)" >> "$GITHUB_ENV"
+ echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" >> "$GITHUB_ENV"
- name: Build Reth
env:
@@ -154,15 +165,17 @@ jobs:
- name: Configure GPG and create artifacts
env:
+ INPUT_VERSION: ${{ needs.extract-version.outputs.VERSION }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: |
- export GPG_TTY=$(tty)
+ GPG_TTY=$(tty)
+ export GPG_TTY
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --batch --import
cd artifacts
- tar -czf ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}.tar.gz ${{ matrix.build.binary }}* LICENSES README.md
- echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}.tar.gz
- mv *tar.gz* ..
+ tar -czf ${{ matrix.build.binary }}-"${INPUT_VERSION}"-${{ matrix.configs.target }}.tar.gz ${{ matrix.build.binary }}* LICENSES README.md
+ echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab ${{ matrix.build.binary }}-"${INPUT_VERSION}"-${{ matrix.configs.target }}.tar.gz
+ mv ./*tar.gz* ..
shell: bash
- name: Upload artifact
@@ -201,11 +214,9 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- name: Generate full changelog
- id: changelog
run: |
- echo "CHANGELOG<> $GITHUB_OUTPUT
- echo "$(git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 ${{ env.VERSION }}^)..${{ env.VERSION }})" >> $GITHUB_OUTPUT
- echo "EOF" >> $GITHUB_OUTPUT
+ previous_tag=$(git describe --tags --abbrev=0 "${VERSION}^")
+ git log --pretty=format:"- %s" "${previous_tag}..${VERSION}" > "$RUNNER_TEMP/changelog.md"
- name: Create release draft
env:
GITHUB_USER: ${{ github.repository_owner }}
@@ -213,11 +224,13 @@ jobs:
# The formatting here is borrowed from Lighthouse (which is borrowed from OpenEthereum):
# https://github.com/openethereum/openethereum/blob/6c2d392d867b058ff867c4373e40850ca3f96969/.github/workflows/build.yml
run: |
- prerelease_flag=""
- if [[ "${{ env.VERSION }}" == *-rc* ]]; then
- prerelease_flag="--prerelease"
+ prerelease_flags=()
+ if [[ "$VERSION" == *-rc* ]]; then
+ prerelease_flags=(--prerelease)
fi
+ CHANGELOG="$(< "$RUNNER_TEMP/changelog.md")"
+ export CHANGELOG
body=$(cat <<- "ENDBODY"

@@ -256,7 +269,7 @@ jobs:
## All Changes
- ${{ steps.changelog.outputs.CHANGELOG }}
+ ${CHANGELOG}
## Binaries
@@ -268,18 +281,19 @@ jobs:
| System | Architecture | Binary | PGP Signature |
|:---:|:---:|:---:|:---|
- |
| x86_64 | [reth-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/reth-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/reth-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz.asc) |
- |
| aarch64 | [reth-${{ env.VERSION }}-aarch64-unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/reth-${{ env.VERSION }}-aarch64-unknown-linux-gnu.tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/reth-${{ env.VERSION }}-aarch64-unknown-linux-gnu.tar.gz.asc) |
- |
| aarch64 | [reth-${{ env.VERSION }}-aarch64-apple-darwin.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/reth-${{ env.VERSION }}-aarch64-apple-darwin.tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/reth-${{ env.VERSION }}-aarch64-apple-darwin.tar.gz.asc) |
- |
| Docker | [${{ env.IMAGE_NAME }}](${{ env.DOCKER_IMAGE_NAME_URL }}) | - |
+ |
| x86_64 | [reth-${VERSION}-x86_64-unknown-linux-gnu.tar.gz](https://github.com/${REPO_NAME}/releases/download/${VERSION}/reth-${VERSION}-x86_64-unknown-linux-gnu.tar.gz) | [PGP Signature](https://github.com/${REPO_NAME}/releases/download/${VERSION}/reth-${VERSION}-x86_64-unknown-linux-gnu.tar.gz.asc) |
+ |
| aarch64 | [reth-${VERSION}-aarch64-unknown-linux-gnu.tar.gz](https://github.com/${REPO_NAME}/releases/download/${VERSION}/reth-${VERSION}-aarch64-unknown-linux-gnu.tar.gz) | [PGP Signature](https://github.com/${REPO_NAME}/releases/download/${VERSION}/reth-${VERSION}-aarch64-unknown-linux-gnu.tar.gz.asc) |
+ |
| aarch64 | [reth-${VERSION}-aarch64-apple-darwin.tar.gz](https://github.com/${REPO_NAME}/releases/download/${VERSION}/reth-${VERSION}-aarch64-apple-darwin.tar.gz) | [PGP Signature](https://github.com/${REPO_NAME}/releases/download/${VERSION}/reth-${VERSION}-aarch64-apple-darwin.tar.gz.asc) |
+ |
| Docker | [${IMAGE_NAME}](${DOCKER_IMAGE_NAME_URL}) | - |
ENDBODY
)
+ body=$(printf '%s' "$body" | python3 -c 'import os, string, sys; print(string.Template(sys.stdin.read()).safe_substitute(os.environ), end="")')
assets=()
for asset in ./*reth-*.tar.gz*; do
assets+=("$asset/$asset")
done
- tag_name="${{ env.VERSION }}"
- echo "$body" | gh release create --draft $prerelease_flag -t "Reth $tag_name" -F "-" "$tag_name" "${assets[@]}"
+ tag_name="$VERSION"
+ echo "$body" | gh release create --draft "${prerelease_flags[@]}" -t "Reth $tag_name" -F "-" "$tag_name" "${assets[@]}"
dry-run-summary:
name: dry run summary
diff --git a/.github/workflows/reproducible-build.yml b/.github/workflows/reproducible-build.yml
index 58980f10012..950a0dc54a2 100644
--- a/.github/workflows/reproducible-build.yml
+++ b/.github/workflows/reproducible-build.yml
@@ -13,6 +13,7 @@ jobs:
name: build reproducible binaries
runs-on: ${{ matrix.runner }}
permissions:
+ id-token: write
contents: read
strategy:
matrix:
@@ -22,12 +23,15 @@ jobs:
- runner: ubuntu-22.04
machine: machine-2
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
+ toolchain: stable
target: x86_64-unknown-linux-gnu
- name: Set up Docker Buildx
diff --git a/.github/workflows/scan-github-actions.yml b/.github/workflows/scan-github-actions.yml
new file mode 100644
index 00000000000..4bbf84d159c
--- /dev/null
+++ b/.github/workflows/scan-github-actions.yml
@@ -0,0 +1,19 @@
+name: Scan GitHub Actions
+
+on:
+ pull_request:
+ push:
+ branches: [main]
+ workflow_dispatch:
+
+permissions: {}
+
+jobs:
+ scan:
+ uses: tempoxyz/gh-actions/.github/workflows/scan-github-actions.yml@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
+ permissions:
+ actions: read
+ contents: read
+ id-token: write
+ with:
+ ensure-secure-runner: false
diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml
index a235be631cf..dd2ecce2edc 100644
--- a/.github/workflows/stage.yml
+++ b/.github/workflows/stage.yml
@@ -27,18 +27,21 @@ jobs:
if: github.event_name == 'merge_group'
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_LOG: info,sync=error
RUST_BACKTRACE: 1
timeout-minutes: 60
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
diff --git a/.github/workflows/sync-era.yml b/.github/workflows/sync-era.yml
index 87774748908..2bd45132f01 100644
--- a/.github/workflows/sync-era.yml
+++ b/.github/workflows/sync-era.yml
@@ -23,6 +23,7 @@ jobs:
name: sync (${{ matrix.chain.bin }})
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_LOG: info,sync=error
@@ -38,12 +39,16 @@ jobs:
block: 100000
unwind-target: "0x52e0509d33a988ef807058e2980099ee3070187f7333aae12b64d4d675f34c5a"
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
+ with:
+ toolchain: stable
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml
index dd1f3ef826f..a6748b5372e 100644
--- a/.github/workflows/sync.yml
+++ b/.github/workflows/sync.yml
@@ -23,6 +23,7 @@ jobs:
name: sync (${{ matrix.chain.bin }})
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_LOG: info,sync=error
@@ -38,12 +39,16 @@ jobs:
block: 100000
unwind-target: "0x52e0509d33a988ef807058e2980099ee3070187f7333aae12b64d4d675f34c5a"
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
+ with:
+ toolchain: stable
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml
index a42d46af854..f4317224ea6 100644
--- a/.github/workflows/unit.yml
+++ b/.github/workflows/unit.yml
@@ -24,6 +24,7 @@ jobs:
name: test / ${{ matrix.type }}
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-4' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_BACKTRACE: 1
@@ -36,12 +37,14 @@ jobs:
exclude_args: ""
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
@@ -50,9 +53,12 @@ jobs:
prefix-key: v1-rust-unit-targets
cache-bin: false
cache-on-failure: true
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install nextest
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: nextest
+ tool: nextest@0.9.140
+ checksum: true
+ fallback: none
- name: Run tests
run: |
cargo nextest run \
@@ -66,12 +72,15 @@ jobs:
name: Ethereum state tests
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest-8' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_LOG: info,sync=error
RUST_BACKTRACE: 1
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
@@ -93,14 +102,17 @@ jobs:
mkdir -p testing/ef-tests/execution-spec-tests
URL="https://github.com/ethereum/execution-spec-tests/releases/download/${EEST_TESTS_TAG}/fixtures_stable.tar.gz"
curl -L "$URL" | tar -xz --strip-components=1 -C testing/ef-tests/execution-spec-tests
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- - uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2.87.8
+ - name: Install nextest
+ uses: tempoxyz/gh-actions/vendor/taiki-e/install-action@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
with:
- tool: nextest
+ tool: nextest@0.9.140
+ checksum: true
+ fallback: none
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
@@ -111,17 +123,20 @@ jobs:
name: doc tests
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
+ id-token: write
contents: read
env:
RUST_BACKTRACE: 1
timeout-minutes: 30
steps:
+ - name: Secure runner
+ uses: tempoxyz/gh-actions/actions/secure-runner@ee2960a6cc25d99bda45614135bfe1197d879bac # 2026-09-26T06-46-03Z-ee2960a6
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - uses: rui314/setup-mold@7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 # v1
+ - uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
- run: .github/scripts/install_llvm.sh ubuntu
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: "1.97.0"
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
@@ -139,6 +154,6 @@ jobs:
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
+ uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
with:
jobs: ${{ toJSON(needs) }}
diff --git a/AGENTS.md b/AGENTS.md
index 4d4d767b1c1..3ed9e42e7fe 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,549 +1,86 @@
-# Reth Development Guide for AI Agents
+# AGENTS.md
-This guide provides comprehensive instructions for AI agents working on the Reth codebase. It covers the architecture, development workflows, and critical guidelines for effective contributions.
+Guidance for AI coding agents working in this repository.
## Project Overview
-Reth is a high-performance Ethereum execution client written in Rust, focusing on modularity, performance, and contributor-friendliness. The codebase is organized into well-defined crates with clear boundaries and responsibilities.
+Reth is an Ethereum execution client written in Rust. The workspace contains the
+node binary and libraries for execution, storage, networking, and RPC.
-## Architecture Overview
-
-### Core Components
-
-1. **Consensus (`crates/consensus/`)**: Validates blocks according to Ethereum consensus rules
-2. **Storage (`crates/storage/`)**: Hybrid database using MDBX + static files for optimal performance
-3. **Networking (`crates/net/`)**: P2P networking stack with discovery, sync, and transaction propagation
-4. **RPC (`crates/rpc/`)**: JSON-RPC server supporting all standard Ethereum APIs
-5. **Execution (`crates/evm/`, `crates/ethereum/`)**: Transaction execution and state transitions
-6. **Pipeline (`crates/stages/`)**: Staged sync architecture for blockchain synchronization
-7. **Trie (`crates/trie/`)**: Merkle Patricia Trie implementation with a sparse trie state root task and parallel proof computation
-8. **Node Builder (`crates/node/`)**: High-level node orchestration and configuration
-9. **The Consensus Engine (`crates/engine/`)**: Handles processing blocks received from the consensus layer with the Engine API (newPayload, forkchoiceUpdated)
-
-### Key Design Principles
-
-- **Modularity**: Each crate can be used as a standalone library
-- **Performance**: Extensive use of parallelism, memory-mapped I/O, and optimized data structures
-- **Extensibility**: Traits and generic types allow for different chain implementations
-- **Type Safety**: Strong typing throughout with minimal use of dynamic dispatch
-
-## Development Workflow
-
-### Code Style and Standards
-
-1. **Formatting**: Always use nightly rustfmt
- ```bash
- cargo +nightly fmt --all
- ```
-
-2. **Linting**: Run clippy with all features
- ```bash
- cargo +nightly clippy --workspace --lib --examples --tests --benches --all-features
- ```
-
-3. **Testing**: Use nextest for faster test execution
- ```bash
- cargo nextest run --workspace
- ```
-
-### Common Contribution Types
-
-Based on actual recent PRs, here are typical contribution patterns:
-
-#### 1. Small Bug Fixes (1-10 lines)
-Real example: Fixing beacon block root handling ([#16767](https://github.com/paradigmxyz/reth/pull/16767))
-```rust
-// Changed a single line to fix logic error
-- parent_beacon_block_root: parent.parent_beacon_block_root(),
-+ parent_beacon_block_root: parent.parent_beacon_block_root().map(|_| B256::ZERO),
-```
-
-#### 2. Integration with Upstream Changes
-Real example: Integrating revm updates ([#16752](https://github.com/paradigmxyz/reth/pull/16752))
-```rust
-// Update code to use new APIs from dependencies
-- if self.fork_tracker.is_shanghai_activated() {
-- if let Err(err) = transaction.ensure_max_init_code_size(MAX_INIT_CODE_BYTE_SIZE) {
-+ if let Some(init_code_size_limit) = self.fork_tracker.max_initcode_size() {
-+ if let Err(err) = transaction.ensure_max_init_code_size(init_code_size_limit) {
-```
-
-#### 3. Adding Comprehensive Tests
-Real example: ETH69 protocol tests ([#16759](https://github.com/paradigmxyz/reth/pull/16759))
-```rust
-#[tokio::test(flavor = "multi_thread")]
-async fn test_eth69_peers_can_connect() {
- // Create test network with specific protocol versions
- let p0 = PeerConfig::with_protocols(NoopProvider::default(), Some(EthVersion::Eth69.into()));
- // Test connection and version negotiation
-}
-```
-
-#### 4. Making Components Generic
-Real example: Making EthEvmConfig generic over chainspec ([#16758](https://github.com/paradigmxyz/reth/pull/16758))
-```rust
-// Before: Hardcoded to ChainSpec
-- pub struct EthEvmConfig {
-- pub executor_factory: EthBlockExecutorFactory, EvmFactory>,
-
-// After: Generic over any chain spec type
-+ pub struct EthEvmConfig
-+ where
-+ C: EthereumHardforks,
-+ {
-+ pub executor_factory: EthBlockExecutorFactory, EvmFactory>,
-```
-
-#### 5. Resource Management Improvements
-Real example: ETL directory cleanup ([#16770](https://github.com/paradigmxyz/reth/pull/16770))
-```rust
-// Add cleanup logic on startup
-+ if let Err(err) = fs::remove_dir_all(&etl_path) {
-+ warn!(target: "reth::cli", ?etl_path, %err, "Failed to remove ETL path on launch");
-+ }
-```
-
-#### 6. Feature Additions
-Real example: Sharded mempool support ([#16756](https://github.com/paradigmxyz/reth/pull/16756))
-```rust
-// Add new filtering policies for transaction announcements
-pub struct ShardedMempoolAnnouncementFilter {
- pub inner: T,
- pub shard_bits: u8,
- pub node_id: Option,
-}
-```
-
-### Testing Guidelines
-
-1. **Unit Tests**: Test individual functions and components
-2. **Integration Tests**: Test interactions between components
-3. **Benchmarks**: For performance-critical code
-4. **Fuzz Tests**: For parsing and serialization code
-5. **Property Tests**: For checking component correctness on a wide variety of inputs
-
-Example test structure:
-```rust
-#[cfg(test)]
-mod tests {
- use super::*;
-
- #[test]
- fn test_component_behavior() {
- // Arrange
- let component = Component::new();
-
- // Act
- let result = component.operation();
-
- // Assert
- assert_eq!(result, expected);
- }
-}
-```
-
-### Performance Considerations
-
-1. **Avoid Allocations in Hot Paths**: Use references and borrowing
-2. **Parallel Processing**: Use rayon for CPU-bound parallel work
-3. **Async/Await**: Use tokio for I/O-bound operations
-4. **File Operations**: Use `reth_fs_util` instead of `std::fs` for better error handling
-
-### Common Pitfalls
-
-1. **Don't Block Async Tasks**: Use `spawn_blocking` for CPU-intensive work or work with lots of blocking I/O
-2. **Handle Errors Properly**: Use `?` operator and proper error types
-
-### What to Avoid
-
-Based on PR patterns, avoid:
-
-1. **Large, sweeping changes**: Keep PRs focused and reviewable
-2. **Mixing unrelated changes**: One logical change per PR
-3. **Ignoring CI failures**: All checks must pass
-4. **Incomplete implementations**: Finish features before submitting
-5. **Modifying libmdbx sources**: Never modify files in `crates/storage/libmdbx-rs/mdbx-sys/libmdbx/` - this is vendored third-party code
-
-### CI Requirements
-
-Before submitting changes, ensure:
-
-1. **Format Check**: `cargo +nightly fmt --all --check`
-2. **Clippy**: No warnings
-3. **Tests Pass**: All unit and integration tests
-4. **Documentation**: Update relevant docs and add doc comments with `cargo docs --document-private-items`
-5. **CLI Docs** (if CLI changed): Run `make update-book-cli` (see below)
-6. **Commit Messages**: Follow conventional format (feat:, fix:, chore:, etc.)
-
-### CLI Reference Docs (`book` CI Job)
-
-The CLI reference pages under `docs/vocs/docs/pages/cli/` are **auto-generated** from the `reth` binary's `--help` output. **Do not edit these files manually** — any hand edits will be overwritten and CI will fail regardless.
-
-When you add, remove, or modify CLI commands, subcommands, or flags, regenerate the CLI docs by running:
-
-```bash
-make update-book-cli
-```
-
-This builds `reth` in debug mode and runs `docs/cli/update.sh` to regenerate all CLI pages. Commit the resulting changes.
-
-The `book` CI job (`.github/workflows/lint.yml`) enforces this by regenerating the docs and running `git diff --exit-code`. If the committed docs don't match the generated output, CI fails. Manually editing these pages is never productive — always use `make update-book-cli`.
-
-### Opening PRs against
-
-#### Titles
-
-Use [Conventional Commits](https://www.conventionalcommits.org/) with an optional scope:
-
-```
-():
-```
-
-**Types**: `feat`, `fix`, `perf`, `refactor`, `docs`, `test`, `chore`
-
-**Scope** (optional): crate or area, e.g. `evm`, `trie`, `rpc`, `engine`, `net`
-
-Examples:
-- `fix(rpc): correct gas estimation for ERC-20 transfers`
-- `perf: batch trie updates to reduce cursor overhead`
-- `feat(engine): add new_payload_interval metric`
-
-#### Descriptions
-
-Keep it short. Say what changed and why — nothing more.
-
-**Do:**
-- Write 1–3 sentences summarizing the change
-- Explain _why_ if the diff doesn't make it obvious
-- Link related issues or EIPs
-- Include benchmark numbers for perf changes
-
-**Don't:**
-- List every file changed — that's what the diff is for
-- Repeat the title in the body
-- Add "Files changed" or "Changes" sections
-- Write walls of text that go stale when the diff is updated
-- Use filler like "This PR introduces...", "comprehensive", "robust", "enhance", "leverage"
-
-**Template:**
-
-```
-Closes #
-
-
-
-
-```
-
-**Good example:**
-
-```
-Closes #16800
-
-Adds fallback for external IP resolution so node startup doesn't fail
-when STUN is unreachable. Falls back to the configured default.
-```
-
-**Bad example:**
-
-```
-## Summary
-This PR introduces comprehensive improvements to the IP resolution system.
-
-## Changes
-- Modified `crates/net/discv4/src/lib.rs` to add fallback
-- Modified `crates/net/discv4/src/config.rs` to add default IP
-- Added tests in `crates/net/discv4/src/tests/ip.rs`
-
-## Files Changed
-- crates/net/discv4/src/lib.rs
-- crates/net/discv4/src/config.rs
-- crates/net/discv4/src/tests/ip.rs
-```
-
-#### Labels and CI
-
-Label PRs appropriately, first check the available labels and then apply the relevant ones:
-* when changes are RPC related, add A-rpc label
-* when changes are docs related, add C-docs label
-* ... and so on, check the available labels for more options.
-* if being tasked to open a pr, ensure that all changes are properly formatted: `cargo +nightly fmt --all`
-
-If changes in reth include changes to dependencies, run commands `zepter` and `make lint-toml` before finalizing the pr. Assume `zepter` binary is installed.
-
-### Debugging Tips
-
-1. **Logging**: Use `tracing` crate with appropriate levels
- ```rust
- tracing::debug!(target: "reth::component", ?value, "description");
- ```
-
-2. **Metrics**: Add metrics for monitoring
- ```rust
- metrics::counter!("reth_component_operations").increment(1);
- ```
-
-3. **Test Isolation**: Use separate test databases/directories
-
-### Finding Where to Contribute
-
-1. **Check Issues**: Look for issues labeled `good-first-issue` or `help-wanted`
-2. **Review TODOs**: Search for `TODO` comments in the codebase
-3. **Improve Tests**: Areas with low test coverage are good targets
-4. **Documentation**: Improve code comments and documentation
-5. **Performance**: Profile and optimize hot paths (with benchmarks)
-
-### Common PR Patterns
-
-#### Small, Focused Changes
-Most PRs change only 1-5 files. Examples:
-- Single-line bug fixes
-- Adding a missing trait implementation
-- Updating error messages
-- Adding test cases for edge conditions
-
-#### Integration Work
-When dependencies update (especially revm), code needs updating:
-- Check for breaking API changes
-- Update to use new features (like EIP implementations)
-- Ensure compatibility with new versions
-
-#### Test Improvements
-Tests often need expansion for:
-- New protocol versions (ETH68, ETH69)
-- Edge cases in state transitions
-- Network behavior under specific conditions
-- Concurrent operations
-
-#### Making Code More Generic
-Common refactoring pattern:
-- Replace concrete types with generics
-- Add trait bounds for flexibility
-- Enable reuse across different chain types
-
-#### When to Comment
-
-Write comments that remain valuable after the PR is merged. Future readers won't have PR context - they only see the current code.
-
-##### ✅ DO: Add Value
-
-**Explain WHY and non-obvious behavior:**
-```rust
-// Process must handle allocations atomically to prevent race conditions
-// between dealloc on drop and concurrent limit checks
-unsafe impl GlobalAlloc for LimitedAllocator { ... }
-
-// Binary search requires sorted input. Panics on unsorted slices.
-fn find_index(items: &[Item], target: &Item) -> Option
-
-// Timeout set to 5s to match EVM block processing limits
-const TRACER_TIMEOUT: Duration = Duration::from_secs(5);
-```
-
-**Document constraints and assumptions:**
-```rust
-/// Returns heap size estimate.
-///
-/// Note: May undercount shared references (Rc/Arc). For precise
-/// accounting, combine with an allocator-based approach.
-fn deep_size_of(&self) -> usize
-```
-
-**Explain complex logic:**
-```rust
-// We reset limits at task start because tokio reuses threads in
-// spawn_blocking pool. Without reset, second task inherits first
-// task's allocation count and immediately hits limit.
-THREAD_ALLOCATED.with(|allocated| allocated.set(0));
-```
-
-##### ❌ DON'T: Describe Changes
-```rust
-// ❌ BAD - Describes the change, not the code
-// Changed from Vec to HashMap for O(1) lookups
-
-// ✅ GOOD - Explains the decision
-// HashMap provides O(1) symbol lookups during trace replay
-```
-```rust
-// ❌ BAD - PR-specific context
-// Fix for issue #234 where memory wasn't freed
-
-// ✅ GOOD - Documents the actual behavior
-// Explicitly drop allocations before limit check to ensure
-// accurate accounting
-```
-```rust
-// ❌ BAD - States the obvious
-// Increment counter
-counter += 1;
-
-// ✅ GOOD - Explains non-obvious purpose
-// Track allocations across all threads for global limit enforcement
-GLOBAL_COUNTER.fetch_add(1, Ordering::SeqCst);
-```
-
-✅ **Comment when:**
-- Non-obvious behavior or edge cases
-- Performance trade-offs
-- Safety requirements (unsafe blocks must always be documented)
-- Limitations or gotchas
-- Why simpler alternatives don't work
-
-❌ **Don't comment when:**
-- Code is self-explanatory
-- Just restating the code in English
-- Describing what changed in this PR
-
-##### The Test: "Will this make sense in 6 months?"
-
-Before adding a comment, ask: Would someone reading just the current code (no PR, no history) find this helpful?
-
-
-#### Rust Style Guides
-
-##### Type Ordering in Files
-
-When defining structs, traits, and functions in a file, follow this ordering convention. The file's primary type (matching the file name) comes first, followed by supporting public types, then private types and helpers.
-
-```rust
-use ...;
-
-/// The primary type of this file (matches filename).
-pub struct PayloadProcessor { ... }
-
-impl PayloadProcessor { ... }
-
-// Followed by public auxiliary types that support the primary type
-
-/// Configuration for the processor.
-pub struct PayloadProcessorConfig { ... }
-
-/// Result type returned by processor operations.
-pub struct ProcessorResult { ... }
-
-// Followed by public traits related to the primary type
-
-pub trait ProcessorExt { ... }
-
-// Followed by private helper types
-
-struct InternalState { ... }
-
-// Followed by private helper functions
-
-fn validate_input() { ... }
-```
-
-❌ **Bad**: Adding new traits and auxiliary types **above** the file's primary type (see [#22133](https://github.com/paradigmxyz/reth/pull/22133)):
-
-```rust
-use ...;
-
-// ❌ BAD - new auxiliary struct added before the file's main type
-pub struct CacheWaitDurations { ... }
-
-// ❌ BAD - new trait added before the file's main type
-pub trait WaitForCaches { ... }
-
-// The file's primary type is buried below unrelated additions
-pub struct PayloadProcessor { ... }
-```
-
-✅ **Good**: New types go **after** the primary type:
-
-```rust
-use ...;
-
-// ✅ The file's primary type stays at the top
-pub struct PayloadProcessor { ... }
-
-impl PayloadProcessor { ... }
-
-// ✅ Auxiliary types follow the primary type
-pub struct CacheWaitDurations { ... }
-
-pub trait WaitForCaches { ... }
-
-impl WaitForCaches for PayloadProcessor { ... }
-```
-
-### Example Contribution Workflow
-
-Let's say you want to fix a bug where external IP resolution fails on startup:
-
-1. **Create a branch**:
- ```bash
- git checkout -b fix-external-ip-resolution
- ```
-
-2. **Find the relevant code**:
- ```bash
- # Search for IP resolution code
- rg "external.*ip" --type rust
- ```
-
-3. **Reason about the problem, when the problem is identified, make the fix**:
- ```rust
- // In crates/net/discv4/src/lib.rs
- pub fn resolve_external_ip() -> Option {
- // Add fallback mechanism
- nat::external_ip()
- .or_else(|| nat::external_ip_from_stun())
- .or_else(|| Some(DEFAULT_IP))
- }
- ```
-
-4. **Add a test**:
- ```rust
- #[test]
- fn test_external_ip_fallback() {
- // Test that resolution has proper fallbacks
- }
- ```
-
-5. **Run checks** (IMPORTANT!):
- ```bash
- cargo +nightly fmt --all
- cargo clippy --workspace --all-features # Make sure WHOLE WORKSPACE compiles!
- cargo nextest run -p reth-discv4
- ```
-
-6. **Commit with clear message**:
- ```bash
- git commit -m "fix: add fallback for external IP resolution
-
- Previously, node startup could fail if external IP resolution
- failed. This adds fallback mechanisms to ensure the node can
- always start with a reasonable default."
- ```
-
-## Quick Reference
-
-### Essential Commands
+## Commands
```bash
-# Format code
-cargo +nightly fmt --all
-
-# Run lints
-cargo +nightly clippy --workspace --all-features
-
-# Run tests
+cargo build -p reth
+cargo fmt --all
+cargo clippy --workspace --all-targets --all-features
cargo nextest run --workspace
-
-# Run specific benchmark
-cargo bench --bench bench_name
-
-# Build optimized binary
-cargo build --release
-
-# Check compilation for all features
-cargo check --workspace --all-features
-
-# Check documentation
cargo docs --document-private-items
-
-# Regenerate CLI reference docs (after CLI changes)
-make update-book-cli
```
+
+## Architecture
+
+- `bin/reth/`: node binary.
+- `crates/node/`, `crates/engine/`: node setup and consensus engine.
+- `crates/evm/`, `crates/ethereum/`: execution and Ethereum-specific components.
+- `crates/storage/`, `crates/trie/`, `crates/stages/`: persistence, state roots, and sync.
+- `crates/net/`, `crates/rpc/`: P2P networking and JSON-RPC.
+
+## Testing
+
+- Add regression coverage in existing unit or integration tests.
+- Reuse test helpers and isolate test databases and directories.
+- Run affected packages first; broaden checks for changes across crates.
+- Use existing benchmarks for performance changes and report measured results.
+
+## Commit and PR Style
+
+Use conventional commits and PR titles: `type: description`, with an optional
+scope. Keep subjects under 50 characters where practical. Explain what changed
+and why in one short paragraph. Link related issues and include real measurements
+for performance claims; omit templates and validation boilerplate.
+
+## Notes
+
+- **Testing**: Use fuzz tests for parsing and serialization, and property tests for invariants.
+- **Hot paths**: Avoid unnecessary allocations; reuse buffers and borrow where practical.
+- **Logging and metrics**: Follow the component's existing `tracing` targets and metrics conventions.
+- **Filesystem**: Use `reth_fs_util` for filesystem operations and its error context.
+- **Async work**: Keep blocking work off executor threads; follow the component's task model.
+- **Vendored code**: Do not edit `crates/storage/libmdbx-rs/mdbx-sys/libmdbx/`.
+- **Type order**: Keep the file's primary type before supporting types and private helpers.
+- **Documentation**: Update relevant docs when behavior or public APIs change. Regenerate CLI
+ reference pages with `make update-book-cli` after changing commands or flags; do not edit
+ generated pages by hand.
+- **Dependencies**: Run `zepter run check` and `make lint-toml` for dependency changes.
+- **PR labels**: Check available labels and apply those relevant to the change.
+
+## Code Style
+
+- Follow existing patterns and keep changes focused.
+- Explain non-obvious behavior and safety requirements in comments, not PR history.
+- Comments end with periods, except URLs. Document safety requirements of unsafe code.
+- Files use LF and end with a newline.
+- Never expose secrets.
+
+### Rust
+
+- Generally add new Rust functions, methods, `impl` blocks, modules, imports, Cargo dependencies, and other items at the bottom of the relevant scope, section, or group. Constructors usually go at the top of an `impl` block. First check where similar items sit in the file and match the existing order, grouping, and style, including alphabetical order where used.
+- Put doc comments before attributes, always: `/// ...` comes before `#[derive]`, `#[inline]`, `#[cfg]`, and every other attribute.
+- Put module documentation at the top of the module file with inner doc comments (`//! ...`), not on the `mod` item in the parent module.
+- NEVER put imports inside functions unless required for `#[cfg(...)]` gating. All imports go at the top of the file.
+- Group all `use` imports together. Keep `pub use` imports in a separate group. For local module re-exports, write `mod x;` before `pub use x;`; for re-exporting another module or external crate, use `use x;`, then a blank line, then `pub use y;`, then a blank line before local `mod my_mod; pub use my_mod::*;`.
+- Put imports used only by tests inside the relevant `#[cfg(test)]` module, merging them into its ordinary imports instead of adding `#[cfg(test)] use` items to the parent. Keep any additional feature or platform conditions on those imports. Retain parent-level test-gated imports or re-exports only when test-only helpers or multiple test modules need them there.
+- Keep crate-level dependency anchors such as `#[cfg(test)] use cc as _;` at crate scope.
+- Put conditional imports after unconditional imports, separated by a blank line. Group imports with the same `#[cfg(...)]` condition together, with a blank line between different conditions. Apply this to every feature, platform, and test gate, including imports in nested modules. Within each group, merge imports from the same crate when their conditions and other attributes match. Keep the full condition on each `use`; do not introduce import-only modules or macros to avoid repeated attributes. Apply the same ordering within the separate `pub use` group, keeping local re-exports after their module declarations.
+- In test modules, always import the parent module with `use super::*`.
+- In `Cargo.toml`, generally group optional dependencies for a feature together. Put a comment immediately above the group containing only the feature name, for example `# jit`.
+- Prefer `let Some(x) = x else { return };` / `let Ok(x) = x else { return };` over `match x { Some(x) => x, _ => return }`.
+- Use `let ... else` only for a single early-exit guard. When multiple conditions or patterns gate the same block, prefer a combined `if let` / `let` chain instead of several sequential `let ... else` statements.
+- Use combined `if let` chains (`if let Some(x) = x && let Some(y) = y { ... }`) instead of nesting (`if let Some(x) = x { if let Some(y) = y { ... } }`).
+- In loops, prefer an `if let` chain around the loop body over multiple `let ... else { continue };` statements when the body only runs if all patterns match.
+- NEVER use `ref` / `ref mut` in patterns as the first resort. Always prefer borrowing the expression with `&` / `&mut` instead.
+- Prefer map entry APIs such as `entry`, `or_insert`, and `or_insert_with` when multiple consecutive operations would otherwise look up and then insert or update the same key.
+- Avoid specifying type hints in variables unless absolutely necessary (e.g. `HashMap<_, Vec<_>>` for `x.entry(y).or_default().push(z)` where type inference won't work). Rely on the compiler.
+- When type hints are needed, prefer turbofish (`let x = Type::::new()`) over annotation (`let x: Type = Type::new()`).
+- In tests, avoid `.contains` assertions for error/output strings when the project has snapshot testing support such as `snapbox`. Prefer exact snapshot assertions (`stderr_eq`, `stdout_eq`, `assert_data_eq!`, etc.) and use redactions only for genuinely variable parts.
+- Always leave a blank line in between module doc-comments, items or item categories, unless in rare exceptions: it's a one-shot struct with one single impl block, or it's a list of impls that are all very similar. But in general blank line in between items is the norm but it's just unenforced. Items includes imports (together) too. The previous rules apply first.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e0325ae5b67..f59795fcd5a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,7 +7,18 @@ This changelog covers Firehose-specific changes only. For upstream reth changes,
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
-## op-reth-v2.8.1-fh3.1-1
+## op-reth-v2.9.0-fh3.1
+
+### Changed
+
+- Merged ethereum-optimism/reth `op-v2.7.0-0` (reth v2.7.0 plus OP commits), the reth pin of
+ op-reth v2.9.0. The previous pin was `op-v2.6.0-2` (reth v2.6.0). revm moves to 43.0.3;
+ alloy-evm stays at 0.39 and the `alloy-evm` patch stays on `streamingfast/evm` `v0.39.0-sf`,
+ now pinned by commit. The Firehose engine path follows upstream's new `EvmStateProvider`
+ bound; the traced block is still printed only after post-execution validation passes.
+- RPC replays (`debug_trace*`, `trace_*`) now run through the chain's block executor upstream.
+ They build it with `executor_for_block`, which the Firehose tracer does not hook, so they never
+ print Firehose blocks.
### Fixed
diff --git a/Cargo.lock b/Cargo.lock
index 7b0b4dbdc3e..837748dac93 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -106,9 +106,9 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
[[package]]
name = "alloy-chains"
-version = "0.2.37"
+version = "0.2.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e5fdcfed8f106be3df944054aaa42bc13ae103a3ac8a9f4b08d4f053e3a743f8"
+checksum = "c1c4f6f6f020f38a4ef079428b5c7009e913bf8102e4d65a90c6cb2cf93800eb"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -121,9 +121,9 @@ dependencies = [
[[package]]
name = "alloy-consensus"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b836b372d3b742b7c083d2617d6e68563cd5dadbd8752c461a935a756551e69"
+checksum = "727016fed834c2392d014dd697ea473f3e47bcec31ba31ccffa9c1d18ed904e5"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -149,9 +149,9 @@ dependencies = [
[[package]]
name = "alloy-consensus-any"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1befb37485ea71e8599e32ffd76c98af7c3720a34741d30abd87f41c3148407"
+checksum = "6ea5ae60bbb3ce9dc52685a70a3755ad4432045fd38079b763cfe5127c706134"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -164,9 +164,9 @@ dependencies = [
[[package]]
name = "alloy-contract"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b432cf09e307820b39ec5b856b25f396d8fde6089358f0c1d96d9654ad1e0b7d"
+checksum = "8c807c974ae5ac07fa98431310b498d85f029da0d2f9a088b3ea673e5e33bb81"
dependencies = [
"alloy-consensus",
"alloy-dyn-abi",
@@ -189,9 +189,9 @@ dependencies = [
[[package]]
name = "alloy-dyn-abi"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "201b9e973fe90b2effd9ab356d4f2a46ab56046ba9d46f163367553e72c045b0"
+checksum = "14b3b9990889736af898bd4e51f7d0c0228d6a9b9c3a5fecb3e6b25a7abc791c"
dependencies = [
"alloy-json-abi",
"alloy-primitives",
@@ -221,9 +221,9 @@ dependencies = [
[[package]]
name = "alloy-eip2930"
-version = "0.2.3"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9441120fa82df73e8959ae0e4ab8ade03de2aaae61be313fbf5746277847ce25"
+checksum = "e64579d931b3f8eacc7c9ab0b220e87e9c4816e5c724ede1947b55c2f8e92ae5"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -252,9 +252,9 @@ dependencies = [
[[package]]
name = "alloy-eip7928"
-version = "0.4.10"
+version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1cb19c9d53b507960f649e5689f7098e556696023fe1b57b67f2181ed54bc5b7"
+checksum = "6a12e1dc70236cfb8e79b96dd8544aed47c39e2f45dc6b51c3703e969e052faa"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -265,16 +265,31 @@ dependencies = [
"thiserror 2.0.20",
]
+[[package]]
+name = "alloy-eip8141"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36422c14bd57dcd638e276c8c9d7ac09eb16598e3a9dbd34e4b55267d4565b5e"
+dependencies = [
+ "alloy-primitives",
+ "alloy-rlp",
+ "arbitrary",
+ "borsh",
+ "serde",
+ "thiserror 2.0.20",
+]
+
[[package]]
name = "alloy-eips"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca3e76d47e8de277cb55e7e77fa38adde835162fc01cddbe1b258b5e0a86035b"
+checksum = "e01905444bd2fc330673f11d2466c0f54e8488f7ce3132b6a5e6497916fca765"
dependencies = [
"alloy-eip2124",
"alloy-eip2930",
"alloy-eip7702",
"alloy-eip7928",
+ "alloy-eip8141",
"alloy-primitives",
"alloy-rlp",
"alloy-serde",
@@ -294,11 +309,11 @@ dependencies = [
[[package]]
name = "alloy-evm"
version = "0.39.0"
-source = "git+https://github.com/streamingfast/evm.git?tag=v0.39.0-sf#52afebec62600e7c89c7a9f97a35731ce3183404"
+source = "git+https://github.com/streamingfast/evm.git?rev=52afebec62600e7c89c7a9f97a35731ce3183404#52afebec62600e7c89c7a9f97a35731ce3183404"
dependencies = [
"alloy-consensus",
"alloy-eips",
- "alloy-hardforks 0.4.8",
+ "alloy-hardforks 0.4.9",
"alloy-primitives",
"alloy-rpc-types-engine",
"alloy-rpc-types-eth",
@@ -312,9 +327,9 @@ dependencies = [
[[package]]
name = "alloy-genesis"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0680a2f7d4bbc6f48c0cb43368fa544918a1fa291e772bdb47c834ade338f363"
+checksum = "53cfa407c1d874cb306187996e30eb551bd98025e60e913e69e298ed2c8ea045"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -340,9 +355,9 @@ dependencies = [
[[package]]
name = "alloy-hardforks"
-version = "0.4.8"
+version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "865371fb677c005f7cb0ea9c2847a1ba4fdb042caf6428b1769fee20368bbfc7"
+checksum = "09d5ff0394d9547798fa4b666c46e356d09a113f33d45fb3d75175681c1e2652"
dependencies = [
"alloy-chains",
"alloy-eip2124",
@@ -354,9 +369,9 @@ dependencies = [
[[package]]
name = "alloy-json-abi"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1dba4e59c3581a39e03e0b0b4a46ee9c41315b5d843b1e903271952b32bedb7c"
+checksum = "858acd7fdad1e4a7057fd9c1b39c1f2cd6bcd57ebf3c56e2853c02ead049e816"
dependencies = [
"alloy-primitives",
"alloy-sol-type-parser",
@@ -366,9 +381,9 @@ dependencies = [
[[package]]
name = "alloy-json-rpc"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a523ca087dda941e53f6ecde5bf5df78b9dbe760f3f77488e13dbf355de4a84"
+checksum = "fff9cb760601d352d1e59aab5803c3fb6dc99824b6883f5c7a781aacd4b54c66"
dependencies = [
"alloy-primitives",
"alloy-sol-types",
@@ -381,9 +396,9 @@ dependencies = [
[[package]]
name = "alloy-network"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f263c8d752b15e19b7c2d3cbad00338ec2d7cc923a46cd1ff98aea2fa333166b"
+checksum = "e11dfba13dac9e54576bf41e1b7461491367e0bce6a2a4293b9e40ffa3ebd5e9"
dependencies = [
"alloy-consensus",
"alloy-consensus-any",
@@ -407,9 +422,9 @@ dependencies = [
[[package]]
name = "alloy-network-primitives"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8795eecf50374a0dd942caff57922c59333c9991ead9eccbbc1709f55d73c7c2"
+checksum = "3819bf6794d25f679d42c3f2b168e12cae08c56bb41d393cb6249b55e6d5933e"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -420,9 +435,9 @@ dependencies = [
[[package]]
name = "alloy-node-bindings"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a58b30703aa2afe3b3ba66b0e9422393a9e869c6b84bff3b0a2f7e23f6fe5d1"
+checksum = "75442e1238881ace33211a369d0cf614507cafb0211af3d0c37c81210ffb6589"
dependencies = [
"alloy-genesis",
"alloy-hardforks 0.2.13",
@@ -442,9 +457,9 @@ dependencies = [
[[package]]
name = "alloy-primitives"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce7b00f0cb42c66ec353076ded1dff1fbf818f6e0e26c40c8a8456c04483fca4"
+checksum = "d5e9dbd49258ac3ab893a481d46be29b58be7f734dcac46cd80b6b13ee36566c"
dependencies = [
"alloy-rlp",
"arbitrary",
@@ -474,9 +489,9 @@ dependencies = [
[[package]]
name = "alloy-provider"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef487e44dfae9c87cb732989d3f43682f65aefb11a0f56045b26be357f671fcf"
+checksum = "9f8250dbbc93fab5b00fe0d3c1db3ede67d2a5fdbae8255de70b34ae39da244b"
dependencies = [
"alloy-chains",
"alloy-consensus",
@@ -519,9 +534,9 @@ dependencies = [
[[package]]
name = "alloy-pubsub"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18662bde9be7d5218bed6e6fcb472caac3a65ea31730654678b6bba7c1b0553a"
+checksum = "fcf12a49e488baefa21619f3ec2ce39f20857153aa1e91619fb5c1ce4d69d893"
dependencies = [
"alloy-json-rpc",
"alloy-primitives",
@@ -563,9 +578,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-client"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98267c2d47f9c185b575bac3f772a8ca66bcbd712693535e50980c12eab80a42"
+checksum = "1f73519dc8f4ab73dafe90ac47aec4b9055c421c762d770d911eed83fcbef28d"
dependencies = [
"alloy-json-rpc",
"alloy-primitives",
@@ -589,9 +604,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "637fed69eda26e19fb42314006570519003c1bfc338c54165e610a657e3b46ff"
+checksum = "e30da7fc40ff208becb4ebe462a149045c8613f60ee84f65731a522c67c351fd"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-engine",
@@ -602,9 +617,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-admin"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f91f1a1fa4d3c95ea5dba30c02d8987f0c052137dd7f1d55086cf36270517cbc"
+checksum = "8d217ca58fed01c4c96d66767af04af39d57ee0d3af016aaf686a2d600aa66d0"
dependencies = [
"alloy-genesis",
"alloy-primitives",
@@ -614,9 +629,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-anvil"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "848bfe2315338ec605863073aae54a90fcea9cec7e6855a9e93d988bf42e9740"
+checksum = "ad4774d898cc10846f65c426a385071f3e2872876d7f0e7836f1f75ffa54d448"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-eth",
@@ -626,9 +641,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-any"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1176430031ba27abfb51b95516cf71e8ce3ff4172c72f3136627f0f89813a739"
+checksum = "9c5d320312e4a9481b18185429e57fa161dbf9468414ba5667aff4ebe7bd37e7"
dependencies = [
"alloy-consensus-any",
"alloy-network-primitives",
@@ -641,9 +656,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-beacon"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c20f226662436bbdc221c9156a1f445c257da5e695b39a26878aa8b2644f710e"
+checksum = "01f0837510a7e7789f99cf86bc0d0e3b54cfa663f25de803dad613364eef9fd3"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -661,9 +676,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-debug"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a97960aa11b9984a18580b8dfbfc3eacfce1befa0d588b03ccc0bc5563d01f8"
+checksum = "ce17ebd75d90c490897ca320e34bd5c95e0d8620d35ba5842aee9e7b5a90ea21"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -674,9 +689,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-engine"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a43d7b6b86be4885c7a76f1dfcde9651af2d419ff571e8ee7257de47101203b"
+checksum = "77b967576e97165fed3fae1cf6adad964e192293e4ee61d9187afe3ecaa12323"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -695,9 +710,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-eth"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "756eb5803e70985be4066b636194ccb5f6629e5d141817c1f0c50cea8350bf5c"
+checksum = "32c475e21fe8a8caa02166b326ed22207a1a0597fc9b0dcdfb46e2fe6f80dadf"
dependencies = [
"alloy-consensus",
"alloy-consensus-any",
@@ -707,6 +722,7 @@ dependencies = [
"alloy-rlp",
"alloy-serde",
"alloy-sol-types",
+ "alloy-trie",
"arbitrary",
"itertools 0.14.0",
"serde",
@@ -717,9 +733,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-mev"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c833a9b946d827d2b2aa8cad8e92279a4340ec1b7cf666f3e1ee6ef4684e0159"
+checksum = "8c230cc2e3f19a76889664522ffc10d746292f43fa1f57a3a9e20fe011346203"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -732,9 +748,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-trace"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1933d60c2f51b8906103484ea2ca2218357264dbf16f948f7c2dd4ac5818e1d8"
+checksum = "e3d8edefcef7d45a3da4bb869bbee1ee4c71b7437b22b87794f0912c89b5702c"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-eth",
@@ -746,9 +762,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-txpool"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2eb5d708e45799bd963d7e3bd8d04110e90983833ed02f91a9099811ed39ce6d"
+checksum = "2fcacd9928d9788790afcd1d3fd8d0206329d2ef2391070867bafcc20ecf278f"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-eth",
@@ -758,9 +774,9 @@ dependencies = [
[[package]]
name = "alloy-serde"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc142e40df0c3eb5983b1637a68ab33471d8d22b8f402c9ed8260411a4e89d86"
+checksum = "4f44f297d3b9e3ca2c3039e3c0ed69acde9b35edda15381cf78f725b7263fbe2"
dependencies = [
"alloy-primitives",
"arbitrary",
@@ -770,9 +786,9 @@ dependencies = [
[[package]]
name = "alloy-signer"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4c84f88f8a29d2607f98993687ed55a5943ba06819bc2126bb078dca54be943"
+checksum = "e7de6fd34b5ba1789d482fa800dd97219b34765d6b07633a989a24d2dace770e"
dependencies = [
"alloy-primitives",
"async-trait",
@@ -785,9 +801,9 @@ dependencies = [
[[package]]
name = "alloy-signer-local"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "58c81472fb0b73cbb18106e323e33e3f249f56318a330a8e0f6aa6e913e3519a"
+checksum = "d6909c09d586c7b55eced688754d57dde8a6bcbae2b83e69a9b9250e74cfd79e"
dependencies = [
"alloy-consensus",
"alloy-network",
@@ -804,9 +820,9 @@ dependencies = [
[[package]]
name = "alloy-sol-macro"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c64558980fb038cd34b4285ec2b36a2a8bd8d4ddd13b3f6e42d97cb5ee29938e"
+checksum = "60dd79f578c3912f1fc2a150dbeb8110b8cfb976c60f98ebf6de9d5da5965a2b"
dependencies = [
"alloy-sol-macro-expander",
"alloy-sol-macro-input",
@@ -818,9 +834,9 @@ dependencies = [
[[package]]
name = "alloy-sol-macro-expander"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ffb0e793abdbaea9d01259493c8272c3af295d03389e70a2acdf53b57ad1edf"
+checksum = "9edb8520f2f94275e1caa73c85207dcc78ec402a9a4c429240f9a0783a8f16c0"
dependencies = [
"alloy-sol-macro-input",
"const-hex",
@@ -836,9 +852,9 @@ dependencies = [
[[package]]
name = "alloy-sol-macro-input"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32c2c0ec8425d9663dac939ba75750f17d2933d2f020814b4f8fde4a60da6d26"
+checksum = "66af2d9344882172993be5f5cbfd349fdfa52cb548f7af8715b446fb35ef6001"
dependencies = [
"const-hex",
"dunce",
@@ -852,9 +868,9 @@ dependencies = [
[[package]]
name = "alloy-sol-type-parser"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96b37db6a7ad8170596345f864522f789cc7af093f516d6cdf34bbdcfba8adab"
+checksum = "77c2a8abc3334044013b23d5e438cc5dc802e5544cc42b713d0840d5185967cc"
dependencies = [
"serde",
"winnow 1.0.1",
@@ -862,9 +878,9 @@ dependencies = [
[[package]]
name = "alloy-sol-types"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f40e33a0f588dde548c3b6767a71e61b593421a8c1b253b9cf1441dc7cf7ab5"
+checksum = "3e6f87cf007caa54e95455875fbd25879b008d0d9c7c340a2c258b3a3400a28c"
dependencies = [
"alloy-json-abi",
"alloy-primitives",
@@ -874,9 +890,9 @@ dependencies = [
[[package]]
name = "alloy-transport"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6576826236d84590b037e333bfc3643ae0a90cb325ca9da565419102047b3b81"
+checksum = "e10be13ab13ddadcfaec3320cc6cee83548a1ae32ada214ff864604cbf5c6f77"
dependencies = [
"alloy-json-rpc",
"auto_impl",
@@ -897,9 +913,9 @@ dependencies = [
[[package]]
name = "alloy-transport-http"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e38c841f63141cad3f1a4378cedf121914b32932cf09b66c6006d4a906112136"
+checksum = "df948f2f9530ed0325d789ad98aa08403aaeaf55ddd6eeaf0cda143e02afab39"
dependencies = [
"alloy-json-rpc",
"alloy-transport",
@@ -913,9 +929,9 @@ dependencies = [
[[package]]
name = "alloy-transport-ipc"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03044aa44ec1da9468adf6a6e8c27d2bbaafd7a854ae14ac3e093b214139816d"
+checksum = "a757d266eb7927d59a04878c99b450df0da49125e61d641f48fa7c6a82dd4418"
dependencies = [
"alloy-json-rpc",
"alloy-pubsub",
@@ -934,9 +950,9 @@ dependencies = [
[[package]]
name = "alloy-transport-ws"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55691c488ab3c88f664b6ffcaf9027f106b4642e6ff220502b6f645543a9efe8"
+checksum = "8c799e5804cadb4a09e0ff21be230cc1025e5a21e02a41aa9c0022fdb41f830f"
dependencies = [
"alloy-pubsub",
"alloy-transport",
@@ -953,9 +969,9 @@ dependencies = [
[[package]]
name = "alloy-trie"
-version = "0.9.5"
+version = "0.9.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f14b5d9b2c2173980202c6ff470d96e7c5e202c65a9f67884ad565226df7fbb"
+checksum = "7895d0d2c946c0ae9253c227db77b9fc707383831058e6a5232fdfc774b28259"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -973,9 +989,9 @@ dependencies = [
[[package]]
name = "alloy-tx-macros"
-version = "2.4.2"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25484345e4d89c259235e200d4f895eba33e70f125f4e8bb37a7aa69a97bd656"
+checksum = "60fa90c57738ace5b38106c9f743f3d6d47de09a82e82ecfc42702c1acf116ee"
dependencies = [
"darling 0.23.0",
"proc-macro2",
@@ -1478,9 +1494,9 @@ checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9"
[[package]]
name = "async-compression"
-version = "0.4.44"
+version = "0.4.48"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "515a1f282e33d55983c499d7e9e87082e81cbc32974825bf9032f928392d5844"
+checksum = "fb61aea1a7def73ee7c350a184f0e70b32c182344e2e75bf70c9b621b83417fd"
dependencies = [
"compression-codecs",
"compression-core",
@@ -1706,7 +1722,7 @@ version = "0.72.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"cexpr",
"clang-sys",
"itertools 0.13.0",
@@ -1757,9 +1773,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
-version = "2.13.1"
+version = "2.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
dependencies = [
"arbitrary",
"serde_core",
@@ -1827,7 +1843,7 @@ version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6339a700715bda376f5ea65c76e8fe8fc880930d8b0638cea68e7f3da6538e0a"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"boa_interner",
"boa_macros",
"boa_string",
@@ -1844,7 +1860,7 @@ checksum = "1521be326f8a5c8887e95d4ce7f002917a002a23f7b93b9a6a2bf50ed4157824"
dependencies = [
"aligned-vec",
"arrayvec",
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"boa_ast",
"boa_gc",
"boa_interner",
@@ -1936,7 +1952,7 @@ version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35bd957fa9fa93e3a001a8aba5a5cd40c2bbfde486378be4c4b472fd304aaddb"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"boa_ast",
"boa_interner",
"boa_macros",
@@ -2190,9 +2206,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.4.5"
+version = "1.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "005ec2760ca554fae18df7a11195552ec576cd665632a881bc011d5bb2fd4d80"
+checksum = "54413ede23c2daf518f35156dfde027feb2374004d63bd497f983c8db9c0e313"
dependencies = [
"find-msvc-tools",
"jobserver",
@@ -2217,9 +2233,9 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "cfg_aliases"
@@ -2302,9 +2318,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.6.6"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
"clap_derive",
@@ -2312,9 +2328,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.6.6"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstream",
"anstyle",
@@ -2324,9 +2340,9 @@ dependencies = [
[[package]]
name = "clap_derive"
-version = "4.6.4"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061"
+checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
dependencies = [
"heck",
"proc-macro2",
@@ -2520,16 +2536,16 @@ dependencies = [
[[package]]
name = "compression-codecs"
-version = "0.4.39"
+version = "0.4.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2fe67f2944eef52fc7b106b8c9450d243a88701a0c065f7f57235e76abaed7df"
+checksum = "bef16c47ba2797aa6a909cc37d39911f3a6743811fe7408ac0b0cc0276b656e9"
dependencies = [
"brotli",
"compression-core",
"flate2",
"memchr",
- "zstd",
- "zstd-safe",
+ "zstd 0.14.0",
+ "zstd-safe 8.0.0",
]
[[package]]
@@ -2769,7 +2785,7 @@ version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"crossterm_winapi",
"derive_more",
"document-features",
@@ -3347,7 +3363,7 @@ dependencies = [
[[package]]
name = "ef-test-runner"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"clap",
"ef-tests",
@@ -3355,7 +3371,7 @@ dependencies = [
[[package]]
name = "ef-tests"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -3802,13 +3818,12 @@ dependencies = [
"futures-util",
"reth-e2e-test-utils",
"reth-ethereum",
- "serde_json",
"tokio",
]
[[package]]
name = "example-full-contract-state"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"eyre",
@@ -3926,7 +3941,7 @@ dependencies = [
[[package]]
name = "exex-subscription"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"clap",
@@ -4030,9 +4045,9 @@ dependencies = [
[[package]]
name = "find-msvc-tools"
-version = "0.1.12"
+version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
+checksum = "ef25905e51abafe4dcea6c15fec58c57b601cdbd0ee53d22ea1d3016c587d39b"
[[package]]
name = "firehose-tracer"
@@ -4395,7 +4410,7 @@ version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ddddbf932745a6be37109b6112d3ee09696106f848449069d3a57bba937ab82e"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"libc",
"libgit2-sys",
"log",
@@ -5145,7 +5160,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7decbc9dfa45a4a827a6ff7b822c113b1285678a937e84213417d4ca8a095782"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"inkwell_internals",
"libc",
"llvm-sys",
@@ -5169,7 +5184,7 @@ version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd5b3eaf1a28b758ac0faa5a4254e8ab2705605496f1b1f3fbbc3988ad73d199"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"inotify-sys",
"libc",
]
@@ -5861,7 +5876,7 @@ version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"libc",
"plain",
"redox_syscall 0.7.4",
@@ -5901,7 +5916,7 @@ version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f50e8f47623268b5407192d26876c4d7f89d686ca130fdc53bced4814cd29f8"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
]
[[package]]
@@ -6325,7 +6340,7 @@ version = "0.31.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d6d0705320c1e6ba1d912b5e37cf18071b6c2e9b7fa8215a1e8a7651966f5d3"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"cfg-if",
"cfg_aliases",
"libc",
@@ -6365,7 +6380,7 @@ version = "8.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d3d07927151ff8575b7087f245456e549fea62edf0ec4e565a5ee50c8402bc3"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"fsevent-sys",
"inotify",
"kqueue",
@@ -6383,7 +6398,7 @@ version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42b8cfee0e339a0337359f3c88165702ac6e600dc01c0cc9579a92d62b08477a"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
]
[[package]]
@@ -6547,7 +6562,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
]
[[package]]
@@ -7263,7 +7278,7 @@ version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25485360a54d6861439d60facef26de713b1e126bf015ec8f98239467a2b82f7"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"chrono",
"flate2",
"procfs-core",
@@ -7276,7 +7291,7 @@ version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6401bf7b6af22f78b563665d15a22e9aef27775b79b149a66ca022468a4e405"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"chrono",
"hex",
]
@@ -7289,7 +7304,7 @@ checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744"
dependencies = [
"bit-set",
"bit-vec",
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"num-traits",
"rand 0.9.4",
"rand_chacha 0.9.0",
@@ -7603,7 +7618,7 @@ version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cbb175c433c8e28a809d1f5773a2ae96e68c0ce40db865cbab1020bf33ae479c"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"compact_str",
"hashbrown 0.17.0",
"itertools 0.14.0",
@@ -7636,7 +7651,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "66e3d19bcc9130ca376277d93b60767ff121ace3be06f5f95f81dd68956407d1"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"hashbrown 0.17.0",
"indoc",
"instability",
@@ -7656,7 +7671,7 @@ version = "11.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "498cd0dc59d73224351ee52a95fee0f1a617a2eae0e7d9d720cc622c73a54186"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
]
[[package]]
@@ -7691,7 +7706,7 @@ version = "0.5.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
]
[[package]]
@@ -7700,7 +7715,7 @@ version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f450ad9c3b1da563fb6948a8e0fb0fb9269711c9c73d9ea1de5058c79c8d643a"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
]
[[package]]
@@ -7781,11 +7796,11 @@ dependencies = [
[[package]]
name = "reqwest"
-version = "0.13.4"
+version = "0.13.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"
+checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029"
dependencies = [
- "base64 0.22.1",
+ "base64 0.23.1",
"bytes",
"futures-channel",
"futures-core",
@@ -7829,7 +7844,7 @@ checksum = "1e061d1b48cb8d38042de4ae0a7a6401009d6143dc80d2e2d6f31f0bdd6470c7"
[[package]]
name = "reth"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-evm",
"alloy-node-bindings",
@@ -7882,12 +7897,12 @@ dependencies = [
"tokio",
"toml",
"tracing",
- "zstd",
+ "zstd 0.13.3",
]
[[package]]
name = "reth-basic-payload-builder"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -7913,12 +7928,12 @@ dependencies = [
[[package]]
name = "reth-bb"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
"alloy-evm",
- "alloy-hardforks 0.4.8",
+ "alloy-hardforks 0.4.9",
"alloy-primitives",
"alloy-rlp",
"alloy-rpc-types",
@@ -7960,7 +7975,7 @@ dependencies = [
[[package]]
name = "reth-chain-state"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -7973,12 +7988,10 @@ dependencies = [
"pin-project",
"rand 0.9.4",
"reth-chainspec",
- "reth-errors",
"reth-ethereum-primitives",
"reth-execution-types",
"reth-metrics",
"reth-primitives-traits",
- "reth-storage-api",
"reth-testing-utils",
"reth-trie",
"reth-trie-sparse",
@@ -7991,7 +8004,7 @@ dependencies = [
[[package]]
name = "reth-chainspec"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-chains",
"alloy-consensus",
@@ -8011,7 +8024,7 @@ dependencies = [
[[package]]
name = "reth-cli"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-genesis",
"clap",
@@ -8023,7 +8036,7 @@ dependencies = [
[[package]]
name = "reth-cli-commands"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-chains",
"alloy-consensus",
@@ -8109,12 +8122,12 @@ dependencies = [
"toml",
"tracing",
"url",
- "zstd",
+ "zstd 0.13.3",
]
[[package]]
name = "reth-cli-runner"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"reth-tasks",
"tokio",
@@ -8123,7 +8136,7 @@ dependencies = [
[[package]]
name = "reth-cli-util"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -8145,9 +8158,9 @@ dependencies = [
[[package]]
name = "reth-codecs"
-version = "0.7.1"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a6bac09d9d84a412ae151149ec870d6eb7770335c5eb63f209453d81deff8d39"
+checksum = "ef769807575055ccafe9db3a9d7eca3b97ca8213122942e71c47915776ec52b2"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8166,9 +8179,9 @@ dependencies = [
[[package]]
name = "reth-codecs-derive"
-version = "0.7.1"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0101b1f474563c4c48c04fc2477199279a53d9c19b65301c6fd2131cf6e4a330"
+checksum = "0652b5da6dcce54dc8bcfb69c5241b0ef09211963f76929d4d63e23767b43bf6"
dependencies = [
"proc-macro2",
"quote",
@@ -8177,7 +8190,7 @@ dependencies = [
[[package]]
name = "reth-config"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"eyre",
@@ -8195,7 +8208,7 @@ dependencies = [
[[package]]
name = "reth-consensus"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -8208,7 +8221,7 @@ dependencies = [
[[package]]
name = "reth-consensus-common"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8222,7 +8235,7 @@ dependencies = [
[[package]]
name = "reth-consensus-debug-client"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8246,7 +8259,7 @@ dependencies = [
[[package]]
name = "reth-db"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -8281,7 +8294,7 @@ dependencies = [
[[package]]
name = "reth-db-api"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8310,7 +8323,7 @@ dependencies = [
[[package]]
name = "reth-db-common"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-genesis",
@@ -8341,7 +8354,7 @@ dependencies = [
[[package]]
name = "reth-db-models"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -8357,7 +8370,7 @@ dependencies = [
[[package]]
name = "reth-discv4"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -8384,7 +8397,7 @@ dependencies = [
[[package]]
name = "reth-discv5"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -8409,7 +8422,7 @@ dependencies = [
[[package]]
name = "reth-dns-discovery"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-chains",
"alloy-primitives",
@@ -8437,7 +8450,7 @@ dependencies = [
[[package]]
name = "reth-downloaders"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8477,10 +8490,11 @@ dependencies = [
[[package]]
name = "reth-e2e-test-utils"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
+ "alloy-genesis",
"alloy-network",
"alloy-primitives",
"alloy-provider",
@@ -8503,7 +8517,6 @@ dependencies = [
"reth-engine-primitives",
"reth-ethereum-primitives",
"reth-network-api",
- "reth-network-p2p",
"reth-network-peers",
"reth-node-api",
"reth-node-builder",
@@ -8514,6 +8527,7 @@ dependencies = [
"reth-payload-primitives",
"reth-primitives-traits",
"reth-provider",
+ "reth-prune-types",
"reth-rpc-api",
"reth-rpc-builder",
"reth-rpc-eth-api",
@@ -8522,6 +8536,7 @@ dependencies = [
"reth-tasks",
"reth-tokio-util",
"reth-tracing",
+ "reth-transaction-pool",
"reth-trie",
"reth-trie-db",
"revm",
@@ -8535,7 +8550,7 @@ dependencies = [
[[package]]
name = "reth-ecies"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"aes",
"alloy-primitives",
@@ -8561,7 +8576,7 @@ dependencies = [
[[package]]
name = "reth-engine-local"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -8583,7 +8598,7 @@ dependencies = [
[[package]]
name = "reth-engine-primitives"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8610,7 +8625,7 @@ dependencies = [
[[package]]
name = "reth-engine-tree"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -8681,11 +8696,10 @@ dependencies = [
[[package]]
name = "reth-engine-util"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
- "alloy-rlp",
"alloy-rpc-types-engine",
"eyre",
"futures",
@@ -8710,7 +8724,7 @@ dependencies = [
[[package]]
name = "reth-era"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8735,7 +8749,7 @@ dependencies = [
[[package]]
name = "reth-era-downloader"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"bytes",
@@ -8753,7 +8767,7 @@ dependencies = [
[[package]]
name = "reth-era-utils"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -8784,7 +8798,7 @@ dependencies = [
[[package]]
name = "reth-errors"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"reth-consensus",
"reth-execution-errors",
@@ -8794,7 +8808,7 @@ dependencies = [
[[package]]
name = "reth-eth-wire"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-chains",
"alloy-consensus",
@@ -8832,14 +8846,14 @@ dependencies = [
[[package]]
name = "reth-eth-wire-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-chains",
"alloy-consensus",
"alloy-eip7928",
"alloy-eips",
"alloy-genesis",
- "alloy-hardforks 0.4.8",
+ "alloy-hardforks 0.4.9",
"alloy-primitives",
"alloy-rlp",
"alloy-trie",
@@ -8860,7 +8874,7 @@ dependencies = [
[[package]]
name = "reth-ethereum"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-rpc-types-engine",
"alloy-rpc-types-eth",
@@ -8900,7 +8914,7 @@ dependencies = [
[[package]]
name = "reth-ethereum-cli"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"clap",
"eyre",
@@ -8923,7 +8937,7 @@ dependencies = [
[[package]]
name = "reth-ethereum-consensus"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8939,7 +8953,7 @@ dependencies = [
[[package]]
name = "reth-ethereum-engine-primitives"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -8955,10 +8969,10 @@ dependencies = [
[[package]]
name = "reth-ethereum-forks"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eip2124",
- "alloy-hardforks 0.4.8",
+ "alloy-hardforks 0.4.9",
"alloy-primitives",
"arbitrary",
"auto_impl",
@@ -8968,7 +8982,7 @@ dependencies = [
[[package]]
name = "reth-ethereum-payload-builder"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -8997,7 +9011,7 @@ dependencies = [
[[package]]
name = "reth-ethereum-primitives"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9018,7 +9032,7 @@ dependencies = [
[[package]]
name = "reth-etl"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"rayon",
@@ -9028,7 +9042,7 @@ dependencies = [
[[package]]
name = "reth-evm"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -9054,7 +9068,7 @@ dependencies = [
[[package]]
name = "reth-evm-ethereum"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9079,7 +9093,7 @@ dependencies = [
[[package]]
name = "reth-execution-cache"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"fixed-cache",
@@ -9090,14 +9104,14 @@ dependencies = [
"reth-primitives-traits",
"reth-provider",
"reth-revm",
- "reth-trie",
+ "reth-storage-api",
"revm",
"tracing",
]
[[package]]
name = "reth-execution-errors"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-evm",
"alloy-primitives",
@@ -9109,9 +9123,10 @@ dependencies = [
[[package]]
name = "reth-execution-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
+ "alloy-eip7928",
"alloy-eips",
"alloy-evm",
"alloy-primitives",
@@ -9130,7 +9145,7 @@ dependencies = [
[[package]]
name = "reth-exex"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9175,7 +9190,7 @@ dependencies = [
[[package]]
name = "reth-exex-test-utils"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"eyre",
@@ -9206,7 +9221,7 @@ dependencies = [
[[package]]
name = "reth-exex-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -9223,7 +9238,7 @@ dependencies = [
[[package]]
name = "reth-firehose"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -9251,7 +9266,7 @@ dependencies = [
[[package]]
name = "reth-firehose-tests"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9277,7 +9292,7 @@ dependencies = [
[[package]]
name = "reth-fs-util"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"serde",
"serde_json",
@@ -9286,7 +9301,7 @@ dependencies = [
[[package]]
name = "reth-invalid-block-hooks"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9317,7 +9332,7 @@ dependencies = [
[[package]]
name = "reth-ipc"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"bytes",
"futures",
@@ -9339,9 +9354,9 @@ dependencies = [
[[package]]
name = "reth-libmdbx"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"byteorder",
"crossbeam-queue",
"dashmap",
@@ -9356,7 +9371,7 @@ dependencies = [
[[package]]
name = "reth-mdbx-sys"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"bindgen",
"cc",
@@ -9364,7 +9379,7 @@ dependencies = [
[[package]]
name = "reth-metrics"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"futures",
"libc",
@@ -9377,7 +9392,7 @@ dependencies = [
[[package]]
name = "reth-net-banlist"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"ipnet",
@@ -9385,7 +9400,7 @@ dependencies = [
[[package]]
name = "reth-net-nat"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"futures-util",
"if-addrs",
@@ -9399,7 +9414,7 @@ dependencies = [
[[package]]
name = "reth-network"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -9437,6 +9452,7 @@ dependencies = [
"reth-fs-util",
"reth-metrics",
"reth-net-banlist",
+ "reth-net-nat",
"reth-network",
"reth-network-api",
"reth-network-p2p",
@@ -9469,7 +9485,7 @@ dependencies = [
[[package]]
name = "reth-network-api"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -9493,7 +9509,7 @@ dependencies = [
[[package]]
name = "reth-network-p2p"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -9517,7 +9533,7 @@ dependencies = [
[[package]]
name = "reth-network-peers"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -9534,7 +9550,7 @@ dependencies = [
[[package]]
name = "reth-network-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eip2124",
"humantime-serde",
@@ -9547,7 +9563,7 @@ dependencies = [
[[package]]
name = "reth-nippy-jar"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"anyhow",
"bincode",
@@ -9561,12 +9577,12 @@ dependencies = [
"tempfile",
"thiserror 2.0.20",
"tracing",
- "zstd",
+ "zstd 0.13.3",
]
[[package]]
name = "reth-node-api"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-rpc-types-engine",
"eyre",
@@ -9589,7 +9605,7 @@ dependencies = [
[[package]]
name = "reth-node-builder"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9661,7 +9677,7 @@ dependencies = [
[[package]]
name = "reth-node-core"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9717,7 +9733,7 @@ dependencies = [
[[package]]
name = "reth-node-ethereum"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-contract",
@@ -9788,7 +9804,7 @@ dependencies = [
[[package]]
name = "reth-node-ethstats"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -9811,7 +9827,7 @@ dependencies = [
[[package]]
name = "reth-node-events"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9834,7 +9850,7 @@ dependencies = [
[[package]]
name = "reth-node-metrics"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"bytes",
"eyre",
@@ -9864,7 +9880,7 @@ dependencies = [
[[package]]
name = "reth-node-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"reth-chainspec",
"reth-db-api",
@@ -9875,7 +9891,7 @@ dependencies = [
[[package]]
name = "reth-payload-builder"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -9898,7 +9914,7 @@ dependencies = [
[[package]]
name = "reth-payload-builder-primitives"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"pin-project",
"reth-payload-primitives",
@@ -9909,7 +9925,7 @@ dependencies = [
[[package]]
name = "reth-payload-primitives"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -9933,7 +9949,7 @@ dependencies = [
[[package]]
name = "reth-payload-util"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -9942,7 +9958,7 @@ dependencies = [
[[package]]
name = "reth-payload-validator"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-rpc-types-engine",
@@ -9951,9 +9967,9 @@ dependencies = [
[[package]]
name = "reth-primitives-traits"
-version = "0.7.1"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18341fba74d004c7fad32f784488baaea9adebfde7a4f231a4d8d445aea70347"
+checksum = "c6835d57ed17047c8ba42992550b3cd1232cb92deb119715d32f63079fb5844d"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -9985,7 +10001,7 @@ dependencies = [
[[package]]
name = "reth-provider"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -10024,7 +10040,6 @@ dependencies = [
"reth-storage-overlay",
"reth-tasks",
"reth-testing-utils",
- "reth-tokio-util",
"reth-tracing",
"reth-trie",
"reth-trie-db",
@@ -10034,13 +10049,12 @@ dependencies = [
"strum 0.27.2",
"tempfile",
"tokio",
- "tokio-stream",
"tracing",
]
[[package]]
name = "reth-prune"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -10071,7 +10085,7 @@ dependencies = [
[[package]]
name = "reth-prune-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"arbitrary",
@@ -10091,7 +10105,7 @@ dependencies = [
[[package]]
name = "reth-revm"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -10107,7 +10121,7 @@ dependencies = [
[[package]]
name = "reth-rpc"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-dyn-abi",
@@ -10190,7 +10204,7 @@ dependencies = [
[[package]]
name = "reth-rpc-api"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-genesis",
@@ -10220,7 +10234,7 @@ dependencies = [
[[package]]
name = "reth-rpc-builder"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-network",
@@ -10278,7 +10292,7 @@ dependencies = [
[[package]]
name = "reth-rpc-convert"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-evm",
@@ -10298,7 +10312,7 @@ dependencies = [
[[package]]
name = "reth-rpc-e2e-tests"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-genesis",
"alloy-rpc-types-engine",
@@ -10318,7 +10332,7 @@ dependencies = [
[[package]]
name = "reth-rpc-engine-api"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -10354,7 +10368,7 @@ dependencies = [
[[package]]
name = "reth-rpc-eth-api"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-dyn-abi",
@@ -10400,7 +10414,7 @@ dependencies = [
[[package]]
name = "reth-rpc-eth-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-chains",
"alloy-consensus",
@@ -10451,12 +10465,14 @@ dependencies = [
[[package]]
name = "reth-rpc-layer"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-rpc-types-engine",
"brotli",
+ "bytes",
"flate2",
"http",
+ "http-body",
"http-body-util",
"jsonrpsee",
"jsonrpsee-http-client",
@@ -10466,12 +10482,12 @@ dependencies = [
"tower",
"tower-http",
"tracing",
- "zstd",
+ "zstd 0.13.3",
]
[[package]]
name = "reth-rpc-server-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-engine",
@@ -10485,9 +10501,9 @@ dependencies = [
[[package]]
name = "reth-rpc-traits"
-version = "0.7.0"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f410d6bff1fd059ebaec2edeff1326f103f61162158411325d78158f94b2b4a9"
+checksum = "8d6c3c55bf695994b2ce87e05eaf49c1135c84d3d1f5e774df6077a8173ebdb0"
dependencies = [
"alloy-consensus",
"alloy-network",
@@ -10500,7 +10516,7 @@ dependencies = [
[[package]]
name = "reth-snap-sync"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -10519,6 +10535,9 @@ dependencies = [
"reth-network-peers",
"reth-primitives-traits",
"reth-provider",
+ "reth-stages",
+ "reth-stages-api",
+ "reth-stages-types",
"reth-storage-api",
"reth-storage-errors",
"reth-tasks",
@@ -10529,11 +10548,12 @@ dependencies = [
"thiserror 2.0.20",
"tokio",
"tokio-util",
+ "tracing",
]
[[package]]
name = "reth-stages"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -10596,7 +10616,7 @@ dependencies = [
[[package]]
name = "reth-stages-api"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -10630,7 +10650,7 @@ dependencies = [
[[package]]
name = "reth-stages-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"arbitrary",
@@ -10646,7 +10666,7 @@ dependencies = [
[[package]]
name = "reth-static-file"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"assert_matches",
@@ -10669,7 +10689,7 @@ dependencies = [
[[package]]
name = "reth-static-file-types"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"clap",
@@ -10687,7 +10707,7 @@ dependencies = [
[[package]]
name = "reth-storage-api"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eip7928",
@@ -10695,6 +10715,7 @@ dependencies = [
"alloy-primitives",
"alloy-rpc-types-engine",
"auto_impl",
+ "reth-chain-state",
"reth-chainspec",
"reth-db-api",
"reth-db-models",
@@ -10704,17 +10725,15 @@ dependencies = [
"reth-prune-types",
"reth-stages-types",
"reth-storage-errors",
- "reth-tokio-util",
"reth-trie-common",
"revm",
"serde_json",
"tokio",
- "tokio-stream",
]
[[package]]
name = "reth-storage-errors"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-eips",
"alloy-primitives",
@@ -10730,7 +10749,7 @@ dependencies = [
[[package]]
name = "reth-storage-overlay"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -10760,7 +10779,7 @@ dependencies = [
[[package]]
name = "reth-storage-rpc-provider"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -10770,6 +10789,7 @@ dependencies = [
"alloy-rpc-types",
"alloy-rpc-types-engine",
"dashmap",
+ "reth-chain-state",
"reth-chainspec",
"reth-db-api",
"reth-errors",
@@ -10789,7 +10809,7 @@ dependencies = [
[[package]]
name = "reth-tasks"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"crossbeam-utils",
"dashmap",
@@ -10809,7 +10829,7 @@ dependencies = [
[[package]]
name = "reth-testing-utils"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -10825,7 +10845,7 @@ dependencies = [
[[package]]
name = "reth-tokio-util"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"tokio",
"tokio-stream",
@@ -10834,7 +10854,7 @@ dependencies = [
[[package]]
name = "reth-tracing"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"clap",
"eyre",
@@ -10853,7 +10873,7 @@ dependencies = [
[[package]]
name = "reth-tracing-otlp"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"base64 0.22.1",
"clap",
@@ -10871,7 +10891,7 @@ dependencies = [
[[package]]
name = "reth-transaction-pool"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -10880,7 +10900,7 @@ dependencies = [
"aquamarine",
"assert_matches",
"auto_impl",
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"codspeed-criterion-compat",
"futures",
"futures-util",
@@ -10922,7 +10942,7 @@ dependencies = [
[[package]]
name = "reth-trie"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -10954,7 +10974,7 @@ dependencies = [
[[package]]
name = "reth-trie-common"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-eips",
@@ -10987,7 +11007,7 @@ dependencies = [
[[package]]
name = "reth-trie-db"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
@@ -11014,7 +11034,7 @@ dependencies = [
[[package]]
name = "reth-trie-parallel"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-evm",
"alloy-primitives",
@@ -11041,7 +11061,7 @@ dependencies = [
[[package]]
name = "reth-trie-sparse"
-version = "2.6.0"
+version = "2.7.0"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -11070,18 +11090,18 @@ dependencies = [
[[package]]
name = "reth-zstd-compressors"
-version = "0.7.1"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dbdee2f0ad09dc32b43ab52641f8239766a66de4345834bad27d5cfa2f62864d"
+checksum = "253f7d5772f3c8d0dcc3fdac398db6bca4f6f6e602d240c3bc47338dde0910dd"
dependencies = [
- "zstd",
+ "zstd 0.13.3",
]
[[package]]
name = "revm"
-version = "43.0.2"
+version = "43.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55f2322f5ea197fac72c2cdc88cb501b2a7db0b0009911133fd3dda45bfceedd"
+checksum = "62b2fbb3bdce72fef4f156e2164bdfde44dc3aeebc5b4f31a413fba0c09c524c"
dependencies = [
"revm-bytecode",
"revm-context",
@@ -11111,9 +11131,9 @@ dependencies = [
[[package]]
name = "revm-context"
-version = "43.0.2"
+version = "43.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c16835bc2ead203219a18fcc84c2c71879ad6b890e8a71150cf7f10e4e355dc4"
+checksum = "9b06efea511a15ff8309acaa4c283239b444b461bbd2e9f0326c8586f45fb1da"
dependencies = [
"bitvec",
"cfg-if",
@@ -11128,9 +11148,9 @@ dependencies = [
[[package]]
name = "revm-context-interface"
-version = "43.0.1"
+version = "43.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3b4109bdceaca5ee6e27bf41f6b156f2b15892dc5bb47d3530bc4d3b3060077"
+checksum = "3068385c68f6a3bd2e781dd81cefd25c98dd0a574de6c8ec2a90acc33318b2da"
dependencies = [
"alloy-eip2930",
"alloy-eip7702",
@@ -11144,9 +11164,9 @@ dependencies = [
[[package]]
name = "revm-database"
-version = "43.0.0"
+version = "43.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "31d764afa9a1c9278c05d40461b07319d21ccb39c1bdf0e9dde7e5ea7d9be53d"
+checksum = "8db6fb10912d7fba0161e91d4577ce71fa9726ec38a4d420e4242e504a47aa8f"
dependencies = [
"alloy-eips",
"derive_more",
@@ -11160,9 +11180,9 @@ dependencies = [
[[package]]
name = "revm-database-interface"
-version = "43.0.0"
+version = "43.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d2a27e4440c2ef4932afdaa28a1d1ac8601504c7030c1a387b5e307d07d864d1"
+checksum = "5581ecadb3d0d1c18a91f1797d6b7c4c17720bea596e9e9ec90b95803db2bc77"
dependencies = [
"auto_impl",
"either",
@@ -11174,9 +11194,9 @@ dependencies = [
[[package]]
name = "revm-handler"
-version = "43.0.2"
+version = "43.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73a7409031d87ec281b74efff65d7a4dbea9d80727a55dbc7e4b3fd77b5e03fb"
+checksum = "ba5102e9c02b9d27e7c98f449b495a2c2b2ec011209f4eeca16e054520ec5ac4"
dependencies = [
"auto_impl",
"derive-where",
@@ -11193,9 +11213,9 @@ dependencies = [
[[package]]
name = "revm-inspector"
-version = "43.0.2"
+version = "43.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a56f37224afd628f7244aa6965609ada04b440ed8ab7a19f55e4291df5a0112"
+checksum = "825cf946c1bf3178f6a93aae4e8064a0ebd505bc764a7fe3d49411e7242e4091"
dependencies = [
"auto_impl",
"either",
@@ -11211,10 +11231,11 @@ dependencies = [
[[package]]
name = "revm-inspectors"
-version = "0.43.0"
+version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79b609cb78fcb3a8c10f3190847c9bb0223423cf46e2de30a61ea9e37a3e6736"
+checksum = "8c1f17ebaa6be220728837731a3c87d1a542bf31a68138e9364a3a33b149415c"
dependencies = [
+ "alloy-eip2930",
"alloy-primitives",
"alloy-rpc-types-eth",
"alloy-rpc-types-trace",
@@ -11223,7 +11244,9 @@ dependencies = [
"boa_engine",
"boa_gc",
"colorchoice",
+ "num-bigint",
"revm",
+ "ruint",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -11231,9 +11254,9 @@ dependencies = [
[[package]]
name = "revm-interpreter"
-version = "43.0.1"
+version = "43.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "932f7fe05a2cdeb08195dd7e88a09a4da7c3660cdc6e62720839c77ba77f65aa"
+checksum = "aa32f5099a266329d1869d6f9bf4bb7894345d2b58c57d05396f67385d65f299"
dependencies = [
"revm-bytecode",
"revm-context-interface",
@@ -11244,9 +11267,9 @@ dependencies = [
[[package]]
name = "revm-precompile"
-version = "43.0.2"
+version = "43.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac4dc0279f2a44770faa8c93d008df684440cf573c91b8e0e39d0d581abf7b3d"
+checksum = "aa80b8cef09bead8c8b1afa7733b09fc1428f49158d8657c239268409d2a2bf7"
dependencies = [
"ark-bls12-381",
"ark-bn254",
@@ -11282,22 +11305,23 @@ dependencies = [
[[package]]
name = "revm-state"
-version = "43.0.0"
+version = "43.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7cd02082cf1baca01e8bc17456c45136bdc66632395a98db1c1a2afe4c6ea87f"
+checksum = "3b2d2ec0be925c4c87ff4afae33af4b9f693d9b011f74d6b4d52267a62df0c49"
dependencies = [
"alloy-eip7928",
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"nonmax",
"revm-bytecode",
"revm-primitives",
"serde",
+ "triomphe",
]
[[package]]
name = "revmc"
version = "0.1.0"
-source = "git+https://github.com/paradigmxyz/revmc?branch=main#68835cf19661307d293c26dd06bd1e59ccae5144"
+source = "git+https://github.com/paradigmxyz/revmc?branch=main#87ea260a9bd25759beab64753d2f36227891ca4a"
dependencies = [
"revm-bytecode",
"revm-context-interface",
@@ -11317,7 +11341,7 @@ dependencies = [
[[package]]
name = "revmc-backend"
version = "0.1.0"
-source = "git+https://github.com/paradigmxyz/revmc?branch=main#68835cf19661307d293c26dd06bd1e59ccae5144"
+source = "git+https://github.com/paradigmxyz/revmc?branch=main#87ea260a9bd25759beab64753d2f36227891ca4a"
dependencies = [
"eyre",
"ruint",
@@ -11326,12 +11350,12 @@ dependencies = [
[[package]]
name = "revmc-build"
version = "0.1.0"
-source = "git+https://github.com/paradigmxyz/revmc?branch=main#68835cf19661307d293c26dd06bd1e59ccae5144"
+source = "git+https://github.com/paradigmxyz/revmc?branch=main#87ea260a9bd25759beab64753d2f36227891ca4a"
[[package]]
name = "revmc-builtins"
version = "0.1.0"
-source = "git+https://github.com/paradigmxyz/revmc?branch=main#68835cf19661307d293c26dd06bd1e59ccae5144"
+source = "git+https://github.com/paradigmxyz/revmc?branch=main#87ea260a9bd25759beab64753d2f36227891ca4a"
dependencies = [
"paste",
"revm-bytecode",
@@ -11346,10 +11370,10 @@ dependencies = [
[[package]]
name = "revmc-codegen"
version = "0.1.0"
-source = "git+https://github.com/paradigmxyz/revmc?branch=main#68835cf19661307d293c26dd06bd1e59ccae5144"
+source = "git+https://github.com/paradigmxyz/revmc?branch=main#87ea260a9bd25759beab64753d2f36227891ca4a"
dependencies = [
"alloy-primitives",
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"bitvec",
"derive_more",
"either",
@@ -11377,7 +11401,7 @@ dependencies = [
[[package]]
name = "revmc-context"
version = "0.1.0"
-source = "git+https://github.com/paradigmxyz/revmc?branch=main#68835cf19661307d293c26dd06bd1e59ccae5144"
+source = "git+https://github.com/paradigmxyz/revmc?branch=main#87ea260a9bd25759beab64753d2f36227891ca4a"
dependencies = [
"revm-context",
"revm-context-interface",
@@ -11392,7 +11416,7 @@ dependencies = [
[[package]]
name = "revmc-llvm"
version = "0.1.0"
-source = "git+https://github.com/paradigmxyz/revmc?branch=main#68835cf19661307d293c26dd06bd1e59ccae5144"
+source = "git+https://github.com/paradigmxyz/revmc?branch=main#87ea260a9bd25759beab64753d2f36227891ca4a"
dependencies = [
"alloy-primitives",
"cc",
@@ -11405,7 +11429,7 @@ dependencies = [
[[package]]
name = "revmc-runtime"
version = "0.1.0"
-source = "git+https://github.com/paradigmxyz/revmc?branch=main#68835cf19661307d293c26dd06bd1e59ccae5144"
+source = "git+https://github.com/paradigmxyz/revmc?branch=main#87ea260a9bd25759beab64753d2f36227891ca4a"
dependencies = [
"alloy-evm",
"alloy-primitives",
@@ -11650,7 +11674,7 @@ version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"errno",
"libc",
"linux-raw-sys",
@@ -11921,7 +11945,7 @@ version = "3.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"core-foundation 0.10.1",
"core-foundation-sys",
"libc",
@@ -12523,9 +12547,9 @@ dependencies = [
[[package]]
name = "syn-solidity"
-version = "1.7.2"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c6415502cd1e9ed58b3ceb415164b812d5572757b1a6f0e280ae806723c1fab"
+checksum = "eb6a2e3c7f7a3e4e83d1752cec5d1e357ced0cf96e85419b6a07f227db3def3a"
dependencies = [
"paste",
"proc-macro2",
@@ -12573,7 +12597,7 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"core-foundation 0.9.4",
"system-configuration-sys",
]
@@ -12767,7 +12791,7 @@ version = "3.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d2e834949be5111506bb252643498af1514f600d9e1dceedaa42afae155b67f"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"cfg-if",
"libc",
"log",
@@ -12969,6 +12993,7 @@ dependencies = [
"futures-core",
"futures-io",
"futures-sink",
+ "futures-util",
"libc",
"pin-project-lite",
"slab",
@@ -13111,7 +13136,7 @@ checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
dependencies = [
"async-compression",
"base64 0.22.1",
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"bytes",
"futures-core",
"futures-util",
@@ -13378,6 +13403,15 @@ dependencies = [
"rlp",
]
+[[package]]
+name = "triomphe"
+version = "0.1.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b40688ea6389c8171614b25491f71d4a27946e0c7ce2da1c6de27e25abf1a0ae"
+dependencies = [
+ "serde",
+]
+
[[package]]
name = "try-lock"
version = "0.2.5"
@@ -13783,7 +13817,7 @@ version = "0.244.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
dependencies = [
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"hashbrown 0.15.5",
"indexmap 2.14.2",
"semver 1.0.28",
@@ -14362,7 +14396,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
dependencies = [
"anyhow",
- "bitflags 2.13.1",
+ "bitflags 2.13.2",
"indexmap 2.14.2",
"log",
"serde",
@@ -14591,7 +14625,16 @@ version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a"
dependencies = [
- "zstd-safe",
+ "zstd-safe 7.2.4",
+]
+
+[[package]]
+name = "zstd"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf06bd8162af0734b344780deb55b42a2429ae430870d13fcc12f238e880fe6e"
+dependencies = [
+ "zstd-safe 8.0.0",
]
[[package]]
@@ -14603,6 +14646,15 @@ dependencies = [
"zstd-sys",
]
+[[package]]
+name = "zstd-safe"
+version = "8.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae42c0555055784c70058d19ba8e275528e8a99a706684868ace5da4e716a4ab"
+dependencies = [
+ "zstd-sys",
+]
+
[[package]]
name = "zstd-sys"
version = "2.1.2+zstd.1.5.7"
diff --git a/Cargo.toml b/Cargo.toml
index 93dff4ed92d..3332bde8b22 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
[workspace.package]
-version = "2.6.0"
+version = "2.7.0"
edition = "2024"
rust-version = "1.95"
license = "MIT OR Apache-2.0"
@@ -325,8 +325,8 @@ reth-cli = { path = "crates/cli/cli" }
reth-cli-commands = { path = "crates/cli/commands" }
reth-cli-runner = { path = "crates/cli/runner" }
reth-cli-util = { path = "crates/cli/util" }
-reth-codecs = { version = "0.7.0", default-features = false }
-reth-codecs-derive = "0.7.0"
+reth-codecs = { version = "0.8.1", default-features = false }
+reth-codecs-derive = "0.8.1"
reth-config = { path = "crates/config", default-features = false }
reth-consensus = { path = "crates/consensus/consensus", default-features = false }
reth-consensus-common = { path = "crates/consensus/common", default-features = false }
@@ -392,7 +392,7 @@ reth-payload-builder = { path = "crates/payload/builder" }
reth-payload-builder-primitives = { path = "crates/payload/builder-primitives" }
reth-payload-primitives = { path = "crates/payload/primitives" }
reth-payload-validator = { path = "crates/payload/validator" }
-reth-primitives-traits = { version = "0.7.1", default-features = false }
+reth-primitives-traits = { version = "0.8.1", default-features = false }
reth-provider = { path = "crates/storage/provider" }
reth-prune = { path = "crates/prune/prune" }
reth-prune-types = { path = "crates/prune/types", default-features = false }
@@ -406,7 +406,7 @@ reth-rpc-eth-types = { path = "crates/rpc/rpc-eth-types", default-features = fal
reth-rpc-layer = { path = "crates/rpc/rpc-layer" }
reth-rpc-server-types = { path = "crates/rpc/rpc-server-types" }
reth-rpc-convert = { path = "crates/rpc/rpc-convert" }
-reth-rpc-traits = { version = "0.7.0", default-features = false }
+reth-rpc-traits = { version = "0.8.1", default-features = false }
reth-stages = { path = "crates/stages/stages" }
reth-stages-api = { path = "crates/stages/api" }
reth-stages-types = { path = "crates/stages/types", default-features = false }
@@ -426,12 +426,12 @@ reth-trie-common = { path = "crates/trie/common", default-features = false }
reth-trie-db = { path = "crates/trie/db" }
reth-trie-parallel = { path = "crates/trie/parallel" }
reth-trie-sparse = { path = "crates/trie/sparse", default-features = false }
-reth-zstd-compressors = { version = "0.7.0", default-features = false }
+reth-zstd-compressors = { version = "0.8.1", default-features = false }
# revm
-revm = { version = "43.0.2", default-features = false }
+revm = { version = "43.0.3", default-features = false }
revmc = { git = "https://github.com/paradigmxyz/revmc", branch = "main", default-features = false, features = ["llvm-prefer-static"] }
-revm-inspectors = "0.43.0"
+revm-inspectors = "0.44.0"
# eth
alloy-dyn-abi = "1.6.1"
@@ -445,31 +445,31 @@ alloy-evm = { version = "0.39.0", default-features = false }
alloy-rlp = { version = "0.3.16", default-features = false, features = ["core-net"] }
alloy-trie = { version = "0.9.4", default-features = false }
-alloy-hardforks = "0.4.8"
-
-alloy-consensus = { version = "2.4.2", default-features = false }
-alloy-contract = { version = "2.4.2", default-features = false }
-alloy-eips = { version = "2.4.2", default-features = false }
-alloy-genesis = { version = "2.4.2", default-features = false }
-alloy-json-rpc = { version = "2.4.2", default-features = false }
-alloy-network = { version = "2.4.2", default-features = false }
-alloy-node-bindings = "2.4.2"
-alloy-provider = { version = "2.4.2", features = ["reqwest", "debug-api"], default-features = false }
-alloy-rpc-client = { version = "2.4.2", default-features = false }
-alloy-rpc-types = { version = "2.4.2", features = ["eth"], default-features = false }
-alloy-rpc-types-admin = { version = "2.4.2", default-features = false }
-alloy-rpc-types-anvil = { version = "2.4.2", default-features = false }
-alloy-rpc-types-beacon = { version = "2.4.2", default-features = false }
-alloy-rpc-types-debug = { version = "2.4.2", default-features = false }
-alloy-rpc-types-engine = { version = "2.4.2", default-features = false }
-alloy-rpc-types-eth = { version = "2.4.2", default-features = false }
-alloy-rpc-types-mev = { version = "2.4.2", default-features = false }
-alloy-rpc-types-trace = { version = "2.4.2", default-features = false }
-alloy-rpc-types-txpool = { version = "2.4.2", default-features = false }
-alloy-serde = { version = "2.4.2", default-features = false }
-alloy-signer = { version = "2.4.2", default-features = false }
-alloy-signer-local = { version = "2.4.2", default-features = false }
-alloy-transport = { version = "2.4.2" }
+alloy-hardforks = "0.4.9"
+
+alloy-consensus = { version = "2.5.0", default-features = false }
+alloy-contract = { version = "2.5.0", default-features = false }
+alloy-eips = { version = "2.5.0", default-features = false }
+alloy-genesis = { version = "2.5.0", default-features = false }
+alloy-json-rpc = { version = "2.5.0", default-features = false }
+alloy-network = { version = "2.5.0", default-features = false }
+alloy-node-bindings = "2.5.0"
+alloy-provider = { version = "2.5.0", features = ["reqwest", "debug-api"], default-features = false }
+alloy-rpc-client = { version = "2.5.0", default-features = false }
+alloy-rpc-types = { version = "2.5.0", features = ["eth"], default-features = false }
+alloy-rpc-types-admin = { version = "2.5.0", default-features = false }
+alloy-rpc-types-anvil = { version = "2.5.0", default-features = false }
+alloy-rpc-types-beacon = { version = "2.5.0", default-features = false }
+alloy-rpc-types-debug = { version = "2.5.0", default-features = false }
+alloy-rpc-types-engine = { version = "2.5.0", default-features = false }
+alloy-rpc-types-eth = { version = "2.5.0", default-features = false }
+alloy-rpc-types-mev = { version = "2.5.0", default-features = false }
+alloy-rpc-types-trace = { version = "2.5.0", default-features = false }
+alloy-rpc-types-txpool = { version = "2.5.0", default-features = false }
+alloy-serde = { version = "2.5.0", default-features = false }
+alloy-signer = { version = "2.5.0", default-features = false }
+alloy-signer-local = { version = "2.5.0", default-features = false }
+alloy-transport = { version = "2.5.0" }
# misc
either = { version = "1.16.0", default-features = false }
@@ -540,7 +540,7 @@ metrics-util = { default-features = false, version = "0.20.3" }
tokio = { version = "1.52.3", default-features = false }
tokio-stream = "0.1.11"
tokio-tungstenite = "0.29.0"
-tokio-util = { version = "0.7.4", features = ["codec"] }
+tokio-util = { version = "0.7.11", features = ["codec"] }
# async
async-compression = { version = "0.4", default-features = false }
@@ -673,7 +673,7 @@ reth-firehose-tests = { path = "crates/firehose-tests" }
## Firehose additions
# SF fork of alloy-evm that routes system calls (EIP-4788, EIP-2935, etc.) through the Inspector.
# See https://github.com/alloy-rs/evm/pull/323 for the upstream PR.
-alloy-evm = { git = "https://github.com/streamingfast/evm.git", tag = "v0.39.0-sf" }
+alloy-evm = { git = "https://github.com/streamingfast/evm.git", rev = "52afebec62600e7c89c7a9f97a35731ce3183404" } # v0.39.0-sf
## Firehose additions
# This is needed otherwise we get flooding of debug logs around a problem that seems to happen in Reth directly.
diff --git a/Dockerfile.depot b/Dockerfile.depot
index 0ff3f2b736a..47d293a9404 100644
--- a/Dockerfile.depot
+++ b/Dockerfile.depot
@@ -15,7 +15,7 @@ RUN /tmp/install_llvm.sh && rm /tmp/install_llvm.sh && \
apt-get install -y --no-install-recommends libclang-dev m4 pkg-config
# Install sccache for compilation caching
-RUN cargo install sccache --locked
+RUN cargo install sccache --version "=0.18.0" --locked
ENV RUSTC_WRAPPER=sccache
ENV SCCACHE_DIR=/sccache
ENV SCCACHE_WEBDAV_ENDPOINT=https://cache.depot.dev
@@ -77,8 +77,6 @@ ARG BINARY=reth
# Runtime defaults
ARG RETH_ENGINE_TXPOOL_PREWARMING=false
ENV RETH_ENGINE_TXPOOL_PREWARMING=$RETH_ENGINE_TXPOOL_PREWARMING
-ARG RETH_ENGINE_SENDER_RECOVERY_CACHE=false
-ENV RETH_ENGINE_SENDER_RECOVERY_CACHE=$RETH_ENGINE_SENDER_RECOVERY_CACHE
# Install runtime dependencies
RUN apt-get update && \
diff --git a/crates/chain-state/Cargo.toml b/crates/chain-state/Cargo.toml
index 4a4b494821f..2d96c857761 100644
--- a/crates/chain-state/Cargo.toml
+++ b/crates/chain-state/Cargo.toml
@@ -14,12 +14,10 @@ workspace = true
[dependencies]
# reth
reth-chainspec.workspace = true
-reth-errors.workspace = true
reth-execution-types.workspace = true
reth-metrics.workspace = true
reth-ethereum-primitives.workspace = true
reth-primitives-traits.workspace = true
-reth-storage-api.workspace = true
reth-trie-sparse = { workspace = true, features = ["std"] }
reth-trie.workspace = true
@@ -27,7 +25,7 @@ reth-trie.workspace = true
alloy-eips.workspace = true
alloy-primitives = { workspace = true, features = ["std"] }
alloy-consensus.workspace = true
-revm.workspace = true
+revm = { workspace = true, optional = true }
# async
tokio = { workspace = true, default-features = false, features = ["sync", "macros"] }
@@ -54,6 +52,7 @@ reth-testing-utils.workspace = true
alloy-signer.workspace = true
alloy-signer-local.workspace = true
rand.workspace = true
+revm.workspace = true
[features]
serde = [
@@ -67,8 +66,7 @@ serde = [
"reth-execution-types/serde",
"reth-primitives-traits/serde",
"reth-trie/serde",
- "revm/serde",
- "reth-storage-api/serde",
+ "revm?/serde",
]
test-utils = [
"alloy-primitives/getrandom",
@@ -80,4 +78,5 @@ test-utils = [
"reth-trie/test-utils",
"reth-ethereum-primitives/test-utils",
"reth-trie-sparse/test-utils",
+ "dep:revm",
]
diff --git a/crates/chain-state/src/in_memory.rs b/crates/chain-state/src/in_memory.rs
index adf6790bf0f..1e6b2af6338 100644
--- a/crates/chain-state/src/in_memory.rs
+++ b/crates/chain-state/src/in_memory.rs
@@ -1,8 +1,7 @@
//! Types for tracking the canonical chain state in memory.
use crate::{
- CanonStateNotification, CanonStateNotificationSender, CanonStateNotifications,
- ChainInfoTracker, MemoryOverlayStateProvider,
+ CanonStateNotification, CanonStateNotificationSender, CanonStateNotifications, ChainInfoTracker,
};
use alloy_consensus::{transaction::TransactionMeta, BlockHeader};
use alloy_eips::{BlockHashOrNumber, BlockNumHash};
@@ -10,13 +9,15 @@ use alloy_primitives::{map::B256Map, BlockNumber, TxHash, B256};
use parking_lot::RwLock;
use reth_chainspec::ChainInfo;
use reth_ethereum_primitives::EthPrimitives;
-use reth_execution_types::{BlockExecutionOutput, BlockExecutionResult, Chain, ExecutionOutcome};
+use reth_execution_types::{
+ BlockExecutionOutput, BlockExecutionResult, Chain, DecodedRevmBal, ExecutionOutcome,
+ RecoveredBlockAndExecutionOutput,
+};
use reth_metrics::{metrics::Gauge, Metrics};
use reth_primitives_traits::{
BlockBody as _, IndexedTx, NodePrimitives, RecoveredBlock, SealedBlock, SealedHeader,
SignedTransaction,
};
-use reth_storage_api::StateProviderBox;
use reth_trie::{
updates::TrieUpdatesSorted, ComputedTrieData, HashedPostStateSorted, LazyTrieData,
};
@@ -168,9 +169,6 @@ impl CanonicalInMemoryStateInner {
}
}
-type PendingBlockAndReceipts =
- (RecoveredBlock<::Block>, Vec>);
-
/// This type is responsible for providing the blocks, receipts, and state for
/// all canonical blocks not on disk yet and keeps track of the block range that
/// is in memory.
@@ -498,20 +496,18 @@ impl CanonicalInMemoryState {
}
/// Returns the `RecoveredBlock` corresponding to the pending state.
- pub fn pending_recovered_block(&self) -> Option>
- where
- N::SignedTx: SignedTransaction,
- {
- self.pending_state().map(|block_state| block_state.block_ref().recovered_block().clone())
+ pub fn pending_recovered_block(&self) -> Option>> {
+ self.pending_state().map(|block_state| Arc::clone(&block_state.block_ref().recovered_block))
}
- /// Returns a tuple with the `SealedBlock` corresponding to the pending
- /// state and a vector of its `Receipt`s.
- pub fn pending_block_and_receipts(&self) -> Option> {
+ /// Returns the pending recovered block and its execution output, which contains the receipts.
+ pub fn pending_block_and_receipts(
+ &self,
+ ) -> Option> {
self.pending_state().map(|block_state| {
- (
- block_state.block_ref().recovered_block().clone(),
- block_state.executed_block_receipts(),
+ RecoveredBlockAndExecutionOutput::new(
+ Arc::clone(&block_state.block_ref().recovered_block),
+ Arc::clone(&block_state.block_ref().execution_output),
)
})
}
@@ -543,24 +539,6 @@ impl CanonicalInMemoryState {
self.inner.canon_state_notification_sender.send(event).ok();
}
- /// Return state provider with reference to in-memory blocks that overlay database state.
- ///
- /// This merges the state of all blocks that are part of the chain that the requested block is
- /// the head of. This includes all blocks that connect back to the canonical block on disk.
- pub fn state_provider(
- &self,
- hash: B256,
- historical: StateProviderBox,
- ) -> MemoryOverlayStateProvider {
- let in_memory = if let Some(state) = self.state_by_hash(hash) {
- state.chain().map(|block_state| block_state.block()).collect()
- } else {
- Vec::new()
- };
-
- MemoryOverlayStateProvider::new(historical, in_memory)
- }
-
/// Returns an iterator over all __canonical blocks__ in the in-memory state, from newest to
/// oldest (highest to lowest).
///
@@ -715,16 +693,6 @@ impl BlockState {
std::iter::successors(Some(self), |state| state.parent.clone())
}
- /// Return state provider with reference to in-memory blocks that overlay database state.
- ///
- /// This merges the state of all blocks that are part of the chain that the this block is
- /// the head of. This includes all blocks that connect back to the canonical block on disk.
- pub fn state_provider(&self, historical: StateProviderBox) -> MemoryOverlayStateProvider {
- let in_memory = self.chain().map(|block_state| block_state.block()).collect();
-
- MemoryOverlayStateProvider::new(historical, in_memory)
- }
-
/// Tries to find a block by [`BlockHashOrNumber`] in the chain ending at this block.
pub fn block_on_chain(&self, hash_or_num: BlockHashOrNumber) -> Option<&Self> {
self.chain().find(|block| match hash_or_num {
@@ -768,6 +736,18 @@ pub struct ExecutedBlock {
/// This allows deferring the computation of the trie data which can be expensive.
/// The data can be populated asynchronously after the block was validated.
pub trie_data: LazyTrieData,
+ /// The prepared block access list of the block, if one is available.
+ ///
+ /// `None` means no BAL was available when the block was constructed, not that the block
+ /// has none: only blocks the engine validated from a payload that carried a BAL have it
+ /// attached. Blocks from before the BAL fork, blocks built or loaded outside engine
+ /// validation (payload builder, persistence, tests) and downloaded blocks without a BAL
+ /// sidecar leave it unset; the BAL store is the source of truth in that case.
+ ///
+ /// When present, this carries the raw RLP (for the BAL store) together with the revm
+ /// representation (for consumers like the RPC state cache), so that neither has to be
+ /// re-derived after validation.
+ pub bal: Option>,
}
impl Default for ExecutedBlock {
@@ -784,13 +764,15 @@ impl Default for ExecutedBlock {
state: Default::default(),
}),
trie_data: LazyTrieData::ready(ComputedTrieData::default()),
+ bal: None,
}
}
}
impl PartialEq for ExecutedBlock {
fn eq(&self, other: &Self) -> bool {
- // Trie data is computed asynchronously and doesn't define block identity.
+ // Trie data is computed asynchronously and the block access list is derived data; neither
+ // defines block identity.
self.recovered_block == other.recovered_block &&
self.execution_output == other.execution_output
}
@@ -806,7 +788,12 @@ impl ExecutedBlock {
execution_output: Arc>,
trie_data: ComputedTrieData,
) -> Self {
- Self { recovered_block, execution_output, trie_data: LazyTrieData::ready(trie_data) }
+ Self {
+ recovered_block,
+ execution_output,
+ trie_data: LazyTrieData::ready(trie_data),
+ bal: None,
+ }
}
/// Create a new [`ExecutedBlock`] with deferred trie data.
@@ -827,7 +814,21 @@ impl ExecutedBlock {
execution_output: Arc>,
trie_data: LazyTrieData,
) -> Self {
- Self { recovered_block, execution_output, trie_data }
+ Self { recovered_block, execution_output, trie_data, bal: None }
+ }
+
+ /// Attaches the prepared block access list of the block, or clears it with `None`.
+ pub fn with_bal(mut self, bal: Option>) -> Self {
+ self.bal = bal;
+ self
+ }
+
+ /// Returns the prepared block access list of the block, if one is available.
+ ///
+ /// `None` only means no BAL was attached to this block; see the `bal` field for details.
+ #[inline]
+ pub const fn bal(&self) -> Option<&Arc> {
+ self.bal.as_ref()
}
/// Returns a reference to an inner [`SealedBlock`]
@@ -970,7 +971,7 @@ impl> NewCanonicalChain {
/// Converts a slice of executed blocks into a [`Chain`].
fn blocks_to_chain(blocks: &[ExecutedBlock]) -> Chain {
- match blocks {
+ let mut chain = match blocks {
[] => Chain::default(),
[first, rest @ ..] => {
let mut chain = Chain::from_block(
@@ -993,7 +994,13 @@ impl> NewCanonicalChain {
}
chain
}
+ };
+ for exec in blocks {
+ if let Some(bal) = exec.bal() {
+ chain.insert_bal(exec.block_number(), Arc::clone(bal));
+ }
}
+ chain
}
/// Returns the new tip of the chain.
@@ -1024,19 +1031,9 @@ mod tests {
use super::*;
use crate::test_utils::TestBlockBuilder;
use alloy_eips::eip7685::Requests;
- use alloy_primitives::{Address, BlockNumber, Bytes, StorageKey, StorageValue};
+ use alloy_primitives::Bytes;
use rand::Rng;
- use reth_errors::ProviderResult;
use reth_ethereum_primitives::{EthPrimitives, Receipt};
- use reth_primitives_traits::{Account, Bytecode};
- use reth_storage_api::{
- AccountReader, BlockHashReader, BytecodeReader, HashedPostStateProvider,
- StateProofProvider, StateProvider, StateRootProvider, StorageRootProvider,
- };
- use reth_trie::{
- updates::TrieUpdates, AccountProof, HashedPostState, HashedStorage, MultiProof,
- MultiProofTargets, StorageMultiProof, StorageProof, TrieInput,
- };
fn create_mock_state(
test_block_builder: &mut TestBlockBuilder,
@@ -1069,141 +1066,6 @@ mod tests {
chain
}
- struct MockStateProvider;
-
- impl StateProvider for MockStateProvider {
- fn storage(
- &self,
- _address: Address,
- _storage_key: StorageKey,
- ) -> ProviderResult