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
Description
Geth has an endpoint called debug_getBadBlocks
, which is very useful for two purposes.
- 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.
- 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.