Skip to content

Commit a6af0c1

Browse files
committed
feat: remove redundant check
1 parent 4ae41da commit a6af0c1

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,24 +1636,6 @@ impl RelayerThread {
16361636
});
16371637
let mut last_committed = self.make_block_commit(&tip_block_ch, &tip_block_bh)?;
16381638

1639-
// last chance -- is this tenure still the canonical tip?
1640-
let (cur_stacks_tip_ch, _) = SortitionDB::get_canonical_stacks_chain_tip_hash(
1641-
self.sortdb.conn(),
1642-
)
1643-
.unwrap_or_else(|e| {
1644-
panic!("Failed to load canonical stacks tip: {e:?}");
1645-
});
1646-
if last_committed.get_tenure_id() != &cur_stacks_tip_ch {
1647-
info!(
1648-
"Stacks tenure changed prior to commit";
1649-
"current_stacks_tip_ch" => %cur_stacks_tip_ch,
1650-
"committed_tenure_ch" => %last_committed.get_tenure_id(),
1651-
"issue_commit_tip_ch" => %tip_block_ch,
1652-
"issue_commit_tip_bh" => %tip_block_bh
1653-
);
1654-
return Err(NakamotoNodeError::StacksTipChanged);
1655-
}
1656-
16571639
let Some(tip_height) = NakamotoChainState::get_block_header(
16581640
self.chainstate.db(),
16591641
&StacksBlockId::new(&tip_block_ch, &tip_block_bh),

0 commit comments

Comments
 (0)