Skip to content

feat!: v0.10 run LEZ v0.4 only - #42

Merged
drptbl merged 28 commits into
mainfrom
feat/lez-v0.4
Nov 21, 2026
Merged

drptbl merged 28 commits into
mainfrom
feat/lez-v0.4

Conversation

@drptbl

@drptbl drptbl commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

logos-devnet runs LEZ v0.4 only from here, built against v0.4.0-rc3 since there's no final v0.4.0 yet. v0.3 is going away, so its code paths are gone, and v0.9.4 stays the last release that runs it.

changes:

  • the default is v0.4.0-rc3, and a v0.3 tag is refused, pointing at v0.9.4
  • a new chain runs sequencer_service setup once from the patched networks/local.json, then start from its home
  • genesis funds accounts by public key: the faucet's is read from its wallet, and each group account's is recorded in accounts.json
  • unused accounts are paid with --to-pk, and fund takes --key
  • account state, wallet resets and wallet configs follow v0.4's formats, and the chain records its LEZ tag
  • a home that ran v0.3 refuses up, and reset moves its wallet, groups and sessions to *-v0.3/, untouched, then starts v0.4
  • sessions wait for a lez_core built for v0.4, behind SESSIONS_READY; the session examples, hello-world and the sessions CI job say so
  • [devnet] upstream_accounts = true keeps LEZ's published genesis accounts funded, for its examples and tools like prog-tui
  • the image builds risc0's CPU kernels, which the v0.4 sequencer links
  • --version names the LEZ tag, release notes open with it, and the README maps each logos-devnet release to its LEZ line
  • bumped the version to 0.10.0

v0.4 changes how the sequencer starts, its config, the wallet's storage and how accounts are funded, so each line gets its own code path, and its own dev wallet and account groups.
A v0.4 genesis names each funded account by its public key, so the faucet's key is kept when the wallet makes it, and each group account's key is derived from the secret logos-devnet imports, checked against the id the wallet reports.
From LEZ v0.4 the sequencer links the wallet, whose prover needs the CPU kernels that RISC0_SKIP_BUILD_KERNELS left out, so the rc3 build failed to link. Upstream doesn't skip them either.
A new v0.4 chain is set up once from the patched config, which writes its channel signing key, then runs with start from its home. The wallet gets an empty password, as it would prompt for one otherwise, and native runs drop inherited SEQUENCER_ variables.
LEZ v0.4 keeps program data under actor_states and answers null for an account never used, so in_use and account read both shapes.
LEZ v0.4 admits an account it has never seen only when the payment names its public key, so group top-ups pass each account's key, and fund takes --key. A v0.4 wallet config sets no gas_limit, so the wallet budgets up to the block's cap.
The Logos catalog has no lez_core for v0.4 yet, and 0.5.1 can't drive a v0.4 chain, so up and session new refuse before anything changes and say why.
LEZ's examples and tools such as prog-tui fund themselves from the genesis accounts whose keys LEZ publishes, which logos-devnet drops. upstream_accounts = true in [devnet] keeps them funded on a new chain.
A v0.4 wallet refuses v0.3's shards, records where its sync started, and caches spent nullifiers beside its storage. Forgetting a chain now writes fresh accounts in the shape the storage holds, zeroes synced_from_block, and drops the nullifier cache. The layout was checked against a wallet rc3 made.
v0.3 builds stay as they were. Only v0.4's sequencer links the wallet whose prover needs the kernels. The native config lookup is renamed to find_upstream_config, as it finds v0.4's local.json too.
The key was kept in the settings, shared by both lines, so switching to v0.3 and back lost it and the next v0.4 genesis couldn't be built. The wallet's storage holds every account's key, so it's read from there, and fund uses the keys of the devnet's own accounts. Group keys are checked against their ids before use.
A v0.3 session's wallet and lez_core can't work on v0.4, so v0.4 has its own sessions directory, and v0.3's wait as they were. Only a project asking for sessions on v0.4 is refused, by up and doctor.
setup writes the channel key first, so a setup that stopped right after left a chain that up never set up again.
A lost settings file read as the default v0.3.1, so up could write a v0.3 config over a v0.4 chain. The chain now records its tag like its dev mode, and a mismatch is refused.
A wallet with a password keeps its state inside the ciphertext, which forget_chain can't clear.
v0.3 pays by id, so a damaged accounts.json no longer blocks fund there.
Before the first chain, accounts new and doctor follow the project's [devnet] lez, as up does, so a group made early lands in the line its chain will run.
LEZ v0.3 is going away, so logos-devnet drops it: v0.4.0-rc3 is the default and v0.4 tags the only ones it runs, with one code path for the sequencer, config, funding and wallets. A home that ran v0.3 refuses up and says how to go on, and reset moves its wallets, groups and sessions to *-v0.3/ and starts v0.4. v0.9.4 is the last release that runs v0.3. Sessions wait for a lez_core built for v0.4, behind SESSIONS_READY.
@drptbl drptbl changed the title feat: v0.10 LEZ v0.4 support feat!: v0.10 run LEZ v0.4 only Nov 21, 2026
@drptbl
drptbl merged commit c586b2f into main Nov 21, 2026
7 checks passed
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