Skip to content

Commit

Permalink
review: rename context.rs to verifier.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Apr 15, 2024
1 parent d5e3ba3 commit 3c36fed
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use tendermint::{Hash, Time};
use tendermint_light_client_verifier::options::Options;
use tendermint_light_client_verifier::Verifier;

use crate::context::TmVerifier;
use crate::types::Header;
use crate::verifier::TmVerifier;

/// Determines whether or not two conflicting headers at the same height would
/// have convinced the light client.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use tendermint_light_client_verifier::options::Options;
use tendermint_light_client_verifier::types::{TrustedBlockState, UntrustedBlockState};
use tendermint_light_client_verifier::Verifier;

use crate::context::TmVerifier;
use crate::verifier::TmVerifier;

pub fn verify_header<V, H>(
ctx: &V,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use tendermint::merkle::MerkleHash;

use super::{check_for_misbehaviour_on_misbehavior, check_for_misbehaviour_on_update, ClientState};
use crate::client_state::{verify_header, verify_misbehaviour};
use crate::context::{DefaultVerifier, TmVerifier};
use crate::verifier::{DefaultVerifier, TmVerifier};

impl<V> ClientStateValidation<V> for ClientState
where
Expand Down
2 changes: 1 addition & 1 deletion ibc-clients/ics07-tendermint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern crate std;

pub mod client_state;
pub mod consensus_state;
pub mod context;
pub mod verifier;

pub const TENDERMINT_CLIENT_TYPE: &str = "07-tendermint";

Expand Down
File renamed without changes.

0 comments on commit 3c36fed

Please sign in to comment.