diff options
author | Martin Holst Swende <martin@swende.se> | 2017-02-14 04:44:06 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-02-14 04:44:06 +0800 |
commit | 72dcd3c58bec0a281280d5d42ed53b6e429ce4af (patch) | |
tree | b14f34e256b0a2aaa71413bfa3fc66f52edc92d9 /core/blockchain_test.go | |
parent | 4ece9c6cb0a75e0ba6c67f8b1e5200f652e5b3d4 (diff) | |
download | go-tangerine-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.tar.gz go-tangerine-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.tar.zst go-tangerine-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.zip |
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
Diffstat (limited to 'core/blockchain_test.go')
-rw-r--r-- | core/blockchain_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 8f1383acd..16bea9d7c 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -485,6 +485,7 @@ func chm(genesis *types.Block, db ethdb.Database) *BlockChain { bc.bodyRLPCache, _ = lru.New(100) bc.blockCache, _ = lru.New(100) bc.futureBlocks, _ = lru.New(100) + bc.badBlocks, _ = lru.New(10) bc.SetValidator(bproc{}) bc.SetProcessor(bproc{}) bc.ResetWithGenesisBlock(genesis) |