Skip to content

Commit 5c4185f

Browse files
committed
fmt
1 parent dd505d1 commit 5c4185f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

modules/consensus/tendermint/prover/src/tests/integration_tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ mod tests {
222222
current_time,
223223
) {
224224
Ok(updated_state) => {
225-
let is_validator_set_change = trusted_state.next_validators_hash
226-
== consensus_proof.signed_header.header.validators_hash.as_bytes();
225+
let is_validator_set_change = trusted_state.next_validators_hash ==
226+
consensus_proof.signed_header.header.validators_hash.as_bytes();
227227
if is_validator_set_change {
228228
actual_transitions += 1;
229229
}
@@ -325,8 +325,8 @@ mod tests {
325325
current_time,
326326
) {
327327
Ok(updated_state) => {
328-
let is_validator_set_change = trusted_state.next_validators_hash
329-
== consensus_proof.signed_header.header.validators_hash.as_bytes();
328+
let is_validator_set_change = trusted_state.next_validators_hash ==
329+
consensus_proof.signed_header.header.validators_hash.as_bytes();
330330
if is_validator_set_change {
331331
actual_transitions += 1;
332332
}

tesseract/consensus/polygon/src/notification.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ pub async fn consensus_notification(
102102
let matched_header = matched_header.expect("Header must be present if found");
103103
let next_validators = client.prover.next_validators(matched_height).await?;
104104

105-
// Also attempt to construct a milestone update corresponding to the matched header height
105+
// Also attempt to construct a milestone update corresponding to the matched header
106+
// height
106107
let maybe_milestone_update = build_milestone_update(
107108
client,
108109
matched_header.header.height.value(),
@@ -135,8 +136,9 @@ async fn build_milestone_update(
135136
reference_height: u64,
136137
consensus_state: &ConsensusState,
137138
) -> anyhow::Result<Option<ismp_polygon::MilestoneUpdate>> {
138-
let query_height = reference_height.saturating_sub(1);
139-
let latest_milestone_at_height = client.prover.get_latest_milestone_at_height(query_height).await?;
139+
let query_height = reference_height.saturating_sub(1);
140+
let latest_milestone_at_height =
141+
client.prover.get_latest_milestone_at_height(query_height).await?;
140142

141143
let (milestone_number, milestone) = match latest_milestone_at_height {
142144
Some((number, milestone)) => (number, milestone),

0 commit comments

Comments
 (0)