File tree Expand file tree Collapse file tree
stackslib/src/chainstate/nakamoto/coordinator Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments