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

feat: prove blocks using reth #226

Merged
merged 29 commits into from
Jun 25, 2024
Merged

feat: prove blocks using reth #226

merged 29 commits into from
Jun 25, 2024

Conversation

Brechtpd
Copy link
Contributor

@Brechtpd Brechtpd commented May 20, 2024

  • currently on reth v1.0.0-rc.2
  • state root verified outside reth for now

reth v1.0.0-rc.2 taiko changes: taikoxyz/taiko-reth#6
revm v36 taiko changes: taikoxyz/revm#10

Brechtpd and others added 7 commits May 20, 2024 10:09
@Brechtpd Brechtpd temporarily deployed to test-environment May 24, 2024 10:41 — with GitHub Actions Inactive
Brechtpd added 4 commits May 31, 2024 13:52
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	core/src/lib.rs
#	core/src/preflight.rs
#	core/src/provider/db.rs
#	lib/Cargo.toml
#	lib/src/builder/execute.rs
#	lib/src/builder/finalize.rs
#	lib/src/builder/initialize.rs
#	lib/src/builder/mod.rs
#	lib/src/input.rs
#	lib/src/mem_db.rs
#	lib/src/protocol_instance.rs
#	provers/sp1/guest/elf/sp1-guest
@Brechtpd Brechtpd temporarily deployed to test-environment June 16, 2024 03:13 — with GitHub Actions Inactive
@Brechtpd Brechtpd marked this pull request as ready for review June 24, 2024 04:21
Brechtpd added 3 commits June 24, 2024 06:25
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	lib/Cargo.toml
#	lib/src/builder/execute.rs
#	lib/src/builder/finalize.rs
#	lib/src/builder/initialize.rs
#	lib/src/builder/mod.rs
#	lib/src/protocol_instance.rs
#	provers/risc0/guest/Cargo.lock
#	provers/risc0/guest/Cargo.toml
#	provers/risc0/guest/src/main.rs
#	provers/sp1/guest/Cargo.lock
#	provers/sp1/guest/Cargo.toml
#	provers/sp1/guest/elf/sp1-guest
#	provers/sp1/guest/src/main.rs
#	provers/sp1/guest/src/zk_op.rs
@Brechtpd Brechtpd temporarily deployed to test-environment June 24, 2024 05:07 — with GitHub Actions Inactive
@Brechtpd Brechtpd temporarily deployed to test-environment June 24, 2024 05:12 — with GitHub Actions Inactive
@Brechtpd Brechtpd temporarily deployed to test-environment June 24, 2024 19:58 — with GitHub Actions Inactive
@Brechtpd Brechtpd temporarily deployed to test-environment June 24, 2024 20:31 — with GitHub Actions Inactive
@Brechtpd Brechtpd temporarily deployed to test-environment June 24, 2024 21:09 — with GitHub Actions Inactive
@Brechtpd Brechtpd temporarily deployed to test-environment June 25, 2024 03:03 — with GitHub Actions Inactive
@Brechtpd Brechtpd temporarily deployed to test-environment June 25, 2024 03:40 — with GitHub Actions Inactive
@Brechtpd Brechtpd temporarily deployed to test-environment June 25, 2024 05:14 — with GitHub Actions Inactive
@CeciliaZ030
Copy link
Contributor

lgtm
shouldn't be too difficult to merge the Proof of Equivalence PR

Copy link
Contributor

@smtmfft smtmfft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
just wonder if that incorrect access list gas issue does not exist under this reth model?

host/config/chain_spec_list_default.json Show resolved Hide resolved
core/Cargo.toml Show resolved Hide resolved
core/src/preflight.rs Outdated Show resolved Hide resolved
provers/risc0/guest/src/mem.rs Show resolved Hide resolved
@Brechtpd Brechtpd temporarily deployed to test-environment June 25, 2024 18:03 — with GitHub Actions Inactive
@Brechtpd Brechtpd added this pull request to the merge queue Jun 25, 2024
Merged via the queue into main with commit 546ab19 Jun 25, 2024
17 checks passed
@Brechtpd Brechtpd deleted the reth-wip branch June 25, 2024 18:04
@Brechtpd
Copy link
Contributor Author

LGTM! just wonder if that incorrect access list gas issue does not exist under this reth model?

Still necessary! https://github.com/taikoxyz/taiko-reth/blob/d20c700ca296f7e4227b4c8c254a8d0f948bbd36/crates/ethereum/evm/src/execute.rs#L222

@smtmfft
Copy link
Contributor

smtmfft commented Jun 26, 2024

LGTM! just wonder if that incorrect access list gas issue does not exist under this reth model?

Still necessary! https://github.com/taikoxyz/taiko-reth/blob/d20c700ca296f7e4227b4c8c254a8d0f948bbd36/crates/ethereum/evm/src/execute.rs#L222

Weird..is that a bug existed in both zeth & official reth?? I thought reth should be ok as its target is geth equivalence, should not have such a bug.

@Brechtpd
Copy link
Contributor Author

Blocks don't skip invalid transactions on Ethereum, so the behavior we're triggering is taiko specific, so not a bug there.

wallet.set_chain_id(Some(chain_id));
println!("wallet: {:?}", wallet);

// init rpc conn
let http = Http::new(Url::parse(l1_rpc_url).expect("invalid rpc url"));
let provider = ProviderBuilder::new()
.with_recommended_fillers()
.signer(EthereumSigner::from(wallet.clone()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't send transaction without this

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.

4 participants