Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions coprocessor/fhevm-engine/Cargo.lock

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

23 changes: 10 additions & 13 deletions coprocessor/fhevm-engine/gw-listener/src/gw_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,16 @@ impl<P: Provider<Ethereum> + Clone + 'static, A: AwsS3Interface + Clone + 'stati
continue;
}
if let Ok(event) = InputVerification::InputVerificationEvents::decode_log(&log.inner) {
match event.data {
InputVerification::InputVerificationEvents::VerifyProofRequest(request) => {
self.verify_proof_request(db_pool, request, log.clone()).await.
inspect(|_| {
verify_proof_success += 1;
}).inspect_err(|e| {
error!(error = %e, "VerifyProofRequest processing failed");
VERIFY_PROOF_FAIL_COUNTER.inc();
})?;
},
_ => {
error!(log = ?log, "Unknown InputVerification event");
}
// This listener only reacts to proof requests. Other known InputVerification
// events are expected when multiple coprocessors interact with the gateway.
if let InputVerification::InputVerificationEvents::VerifyProofRequest(request) = event.data {
self.verify_proof_request(db_pool, request, log.clone()).await.
inspect(|_| {
verify_proof_success += 1;
}).inspect_err(|e| {
error!(error = %e, "VerifyProofRequest processing failed");
VERIFY_PROOF_FAIL_COUNTER.inc();
})?;
}
} else {
error!(log = ?log, "Failed to decode InputVerification event log");
Expand Down
Loading