Skip to content

Commit

Permalink
Rename LightClient::verify_bisection to LightClient::verify_forward
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Jan 22, 2021
1 parent 38e8262 commit c333662
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions light-client/src/light_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ impl LightClient {

if target_height >= highest.height() {
// Perform forward verification with bisection
self.verify_bisection(target_height, state)
self.verify_forward(target_height, state)
} else {
// Perform sequential backward verification
self.verify_backwards(target_height, state)
self.verify_backward(target_height, state)
}
}

/// Perform forward verification with bisection
fn verify_bisection(
fn verify_forward(
&self,
target_height: Height,
state: &mut State,
Expand Down Expand Up @@ -272,7 +272,7 @@ impl LightClient {
/// Stub for when "backward-verif" feature is disabled.
#[doc(hidden)]
#[cfg(not(feature = "backward-verif"))]
fn verify_backwards(
fn verify_backward(
&self,
target_height: Height,
trusted_state: LightBlock,
Expand All @@ -287,7 +287,7 @@ impl LightClient {

/// Perform sequential backward verification.
#[cfg(feature = "backward-verif")]
fn verify_backwards(
fn verify_backward(
&self,
target_height: Height,
state: &mut State,
Expand Down

0 comments on commit c333662

Please sign in to comment.