Skip to content

Commit

Permalink
fix(reqpool): attach fake field for sgx
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 committed Feb 20, 2025
1 parent 15608d0 commit 0f57586
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reqpool/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ pub struct SingleProofRequestKey {
proof_type: ProofType,
/// The prover of the request
prover_address: String,

patch: String,
}

impl SingleProofRequestKey {
Expand All @@ -134,12 +136,15 @@ impl SingleProofRequestKey {
proof_type: ProofType,
prover_address: String,
) -> Self {
let patch = proof_type.to_string();
Self {
chain_id,
block_number,
block_hash,
proof_type,
prover_address,

patch,
}
}
}
Expand All @@ -152,13 +157,17 @@ pub struct AggregationRequestKey {
// TODO add chain_id
proof_type: ProofType,
block_numbers: Vec<u64>,
patch: String,
}

impl AggregationRequestKey {
pub fn new(proof_type: ProofType, block_numbers: Vec<u64>) -> Self {
let patch = proof_type.to_string();
Self {
proof_type,
block_numbers,

patch,
}
}
}
Expand Down

0 comments on commit 0f57586

Please # to comment.