Skip to content

Commit

Permalink
local kona 11-5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Nov 5, 2024
1 parent 8860260 commit c8abb07
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 23 deletions.
11 changes: 0 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 9 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,15 @@ tracing-subscriber = { version = "0.3.18", features = ["fmt"] }

# kona
# Note: Switch to latest version of kona once the std::process::Command issue is resolved.
kona-common = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona" }
kona-common-proc = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona" }
kona-preimage = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona", features = [
"rkyv",
] }
kona-primitives = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona" }
kona-mpt = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona" }
kona-derive = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona", default-features = false }
kona-executor = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona" }
kona-client = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona" }
kona-host = { git = "https://github.com/moongate-forks/kona", branch = "patch-10-17-kona" }
kona-common = { path = "../kona/crates/common" }
kona-common-proc = { path = "../kona/crates/common-proc" }
kona-preimage = { path = "../kona/crates/preimage", features = ["rkyv"] }
kona-primitives = { path = "../kona/crates/primitives" }
kona-mpt = { path = "../kona/crates/mpt" }
kona-derive = { path = "../kona/crates/derive", default-features = false }
kona-executor = { path = "../kona/crates/executor" }
kona-client = { path = "../kona/bin/client" }
kona-host = { path = "../kona/bin/host" }

# op-succinct
op-succinct-prove = { path = "scripts/prove" }
Expand Down
2 changes: 2 additions & 0 deletions scripts/utils/bin/cost_estimator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ async fn main() -> Result<()> {

let l2_chain_id = data_fetcher.get_l2_chain_id().await?;

println!("L2 Chain ID: {}", l2_chain_id);

let split_ranges = split_range(args.start, args.end, l2_chain_id, args.batch_size);

info!(
Expand Down
6 changes: 5 additions & 1 deletion utils/host/src/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,10 @@ impl OPSuccinctDataFetcher {
};
let claimed_l2_output_root = keccak256(l2_claim_encoded.abi_encode());

let (l1_head_hash, _l1_head_number) = self.get_l1_head(l2_end_block).await?;
let (l1_head_hash, l1_head_number) = self.get_l1_head(l2_end_block).await?;

println!("L1 Head Number: {}", l1_head_number);
println!("L2 End Block: {}", l2_end_block);

// Get the workspace root, which is where the data directory is.
let metadata = MetadataCommand::new().exec().unwrap();
Expand Down Expand Up @@ -725,6 +728,7 @@ impl OPSuccinctDataFetcher {
.await?;

let l1_origin = optimism_output_data.block_ref.l1_origin;
println!("L1 origin of L2 end block: {}", l1_origin.number);

// Search forward from the l1Origin, skipping forward in 5 minute increments until an L1 block with an L2 safe head greater than the l2_end_block is found.
let mut current_l1_block_number = l1_origin.number;
Expand Down

0 comments on commit c8abb07

Please sign in to comment.