Skip to content

Commit

Permalink
chore: Remove debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jbencin committed Dec 12, 2024
1 parent 5fe4948 commit 4ab762f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions stackslib/src/chainstate/nakamoto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2701,12 +2701,10 @@ impl NakamotoChainState {
index_block_hash: &StacksBlockId,
) -> Result<Option<StacksHeaderInfo>, ChainstateError> {
let sql = "SELECT * FROM block_headers WHERE index_block_hash = ?1";
println!("get_block_header_epoch2(): Looking for block {index_block_hash}");
let result = query_row_panic(chainstate_conn, sql, &[&index_block_hash], || {
"FATAL: multiple rows for the same block hash".to_string()
})?;

println!("get_block_header_epoch2(): Found {result:?}");
Ok(result)
}

Expand All @@ -2715,7 +2713,6 @@ impl NakamotoChainState {
chainstate_conn: &Connection,
index_block_hash: &StacksBlockId,
) -> Result<Option<StacksHeaderInfo>, ChainstateError> {
println!("get_block_header(): Looking for block {index_block_hash}");
if let Some(header) = Self::get_block_header_nakamoto(chainstate_conn, index_block_hash)? {
return Ok(Some(header));
}
Expand Down

0 comments on commit 4ab762f

Please sign in to comment.