core, eth, internal: Added debug_getBadBlocks() method (#3654)

* core,eth,internal: Added `debug_getBadBlocks()` method

When bad blocks are discovered, these are stored within geth.
An RPC-endpoint makes them availablewithin the `debug`
namespace. This feature makes it easier to discover network forks.

```

* core, api: go format + docs

* core/blockchain: Documentation, fix minor nitpick

* core: fix failing blockchain test
This commit is contained in:
Martin Holst Swende
2017-02-13 21:44:06 +01:00
committed by Jeffrey Wilcke
parent 4ece9c6cb0
commit 72dcd3c58b
4 changed files with 42 additions and 2 deletions

View File

@ -294,7 +294,12 @@ web3._extend({
call: 'debug_preimage',
params: 1,
inputFormatter: [null]
})
}),
new web3._extend.Method({
name: 'getBadBlocks',
call: 'debug_getBadBlocks',
params: 0,
}),
],
properties: []
});