Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply beacon system call to trace_block #12030

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

stevencartavia
Copy link
Contributor

Resolves #12021

Comment on lines 107 to 114
// Retrieve the block from the block ID
let block = match self.eth_api().block_with_senders(at).await? {
None => return Err(EthApiError::HeaderNotFound(at).into()),
Some(block) => block,
};

// Extract the parent beacon block root from the block
let parent_beacon_block_root = block.parent_beacon_block_root;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this shouldn't be required here, because we always fetch the block before we call this function.

so we can likely solve this by adding the parent beacon block root as another argument to this function

@mattsse mattsse added C-bug An unexpected or incorrect behavior A-rpc Related to the RPC implementation labels Oct 25, 2024
@stevencartavia
Copy link
Contributor Author

updated with the changes from #12095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apply beacon system call to debug_trace_block impls
2 participants