File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -169,12 +169,19 @@ impl SignerTrait<SignerMessage> for Signer {
169
169
) ;
170
170
}
171
171
* sortition_state = None ;
172
- if let Ok ( StacksEpochId :: Epoch25 ) = stacks_client. get_node_epoch ( ) {
173
- if self . reward_cycle == current_reward_cycle {
174
- // We are in epoch 2.5, so we should mock mine to prove we are still alive.
175
- self . mock_sign ( * burn_height, stacks_client) ;
176
- }
172
+ let Ok ( epoch) = stacks_client. get_node_epoch ( ) else {
173
+ warn ! ( "{self}: Failed to determine node epoch. Cannot mock sign." ) ;
174
+ return ;
177
175
} ;
176
+ debug ! ( "{self}: Epoch 2.5 signer received a new burn block event." ;
177
+ "burn_height" => burn_height,
178
+ "current_reward_cycle" => current_reward_cycle,
179
+ "epoch" => ?epoch
180
+ ) ;
181
+ if epoch == StacksEpochId :: Epoch25 && self . reward_cycle == current_reward_cycle {
182
+ // We are in epoch 2.5, so we should mock mine to prove we are still alive.
183
+ self . mock_sign ( * burn_height, stacks_client) ;
184
+ }
178
185
}
179
186
}
180
187
}
You can’t perform that action at this time.
0 commit comments