Skip to content

Backport upstream fix for v1.0.0 games backward compatability#111

Merged
seolaoh merged 3 commits intodevelopfrom
seolaoh/backward-compat-l2-block-number
Feb 19, 2026
Merged

Backport upstream fix for v1.0.0 games backward compatability#111
seolaoh merged 3 commits intodevelopfrom
seolaoh/backward-compat-l2-block-number

Conversation

@seolaoh
Copy link
Collaborator

@seolaoh seolaoh commented Feb 18, 2026

Summary

  • Backward compatibility: Use l2BlockNumber() instead of l2SequenceNumber() so the proposer works with v1.0.0 dispute games (where only l2BlockNumber() exists) during the upgrade of OPSuccinctFaultDisputeGame v1.0.0 → v2.0.0.
  • CI: Pin sp1up to v5.2.4 everywhere. SP1 v6 (rv64) was released and sp1up now defaults to v6; this repo stays on v5.2.4 (as in Cargo.toml and justfile).

Related

fakedev9999 and others added 3 commits February 17, 2026 23:40
… v1.0.0 games (succinctlabs#807)

* fix(fault-proof): use l2BlockNumber() for backward compatibility with v1.0.0 games

* fix: use l2BlockNumber in test monitor for v1.0.0 backward compat

The PR missed one call site in the test utilities — the game monitor
still called l2SequenceNumber() which doesn't exist on v1.0.0
contracts. Switch to l2BlockNumber() to match the other call sites.

* ci: pin sp1up to v5.2.4 across all CI workflows and Dockerfiles

SP1 v6 (rv64) was released and sp1up now defaults to v6. This project
requires v5.2.4 (pinned in Cargo.toml and justfile). Add explicit
`-v 5.2.4` flag to all 15 sp1up invocations across 5 CI workflows,
7 Dockerfiles, and the book documentation.

---------

Co-authored-by: seolaoh <osa8361@gmail.com>
SP1 v6 (rv64) was released and sp1up now defaults to v6. This project
requires v5.2.4 (pinned in Cargo.toml and justfile). Add explicit
-v 5.2.4 flag to all remaining sp1up invocations.
@cursor
Copy link

cursor bot commented Feb 18, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on March 11.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Copy link

@ezdac ezdac left a comment

Choose a reason for hiding this comment

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

Was accepted upstream and looks good to me!

run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/sp1up -v 5.2.4
Copy link

@ezdac ezdac Feb 19, 2026

Choose a reason for hiding this comment

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

As a "fun-fact" I wasn't aware of since recently:
The sp1 installation here just installs the specific toolchain version, but the actual version used for elf
compilation has to be (and is) passed to the cargo-prove prove build --docker command with --tag 5.2.4 within the just build-elfs command.

That's because the --docker toolchain compilation will use the "deterministic" docker build and orchestrate downloading a docker image and handing off the build process to that docker container.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't know that, yeah the actual version running the SP1 program inside the docker container is pinned by --tag. Normally it works fine without sp1up version pinning, but I observed this elf CI failure a few days ago, and the root cause is sp1up is installed to the latest version v6.0.0 which switches the zkVM target from riscv32im to riscv64im. So the local toolchain v6.0.0 is telling the v5.2.4 docker container to compile for riscv64, it can't find the target. The best practice is to match the version of sp1up installation and the tag of cargo-prove. With this change, now the elf CI works fine 🙂

@seolaoh seolaoh merged commit f588ba1 into develop Feb 19, 2026
14 of 15 checks passed
@seolaoh seolaoh deleted the seolaoh/backward-compat-l2-block-number branch February 19, 2026 11:12
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.

3 participants