Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #1459

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion light-client-detector/src/evidence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion light-client-detector/src/examine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion light-client/src/light_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down