cuprated: fix alt block log (#456)

fix alt block log
This commit is contained in:
Boog900
2025-05-06 19:11:49 +01:00
committed by GitHub
parent 4f020deece
commit d7e6eb785b

View File

@@ -103,16 +103,13 @@ impl super::BlockchainManager {
.blockchain_context()
.top_hash
{
let block_hash = block.hash();
let res = self.handle_incoming_alt_block(block, prepared_txs).await?;
if matches!(res, AddAltBlock::Cached(true)) {
info!(
alt_block = true,
hash = hex::encode(
self.blockchain_context_service
.blockchain_context()
.top_hash
),
hash = hex::encode(block_hash),
"Successfully added block"
);
}