aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2016-02-04 06:47:58 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-03-24 06:02:44 +0800
commit3601320ccd0b3db59d1f720c8a2a2383f5c8435f (patch)
tree4f9fae709e22e30eec91351f2d562aa73e32b10f /rpc
parent14013372aeca2d7f1d8c3a87b7df7c27868314be (diff)
downloaddexon-3601320ccd0b3db59d1f720c8a2a2383f5c8435f.tar.gz
dexon-3601320ccd0b3db59d1f720c8a2a2383f5c8435f.tar.zst
dexon-3601320ccd0b3db59d1f720c8a2a2383f5c8435f.zip
eth, rpc: implemented block debugging rpc calls
Implemented the following block debugging RPC calls * Block(RLP) * BlockByFile(fileName) * BlockByNumber(number) * BlockByHash(hash)
Diffstat (limited to 'rpc')
-rw-r--r--rpc/javascript.go27
1 files changed, 21 insertions, 6 deletions
diff --git a/rpc/javascript.go b/rpc/javascript.go
index 72290a2a6..c4fa80c0b 100644
--- a/rpc/javascript.go
+++ b/rpc/javascript.go
@@ -291,9 +291,24 @@ web3._extend({
params: 1
}),
new web3._extend.Method({
- name: 'processBlock',
- call: 'debug_processBlock',
- params: 1
+ name: 'traceBlock',
+ call: 'debug_traceBlock',
+ params: 2
+ }),
+ new web3._extend.Method({
+ name: 'traceBlockByFile',
+ call: 'debug_traceBlockByFile',
+ params: 2
+ }),
+ new web3._extend.Method({
+ name: 'traceBlockByNumber',
+ call: 'debug_traceBlockByNumber',
+ params: 2
+ }),
+ new web3._extend.Method({
+ name: 'traceBlockByHash',
+ call: 'debug_traceBlockByHash',
+ params: 2
}),
new web3._extend.Method({
name: 'seedHash',
@@ -382,9 +397,9 @@ web3._extend({
params: 1
}),
new web3._extend.Method({
- name: 'replayTransaction',
- call: 'debug_replayTransaction',
- params: 4
+ name: 'traceTransaction',
+ call: 'debug_traceTransaction',
+ params: 2
})
],
properties: []