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 support for ganache #107

Closed
wants to merge 3 commits into from
Closed

Add support for ganache #107

wants to merge 3 commits into from

Conversation

intoverflow
Copy link
Member

This PR adds support for Ganache in both Merge and Shanghai configurations.

Testing

I performed this procedure for both merge and shanghai:

$ ganache --miner.blockTime 12 --chain.hardfork merge

...
Available Accounts
==================
...
(9) 0x0C6083AC0459Fdbf182429e6af8D2601536aE712 (1000 ETH)

Private Keys
==================
(0) 0x752517b8b110ae59ba32ed5450c0c48caf226f0066684734895afd65faf97340

...
$ cast send 0x0C6083AC0459Fdbf182429e6af8D2601536aE712 --value 0.5ether --private-key 0x752517b8b110ae59ba32ed5450c0c48caf226f0066684734895afd65faf97340

...
blockHash               0x8b39bff9f95c0027c29633ab505b3ce6590a53695aace343a8a9b703cd9458ba
blockNumber             2
...
$ RUST_LOG=info ./target/release/zeth run \
                                      --network=ganache-merge \
                                      --block-number=2 \
                                      --eth-rpc-url=http://127.0.0.1:8545

...

[2024-04-18T01:58:37Z INFO  zeth::operations::build] Verifying final state using provider data ...
[2024-04-18T01:58:37Z INFO  zeth::operations::build] Final block hash derived successfully. 0x8b39bff9f95c0027c29633ab505b3ce6590a53695aace343a8a9b703cd9458ba
[2024-04-18T01:58:37Z INFO  zeth::operations] Running the executor...
[2024-04-18T01:58:37Z INFO  tracing::span] executor;
[2024-04-18T01:58:37Z INFO  risc0_zkvm::host::server::exec::executor] execution time: 117.7ms
[2024-04-18T01:58:37Z INFO  risc0_zkvm::host::server::session] number of segments: 5
[2024-04-18T01:58:37Z INFO  risc0_zkvm::host::server::session] total cycles: 4456448
[2024-04-18T01:58:37Z INFO  risc0_zkvm::host::server::session] user cycles: 3078410
[2024-04-18T01:58:37Z INFO  risc0_zkvm::host::server::session] cycle efficiency: 69%

@intoverflow
Copy link
Member Author

Closing to de-clutter

@intoverflow intoverflow closed this Sep 3, 2024
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.

2 participants