Skip to content

feat(tempo): add hardfork selection - #110

Merged
jxom merged 4 commits into
mainfrom
jxom/tempo-hardfork
Sep 16, 2026
Merged

jxom merged 4 commits into
mainfrom
jxom/tempo-hardfork

Conversation

@jxom

@jxom jxom commented Sep 16, 2026

Copy link
Copy Markdown
Member

Add hardfork to Tempo binary and container instances. Configure genesis to activate the selected fork and its predecessors while disabling later forks, enabling tests against a specific activation schedule.

@pkg-pr-new

pkg-pr-new Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/prool@110

commit: 27a8386

@jxom
jxom marked this pull request as ready for review September 16, 2026 21:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-16T21:51:50.874921Z 27a8386 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0efa526045

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/instances/tempo.ts Outdated
env: {
RUST_LOG,
},
})`${[binary, ...command({ ...args, chain, port })]}`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Isolate the default datadir for each selected hardfork

When local Tempo instances run sequentially on the same port with different hardfork values—particularly the default port—this still lets command() select /tmp/.prool/tempo.${port} regardless of the fork. That directory survives stop(), so the second instance can open a database containing blocks and state produced under the previous fork schedule while receiving the newly rewritten genesis; depending on Tempo's database checks, it either fails to start or silently invalidates the intended fork-specific experiment. Derive the default datadir from the selected hardfork or clear it when the schedule changes, while continuing to honor an explicitly supplied datadir.

Useful? React with 👍 / 👎.

@jxom
jxom merged commit 4bf95e2 into main Sep 16, 2026
6 of 7 checks passed
@jxom
jxom deleted the jxom/tempo-hardfork branch September 16, 2026 21:48
@github-actions github-actions Bot mentioned this pull request Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant