Skip to content

Commit e1f6db9

Browse files
fmt
1 parent 650af6d commit e1f6db9

4 files changed

Lines changed: 12 additions & 23 deletions

File tree

consensus/src/marshal/coding/marshaled.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,12 @@ where
795795
// Kick off deferred verification early to hide verification latency behind
796796
// shard validity checks and network latency for collecting votes.
797797
let round = consensus_context.round;
798-
let task =
799-
self.deferred_verify(consensus_context, payload, None, CodingPersistMode::Verified);
798+
let task = self.deferred_verify(
799+
consensus_context,
800+
payload,
801+
None,
802+
CodingPersistMode::Verified,
803+
);
800804
self.verification_tasks.insert(round, payload, task);
801805

802806
match scheme.me() {

consensus/src/marshal/coding/mod.rs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -283,17 +283,10 @@ mod tests {
283283
participants,
284284
schemes,
285285
..
286-
} = bls12381_threshold_vrf::fixture::<V, _>(
287-
&mut context,
288-
NAMESPACE,
289-
NUM_VALIDATORS,
290-
);
291-
let mut oracle = setup_network_with_participants(
292-
context.clone(),
293-
NZUsize!(1),
294-
participants.clone(),
295-
)
296-
.await;
286+
} = bls12381_threshold_vrf::fixture::<V, _>(&mut context, NAMESPACE, NUM_VALIDATORS);
287+
let mut oracle =
288+
setup_network_with_participants(context.clone(), NZUsize!(1), participants.clone())
289+
.await;
297290

298291
let setup = CodingHarness::setup_validator(
299292
context.with_label("validator_0"),
@@ -352,8 +345,7 @@ mod tests {
352345
};
353346
let descendant_finalization =
354347
CodingHarness::make_finalization(descendant_proposal, &schemes, QUORUM);
355-
CodingHarness::report_finalization(&mut handle.mailbox, descendant_finalization)
356-
.await;
348+
CodingHarness::report_finalization(&mut handle.mailbox, descendant_finalization).await;
357349

358350
context.sleep(Duration::from_millis(200)).await;
359351

consensus/src/marshal/core/actor.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,13 +1141,7 @@ where
11411141
debug!(?round, %height, "received finalization");
11421142

11431143
wrote |= self
1144-
.store_finalization(
1145-
height,
1146-
digest,
1147-
block,
1148-
Some(finalization),
1149-
application,
1150-
)
1144+
.store_finalization(height, digest, block, Some(finalization), application)
11511145
.await;
11521146
}
11531147
PendingVerification::Notarized {

consensus/src/marshal/standard/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ mod tests {
207207
harness::certify_persists_equivocated_block::<DeferredHarness>();
208208
}
209209

210-
211210
#[test_traced("WARN")]
212211
fn test_standard_delivery_visibility_implies_recoverable_after_restart() {
213212
harness::delivery_visibility_implies_recoverable_after_restart::<InlineHarness>(0..16);

0 commit comments

Comments
 (0)