Skip to content

Commit

Permalink
fix(raiko): fix some misleading info prints (#425)
Browse files Browse the repository at this point in the history
* fix some typo

Signed-off-by: smtmfft <[email protected]>

* fix compile

Signed-off-by: smtmfft <[email protected]>

---------

Signed-off-by: smtmfft <[email protected]>
  • Loading branch information
smtmfft authored Dec 2, 2024
1 parent 4b0df41 commit 32bc6a9
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 11 deletions.
4 changes: 2 additions & 2 deletions core/src/interfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ pub struct AggregationOnlyRequest {
impl Display for AggregationOnlyRequest {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(&format!(
"AggregationOnlyRequest {{ {:?}, {:?} }}",
self.proof_type, self.prover_args
"AggregationOnlyRequest {{{:?}, {:?}}}",
self.aggregation_ids, self.proof_type
))
}
}
Expand Down
4 changes: 2 additions & 2 deletions provers/risc0/driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ impl Prover for Risc0Prover {
.receipt;

info!(
"Generate aggregatino receipt journal: {:?}",
receipt.journal
"Generate aggregation receipt journal: {:?}",
alloy_primitives::hex::encode_prefixed(receipt.journal.bytes.clone())
);
let block_proof_image_id = compute_image_id(RISC0_GUEST_ELF).unwrap();
let aggregation_image_id = compute_image_id(RISC0_AGGREGATION_ELF).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion provers/risc0/driver/src/methods/risc0_aggregation.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub const RISC0_AGGREGATION_ELF: &[u8] =
include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/risc0-aggregation");
pub const RISC0_AGGREGATION_ID: [u32; 8] = [
2333673138, 1389402087, 4157868707, 3509779465, 4233333805, 3247956400, 2845161127, 4015834081,
1011950429, 2998663226, 1723944064, 1742472798, 1225419420, 1333504266, 3595009277, 3228775676,
];
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] = [
643196937, 1246728629, 1886769928, 130762256, 177277998, 252070675, 1250330519, 622696287,
1848002361, 3447634449, 2932177819, 2827220601, 4284138344, 2572487667, 1602600202, 3769687346,
];
23 changes: 19 additions & 4 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-aggregation
Binary file not shown.
Binary file modified provers/sp1/guest/elf/sp1-guest
Binary file not shown.
2 changes: 1 addition & 1 deletion taskdb/src/redis_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ impl RedisTaskDb {
);
} // do nothing
None => {
info!("Enqueue new aggregatino task: {request}");
info!("Enqueue new aggregation task: {request}");
self.insert_aggregation_task(
&agg_task_descriptor,
&TaskProvingStatusRecords(vec![task_status]),
Expand Down

0 comments on commit 32bc6a9

Please sign in to comment.