Skip to content

Commit

Permalink
Add logs for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Jan 2, 2025
1 parent bfcbd77 commit 80f1d42
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions beacon_node/execution_layer/src/test_utils/mock_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ impl<E: EthSpec> MockBuilder<E> {
parent_hash: ExecutionBlockHash,
pubkey: PublicKeyBytes,
) -> Result<SignedBuilderBid<E>, String> {
info!(self.log, "In get_header");
// Check if the pubkey has registered with the builder if required
if self.validate_pubkey && !self.val_registration_cache.read().contains_key(&pubkey) {
return Err("validator not registered with builder".to_string());
Expand All @@ -468,6 +469,8 @@ impl<E: EthSpec> MockBuilder<E> {
None => self.get_payload_params(slot, None, pubkey, None).await?,
};

info!(self.log, "Got payload params");

let fork = self.fork_name_at_slot(slot);
let payload_response_type = self
.el
Expand All @@ -481,6 +484,8 @@ impl<E: EthSpec> MockBuilder<E> {
})
.await
.map_err(|e| format!("couldn't get payload {:?}", e))?;
info!(self.log, "Got payload message");
info!(self.log, "fork {}", fork);

let mut message = match payload_response_type {
crate::GetPayloadResponseType::Full(payload_response) => {
Expand Down Expand Up @@ -539,8 +544,10 @@ impl<E: EthSpec> MockBuilder<E> {
};

if self.apply_operations {
info!(self.log, "Applying operations");
self.apply_operations(&mut message);
}
info!(self.log, "Signing builder message");

let mut signature = message.sign_builder_message(&self.builder_sk, &self.spec);

Expand Down

0 comments on commit 80f1d42

Please sign in to comment.