From 243955223dca3c92c276be8e3de720714517fd48 Mon Sep 17 00:00:00 2001 From: Daniel Sloof Date: Fri, 7 Jul 2017 21:49:47 +0200 Subject: [PATCH] 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] https://github.com/ethereum/go-ethereum/blob/9e5f03b6c487175cc5aa1224e5e12fd573f483a7/eth/api.go#L385 --- internal/web3ext/web3ext.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index 948d659c2b..44fabd6abb 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -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({