Skip to content

Commit 2fe8a04

Browse files
chee-chyuanclaude
andcommitted
fix(block_import): log engine errors in new_payload instead of silently dropping
Previously, when engine.new_payload() returned an Err (e.g. EngineUnavailable), the error was silently discarded with no log, making it impossible to diagnose broken engine integration from block import logs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9fc8667 commit 2fe8a04

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/node/network/block_import/service.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,16 @@ where
326326
}
327327
_ => None,
328328
},
329-
Err(err) => None,
329+
Err(err) => {
330+
tracing::warn!(
331+
target: "bsc::block_import",
332+
block_hash = %block_hash,
333+
block_number = header.number,
334+
%err,
335+
"Engine unavailable or failed to process new payload"
336+
);
337+
None
338+
}
330339
}
331340
})
332341
}

0 commit comments

Comments
 (0)