Skip to content

Commit c0da03e

Browse files
committed
Fix tenure timestamp check to be consistent with signers, only accepting strictly greater than values
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 7a7549c commit c0da03e

File tree

1 file changed

+1
-1
lines changed
  • testnet/stacks-node/src/nakamoto_node

1 file changed

+1
-1
lines changed

testnet/stacks-node/src/nakamoto_node/miner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ impl BlockMinerThread {
11601160
if self.last_block_mined.is_some() {
11611161
// Check if we can extend the current tenure
11621162
let tenure_extend_timestamp = coordinator.get_tenure_extend_timestamp();
1163-
if get_epoch_time_secs() < tenure_extend_timestamp {
1163+
if get_epoch_time_secs() <= tenure_extend_timestamp {
11641164
return Ok(NakamotoTenureInfo {
11651165
coinbase_tx: None,
11661166
tenure_change_tx: None,

0 commit comments

Comments
 (0)