Added slot to logs

This commit is contained in:
Eitan Seri- Levi
2026-02-24 10:51:09 -08:00
parent 1d3b5776a4
commit 6e89ba63be
2 changed files with 5 additions and 9 deletions

View File

@@ -118,6 +118,7 @@ impl<T: BeaconChainTypes> PayloadNotifier<T> {
notify_new_payload(
&self.chain,
self.block.message().tree_hash_root(),
self.block.message().slot(),
self.block.message().try_into()?,
)
.await
@@ -137,6 +138,7 @@ impl<T: BeaconChainTypes> PayloadNotifier<T> {
pub async fn notify_new_payload<T: BeaconChainTypes>(
chain: &Arc<BeaconChain<T>>,
beacon_block_root: Hash256,
slot: Slot,
new_payload_request: NewPayloadRequest<'_, T::EthSpec>,
) -> Result<PayloadVerificationStatus, BlockError> {
let execution_layer = chain
@@ -163,11 +165,8 @@ pub async fn notify_new_payload<T: BeaconChainTypes>(
?validation_error,
?latest_valid_hash,
?execution_block_hash,
// TODO(gloas) are these other logs important?
root = ?beacon_block_root,
// graffiti = block.body().graffiti().as_utf8_lossy(),
// proposer_index = block.proposer_index(),
// slot = %block.slot(),
%slot,
method = "new_payload",
"Invalid execution payload"
);
@@ -209,11 +208,8 @@ pub async fn notify_new_payload<T: BeaconChainTypes>(
warn!(
?validation_error,
?execution_block_hash,
// TODO(gloas) are these other logs important?
root = ?beacon_block_root,
// graffiti = block.body().graffiti().as_utf8_lossy(),
// proposer_index = block.proposer_index(),
// slot = %block.slot(),
%slot,
method = "new_payload",
"Invalid execution payload block hash"
);

View File

@@ -62,7 +62,7 @@ impl<T: BeaconChainTypes> PayloadNotifier<T> {
} else {
let block_root = self.envelope.message.beacon_block_root;
let request = Self::build_new_payload_request(&self.envelope, &self.block)?;
notify_new_payload(&self.chain, block_root, request).await
notify_new_payload(&self.chain, block_root, self.envelope.slot(), request).await
}
}