From 6e572ef0f4ae890a6faa8574fd4a0033aca4403b Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Fri, 11 Aug 2023 17:39:26 +0800 Subject: [PATCH] Fix fmt --- spec/src/consensus.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/src/consensus.rs b/spec/src/consensus.rs index b3e1e3b9b2..776447aef0 100644 --- a/spec/src/consensus.rs +++ b/spec/src/consensus.rs @@ -804,7 +804,9 @@ impl Consensus { let remainder_reward = Capacity::shannons(primary_epoch_reward % epoch.length()); -let next_epoch_length = (self.epoch_duration_target() + MIN_BLOCK_INTERVAL - 1) / MIN_BLOCK_INTERVAL + let next_epoch_length = (self.epoch_duration_target() + MIN_BLOCK_INTERVAL + - 1) + / MIN_BLOCK_INTERVAL; let dummy_epoch_ext = epoch .clone()