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:
Daniel Sloof 2017-07-07 21:49:47 +02:00
parent 65f0e905dd
commit 243955223d

View file

@ -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({