Skip to content

Commit

Permalink
resolve merge conflict
Browse files Browse the repository at this point in the history
Signed-off-by: smtmfft <smtm@taiko.xyz>
  • Loading branch information
smtmfft committed Jul 22, 2024
1 parent b709063 commit cd01dc2
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 2 deletions.
9 changes: 8 additions & 1 deletion host/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,18 @@ mod test {
(input, provider.clone())
}

async fn get_a_testable_block_num(chain_spec: &ChainSpec) -> u64 {
let provider = RpcBlockDataProvider::new(&chain_spec.rpc, 0).unwrap();
let height = provider.provider.get_block_number().await.unwrap();
height - 299582 // a hardcode helka & mainnet height diff for the test
}

#[tokio::test]
async fn test_generate_input_from_cache() {
let l1 = &Network::Holesky.to_string();
let l2 = &Network::TaikoA7.to_string();
let block_number: u64 = 123456;
let taiko_chain_spec = SupportedChainSpecs::default().get_chain_spec(l2).unwrap();
let block_number: u64 = get_a_testable_block_num(&taiko_chain_spec).await;
let (input, provider) = create_cache_input(l1, l2, block_number).await;
let cache_path = Some("./".into());
assert!(cache::set_input(&cache_path, block_number, l2, &input).is_ok());
Expand Down
2 changes: 1 addition & 1 deletion provers/risc0/driver/src/methods/risc0_guest.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub const RISC0_GUEST_ELF: &[u8] =
include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/risc0-guest");
pub const RISC0_GUEST_ID: [u32; 8] = [
2008664807, 702630247, 4092627615, 3260109499, 2561937414, 4278577207, 738819978, 61928151,
778116790, 3147350329, 3518605327, 2941923414, 1667247192, 584142090, 3914021799, 3838916379,
];
26 changes: 26 additions & 0 deletions provers/risc0/guest/Cargo.lock

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

26 changes: 26 additions & 0 deletions provers/sp1/guest/Cargo.lock

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

Binary file modified provers/sp1/guest/elf/sp1-guest
Binary file not shown.

0 comments on commit cd01dc2

Please sign in to comment.