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

rpc-compat: add special test for debug_getBadBlocks #630

Closed
wants to merge 1 commit into from

Conversation

lightclient
Copy link
Member

Since debug_getBadBlocks relies on the client seeing a bad block over p2p, I've added support in geth to send arbitrary new block announcements and have sealed a "bad" block in the execution-apis repo, along side the normal chain.rlp.

This PR takes the provided bad block and sends it over the wire to the client. The client should then reject the block as invalid and record it somewhere to later be retrieved by debug_getBadBlocks.

@fjl
Copy link
Collaborator

fjl commented Aug 22, 2023

I'm closing this because the p2p protocol no longer allows injecting block announcements.

@fjl fjl closed this Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants