File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
modules/consensus/tendermint/prover/src/tests
tesseract/consensus/polygon/src Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -222,8 +222,8 @@ mod tests {
222
222
current_time,
223
223
) {
224
224
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 ( ) ;
227
227
if is_validator_set_change {
228
228
actual_transitions += 1 ;
229
229
}
@@ -325,8 +325,8 @@ mod tests {
325
325
current_time,
326
326
) {
327
327
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 ( ) ;
330
330
if is_validator_set_change {
331
331
actual_transitions += 1 ;
332
332
}
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ pub async fn consensus_notification(
102
102
let matched_header = matched_header. expect ( "Header must be present if found" ) ;
103
103
let next_validators = client. prover . next_validators ( matched_height) . await ?;
104
104
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
106
107
let maybe_milestone_update = build_milestone_update (
107
108
client,
108
109
matched_header. header . height . value ( ) ,
@@ -135,8 +136,9 @@ async fn build_milestone_update(
135
136
reference_height : u64 ,
136
137
consensus_state : & ConsensusState ,
137
138
) -> 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 ?;
140
142
141
143
let ( milestone_number, milestone) = match latest_milestone_at_height {
142
144
Some ( ( number, milestone) ) => ( number, milestone) ,
You can’t perform that action at this time.
0 commit comments