[go: up one dir, main page]

Tezlink/node: run tezlink sandbox command

What

Allows to start the octez-evm-node sandbox in tezlink mode.

Why

At the moment the only way to test the node in tezlink mode is to run a network, either locally with the L1 sandbox or using teztcloud.

This will allow to leverage the run sandbox command of the l2 node.

How

We add a run tezlink sandbox command to the evm node. It forces the node to patch the node configuration and durable storage with the feature flag necessary to run in tezlink mode.

This reuses the same helpers as the run sandbox command, and has most of the same argument

Manually testing the MR

RUST_LOG=octez_evm_node_wasm_runtime::write_debug=trace  octez-evm-node run tezlink sandbox --data-dir sequencer --kernel <TEZOS_DIR>/evm_kernel.wasm --kernel-verbosity debug

Should run without crashing, and the kernel logs should show that it's running a Michelson VM.

[2025-06-06T09:32:22Z DEBUG octez_evm_node_wasm_runtime::write_debug] Chain Configuration: {Chain family: Michelson, MichelsonChainConfig { chain_id: 12 }}
[2025-06-06T09:32:22Z DEBUG octez_evm_node_wasm_runtime::write_debug] Configuration: Tezos Contracts: Ticketer is None. Administrator is None. Sequencer governance is None. Kernel governance is None. Kernel security governance is None., Mode: Sequencer { delayed_bridge: ContractKt1Hash("KT18amZmM5W7qDWVt2pH6uj7sCEd3kbzLrHT"), sequencer: Ed25519(PublicKeyEd25519("edpkuk3pe78dG7RpWHGb6rCULMwD3TzmgQbCbTmzNvffJJ6FTNXLKx")), dal: None, evm_node_flag: true, max_blueprints_lookahead_in_seconds: 300 }, Enable FA Bridge: false, Garbage collect blocks: false
[2025-06-06T09:32:22Z DEBUG octez_evm_node_wasm_runtime::write_debug] Inbox is empty, moving to stage 2.
[2025-06-06T09:32:22Z DEBUG octez_evm_node_wasm_runtime::write_debug] Entering stage two.
[2025-06-06T09:32:22Z DEBUG octez_evm_node_wasm_runtime::write_debug] Creating BIP from Blueprint.
[2025-06-06T09:32:22Z DEBUG octez_evm_node_wasm_runtime::write_debug] Next blueprint number: 4
[2025-06-06T09:32:22Z DEBUG octez_evm_node_wasm_runtime::write_debug] Creating BIP from Blueprint: Failure.
[2025-06-06T09:32:22Z DEBUG octez_evm_node_wasm_runtime::write_debug] End of kernel run.
Jun 06 11:32:22.208 NOTICE │ head is now 3, applied in 15.402ms

The RPCs should be accessible

curl http://localhost:8545/tezlink/version
{"version":{"major":0,"minor":0,"additional_info":"dev"},"network_version":{"chain_name":"","distributed_db_version":0,"p2p_version":0},"commit_info":{"commit_hash":"","commit_date":""}}

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • N/A Provide automatic testing (see the testing guide).
  • N/A For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
    • tezlink is not part of the changelog for now
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Pierre-Emmanuel CORNILLEAU

Merge request reports

Loading