Skip to content

Commit ef081bd

Browse files
authored
Merge pull request #7392 from brice-stacks/chore/fix-log
chore: update `is_rc_start` in log
2 parents abdffd5 + 0d25268 commit ef081bd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • stackslib/src/chainstate/nakamoto/coordinator

stackslib/src/chainstate/nakamoto/coordinator/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,12 +1091,14 @@ impl<
10911091
.burnchain
10921092
.block_height_to_reward_cycle(header.block_height)
10931093
.unwrap_or(u64::MAX);
1094+
let is_reward_cycle_start =
1095+
is_naka_reward_cycle_start_for_epoch(&self.burnchain, header.block_height);
10941096

10951097
info!(
10961098
"Process burn block {} reward cycle {} in {}",
10971099
header.block_height, reward_cycle, &self.burnchain.working_dir;
10981100
"in_prepare_phase" => self.burnchain.is_in_prepare_phase(header.block_height),
1099-
"is_rc_start" => self.burnchain.is_reward_cycle_start(header.block_height),
1101+
"is_rc_start" => is_reward_cycle_start,
11001102
"is_prior_in_prepare_phase" => self.burnchain.is_in_prepare_phase(header.block_height.saturating_sub(2)),
11011103
"burn_block_hash" => %header.block_hash,
11021104
);
@@ -1113,8 +1115,6 @@ impl<
11131115
}
11141116
};
11151117

1116-
let is_reward_cycle_start =
1117-
is_naka_reward_cycle_start_for_epoch(&self.burnchain, header.block_height);
11181118
let reward_cycle_info = if is_reward_cycle_start {
11191119
// we're at the end of the prepare phase, so we'd better have obtained the reward
11201120
// cycle info or we must block.

0 commit comments

Comments
 (0)