Skip to content

Commit 54e098c

Browse files
committed
Add comment
1 parent 02987a4 commit 54e098c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • aggregation_mode/src/aggregators

aggregation_mode/src/aggregators/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ impl ZKVMEngine {
6161
ZKVMEngine::SP1 => {
6262
let proofs = proofs
6363
.into_iter()
64+
// Fetcher already filtered for SP1
65+
// We do this for type casting, as to avoid using generics
66+
// or macros in this function
6467
.filter_map(|proof| match proof {
6568
AlignedProof::SP1(proof) => Some(*proof),
6669
_ => None,
@@ -80,6 +83,9 @@ impl ZKVMEngine {
8083
ZKVMEngine::RISC0 => {
8184
let proofs = proofs
8285
.into_iter()
86+
// Fetcher already filtered for Risc0
87+
// We do this for type casting, as to avoid using generics
88+
// or macros in this function
8389
.filter_map(|proof| match proof {
8490
AlignedProof::Risc0(proof) => Some(*proof),
8591
_ => None,

0 commit comments

Comments
 (0)