aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web3ext/web3ext.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2017-02-14 04:44:06 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2017-02-14 04:44:06 +0800
commit72dcd3c58bec0a281280d5d42ed53b6e429ce4af (patch)
treeb14f34e256b0a2aaa71413bfa3fc66f52edc92d9 /internal/web3ext/web3ext.go
parent4ece9c6cb0a75e0ba6c67f8b1e5200f652e5b3d4 (diff)
downloaddexon-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.tar
dexon-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.tar.gz
dexon-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.tar.bz2
dexon-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.tar.lz
dexon-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.tar.xz
dexon-72dcd3c58bec0a281280d5d42ed53b6e429ce4af.tar.zst
dexon-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 'internal/web3ext/web3ext.go')
-rw-r--r--internal/web3ext/web3ext.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go
index 2012c2517..e6bd18116 100644
--- a/internal/web3ext/web3ext.go
+++ b/internal/web3ext/web3ext.go
@@ -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: []
});