mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 16:53:21 +08:00
chore: info accept/reject
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user