diff --git a/light-client-detector/src/evidence.rs b/light-client-detector/src/evidence.rs index 717bc71b0..9c7bcfae1 100644 --- a/light-client-detector/src/evidence.rs +++ b/light-client-detector/src/evidence.rs @@ -46,7 +46,7 @@ pub fn make_evidence( } } -/// Take a trusted header and match it againt a conflicting header +/// Take a trusted header and match it against a conflicting header /// to determine whether the conflicting header was the product of a valid state transition /// or not. If it is then all the deterministic fields of the header should be the same. /// If not, it is an invalid header and constitutes a lunatic attack. diff --git a/light-client-detector/src/examine.rs b/light-client-detector/src/examine.rs index 84cddbdfd..03d631739 100644 --- a/light-client-detector/src/examine.rs +++ b/light-client-detector/src/examine.rs @@ -8,7 +8,7 @@ use tendermint_light_client::{ use super::{error::Error, provider::Provider, trace::Trace}; // examineConflictingHeaderAgainstTrace takes a trace from one provider and a divergent header that -// it has received from another and preforms verifySkipping at the heights of each of the intermediate +// it has received from another and performs verifySkipping at the heights of each of the intermediate // headers in the trace until it reaches the divergentHeader. 1 of 2 things can happen. // // 1. The light client verifies a header that is different to the intermediate header in the trace. This diff --git a/light-client/src/light_client.rs b/light-client/src/light_client.rs index eabca1750..9403d876c 100644 --- a/light-client/src/light_client.rs +++ b/light-client/src/light_client.rs @@ -340,7 +340,7 @@ impl LightClient { // `latest` and `current` are linked together by `last_block_id`, // therefore it is not relevant which we verified first. - // For consistency, we say that `latest` was verifed using + // For consistency, we say that `latest` was verified using // `current` so that the trace is always pointing down the chain. state.light_store.insert(current.clone(), Status::Trusted); state.light_store.insert(latest.clone(), Status::Trusted);