Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ sbv-primitives = { git = "https://github.com/scroll-tech/stateless-block-verifie
url = "2.5.4"

[features]
default = ["openvm"]
openvm = ["dep:sbv-utils", "dep:sbv-primitives"]

[patch.crates-io]
Expand Down
11 changes: 10 additions & 1 deletion src/prover/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,16 @@ where
alloy::providers::ProviderBuilder::<_, _, sbv_primitives::types::Network>::default()
.on_http(client.provider.provider().url().clone());

let witness = provider.dump_block_witness(block_num.into()).await?;
let mut witness = provider.dump_block_witness(block_num.into()).await?;
if let Some(block_witness) = &mut witness {
if block_num == 15525239 {
let bytes =
"0xe19f3b3794390b239dd17cf11093695d47e6bbbd98f327bf64d18c7ac2ef21abaa03"
.parse::<sbv_primitives::Bytes>()
.unwrap();
block_witness.states.push(bytes.into())
}
}
witness.ok_or_else(|| anyhow::anyhow!("Failed to dump block witness"))
}
}
Expand Down