mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
rpc: properly expose debug.getBlockFromFile api method
As stated in the documentation [1] and in the api [2],
this method should be called getBlockFromFile and not getBlockByFile.
Previously this would result in a 'The method ... does not exist/is
not available' error.
[1] https://github.com/ethereum/go-ethereum/wiki/Management-APIs#debug_traceblockfromfile
[2] 9e5f03b6c4/eth/api.go (L385)
This commit is contained in:
parent
65f0e905dd
commit
243955223d
1 changed files with 2 additions and 2 deletions
|
|
@ -208,8 +208,8 @@ web3._extend({
|
|||
params: 1
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'traceBlockByFile',
|
||||
call: 'debug_traceBlockByFile',
|
||||
name: 'traceBlockFromFile',
|
||||
call: 'debug_traceBlockFromFile',
|
||||
params: 1
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
|
|
|
|||
Loading…
Reference in a new issue