Repository navigation
feat!: v0.10 run LEZ v0.4 only - #42
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
logos-devnet runs LEZ v0.4 only from here, built against
v0.4.0-rc3since 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:
v0.4.0-rc3, and a v0.3 tag is refused, pointing at v0.9.4sequencer_service setuponce from the patchednetworks/local.json, thenstartfrom its homeaccounts.json--to-pk, andfundtakes--keyup, andresetmoves its wallet, groups and sessions to*-v0.3/, untouched, then starts v0.4lez_corebuilt for v0.4, behindSESSIONS_READY; the session examples, hello-world and the sessions CI job say so[devnet] upstream_accounts = truekeeps LEZ's published genesis accounts funded, for its examples and tools like prog-tui--versionnames the LEZ tag, release notes open with it, and the README maps each logos-devnet release to its LEZ line0.10.0