Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Dec 24, 2024
1 parent b2b05aa commit a2a4004
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions contracts/opsuccinctl2ooconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"owner": "0xDEd0000E32f8F40414d3ab3a830f735a3553E18e",
"proposer": "0xDEd0000E32f8F40414d3ab3a830f735a3553E18e",
"rollupConfigHash": "0x08b1efa3b7fffb2cd455c9da85e032866e03f281e8957dd651c41f7480af36b7",
"startingBlockNumber": 7790954,
"startingOutputRoot": "0x6363676ccd44d1a5649c3a1073749bc9a054e455f96eeb231a9088a5b853d98a",
"startingTimestamp": 1734917547,
"startingBlockNumber": 7868310,
"startingOutputRoot": "0xa40a3e8bc6671b4eb46fd1a527e3ad83b82e81a2001250eca2e88416cb6b1268",
"startingTimestamp": 1735072259,
"submissionInterval": 100000000,
"verifier": "0x397A5f7f3dBd538f23DE225B51f532c34448dA9B",
"aggregationVkey": "0x0008399650a23eab8c315ca2c20282c32362d3941a2a456b127d3fb12dd70187",
"rangeVkeyCommitment": "0x067fd5e43befb4e539b894882def0499622acb3944d5819c04ee49d05f9f7b7d"
"rangeVkeyCommitment": "0x18bb7e7762b78cc609e1b7510269735c56c69dae6eafa08d1846a3c64ad39956"
}
2 changes: 1 addition & 1 deletion contracts/src/OPSuccinctL2OutputOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ contract OPSuccinctL2OutputOracle is Initializable, ISemver {
string public constant version = "v1.0.0-rc2";

/// @notice The version of the initializer on the contract. Used for managing upgrades.
uint8 public constant initializerVersion = 5;
uint8 public constant initializerVersion = 6;

////////////////////////////////////////////////////////////
// Modifiers //
Expand Down
Binary file modified elf/range-elf
Binary file not shown.
4 changes: 0 additions & 4 deletions programs/range/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,6 @@ where
);
cursor.advance(origin, tip_cursor);

// Reduce the amount of de-allocation by forgetting the block.
// Manually forget objects before loop continues
std::mem::forget(block);

println!("cycle-tracker-report-end: output-root");
}
}
1 change: 1 addition & 0 deletions proposer/succinct/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ serde_json.workspace = true
axum = "0.7.4"
bincode.workspace = true
log.workspace = true
tracing.workspace = true
base64.workspace = true
tower-http.workspace = true
serde_repr = "0.1.19"
Expand Down
18 changes: 10 additions & 8 deletions proposer/succinct/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use axum::{
Json, Router,
};
use hashbrown::HashMap;
use log::{error, info};
use op_succinct_client_utils::{
boot::{hash_rollup_config, BootInfoStruct},
types::u32_to_u8,
Expand Down Expand Up @@ -48,6 +47,7 @@ use std::{
time::{Duration, Instant},
};
use tower_http::limit::RequestBodyLimitLayer;
use tracing::{error, info};

pub const RANGE_ELF: &[u8] = include_bytes!("../../../elf/range-elf");
pub const AGG_ELF: &[u8] = include_bytes!("../../../elf/aggregation-elf");
Expand Down Expand Up @@ -487,13 +487,15 @@ async fn request_mock_span_proof(

let start_prove = Instant::now();
let res = generate_mock_compressed_proof(RANGE_ELF, sp1_stdin);
let (proof, report) = if let Ok(result) = res {
result
} else {
return Err(AppError(anyhow::anyhow!(
"Failed to generate mock compressed proof: {}",
res.err().unwrap()
)));
let (proof, report) = match res {
Ok(result) => result,
Err(e) => {
error!("Failed to generate mock compressed proof: {}", e);
return Err(AppError(anyhow::anyhow!(
"Failed to generate mock compressed proof: {}",
e
)));
}
};
let prove_duration = start_prove.elapsed();
// Save the report to execution-reports/ with .csv
Expand Down

0 comments on commit a2a4004

Please sign in to comment.