Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Feature-request: debug_getBadBlocks #8761

Closed
@holiman

Description

@holiman

Geth has an endpoint called debug_getBadBlocks, which is very useful for two purposes.

  1. It can be used to detect consensus flaws more quickly, by correlating what one client considers bad blocks and what the other client has in it's chain.
  2. It can be used to analyze consensus flaws more easily, since even if I run a client that does not import a rejected block, it can still provide me with the block for analysis on why it was considered 'bad'.

Geth implementation is here. See UPPDATE below
Response definition here See UPPDATE below

Geth uses an LRU-cache with up to 10 bad blocks, but that's an implementation detail.

Metadata

Metadata

Assignees

Labels

F8-enhancement 🎊An additional feature request.M6-rpcapi 📣RPC API.P7-nicetohave 🐕Issue is worth doing eventually.Q3-mediumA fair chunk of work, not necessarily very hard but not trivial either

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions