Skip to content

Commit

Permalink
fix(client): should skip quote on data type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mickvandijke committed Jan 29, 2025
1 parent 31b28e7 commit 5d910ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ant-networking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ impl Network {
// Check if the returned data type matches the request
if quote.quoting_metrics.data_type != data_type {
warn!("Received invalid quote from {peer_address:?}, {quote:?}. Data type did not match the request.");
continue;
}

all_quotes.push((peer_address.clone(), quote.clone()));
Expand Down

0 comments on commit 5d910ff

Please sign in to comment.