Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add espresso dev node to cartesi run #79

Open
2 of 4 tasks
endersonmaia opened this issue Sep 27, 2024 · 2 comments
Open
2 of 4 tasks

Add espresso dev node to cartesi run #79

endersonmaia opened this issue Sep 27, 2024 · 2 comments
Assignees

Comments

@endersonmaia
Copy link
Contributor

endersonmaia commented Sep 27, 2024

📚 Context

So that developer can experiment applications using espresso sequencer during local development, we need to provide a espresso dev node as a service.

✔️ Solution

Add the espresso dev container to our compose

https://github.com/EspressoSystems/espresso-sequencer/blob/main/doc/espresso-dev-node.md

📈 Subtasks

  • add espresso dev node as a container to our compose
  • publish its API through traekif ever proxy
  • explicitly enable the service with --enable-espresso

🎯 Definition of Done

  • cartesi run should start an espresso dev node and export its API endpoint to localhost
@tuler tuler changed the title Add espresso dev node to cli compose Add espresso dev node to cartesi run Sep 27, 2024
@endersonmaia endersonmaia self-assigned this Sep 27, 2024
@endersonmaia
Copy link
Contributor Author

endersonmaia commented Sep 30, 2024

Whe I start a espresso-dev-node connected to anvil and postgres from cartesi run I can see that the sequencer database created for espresso gets populated and I see at anvil logs that some contracts are created.

We can see in dev-info API we have the LIghtClient address, for ex.:

curl -fsSL -X GET localhost:20000/api/dev-info | jq .
{
  "builder_url": "http://localhost:8771/",
  "l1_prover_port": 8772,
  "l1_url": "http://anvil:8545/",
  "l1_light_client_address": "0x5f3f1dbd7b74c6b46e8c44f98792a1daf8d69154",
  "alt_chains": []
}

@endersonmaia
Copy link
Contributor Author

At the logs, I get some errors that I can't understand yet.

This appears two times at the beginning:

  2024-09-30T13:25:58.118222Z ERROR sequencer::context: Cannot get info from orchestrator client
    at sequencer/src/context.rs:282

  2024-09-30T13:25:58.118240Z ERROR hotshot: HotShot is running with the dependency tasks feature enabled!!
    at /home/runner/.cargo/git/checkouts/HotShot-de3b585b288dcaaa/8b68188/crates/hotshot/src/lib.rs:354

This loops forever:

 2024-09-30T13:25:45.771230Z ERROR hotshot_task_impls::transactions: Timeout while getting available blocks, err: future has timed out
    at /home/runner/.cargo/git/checkouts/HotShot-de3b585b288dcaaa/8b68188/crates/task-impls/src/transactions.rs:585
    in hotshot_task_impls::transactions::wait_for_block with id: 0, cur_view: 477, block_view: 478
    in TransactionTaskState::Transaction task with id: 0, view: 477
    in TransactionTaskState::Transaction task with id: 0, view: 476

I eventually saw this too:

Loading SRS from Aztec's ceremony...
Done in 66.260ms
Generating proving key and verification key.
Done in 4.400s

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

No branches or pull requests

1 participant