mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 12:11:59 +00:00
Added slot to logs
This commit is contained in:
@@ -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"
|
||||
);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user