chore: info accept/reject

This commit is contained in:
Jude Nelson
2024-08-12 14:24:13 -04:00
parent b3645c7e83
commit 7c37f89dce

View File

@@ -663,7 +663,7 @@ impl Relayer {
debug!(
"Handle incoming Nakamoto block {}/{}",
&block.header.consensus_hash,
&block.header.block_hash()
&block.header.block_hash(),
);
// do we have this block? don't lock the DB needlessly if so.
@@ -745,14 +745,14 @@ impl Relayer {
staging_db_tx.commit()?;
if accepted {
debug!("{}", &accept_msg);
info!("{}", &accept_msg);
if let Some(coord_comms) = coord_comms {
if !coord_comms.announce_new_stacks_block() {
return Err(chainstate_error::NetError(net_error::CoordinatorClosed));
}
}
} else {
debug!("{}", &reject_msg);
info!("{}", &reject_msg);
}
Ok(accepted)