add block uncle and block counts

This commit is contained in:
Fabian Vogelsteller 2015-03-24 09:42:09 +01:00
parent b3b95c5f98
commit c52250e203
1 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ var getBlock = new Method({
var getUncle = new Method({ var getUncle = new Method({
name: 'getUncle', name: 'getUncle',
call: uncleCall, call: uncleCall,
params: 2, params: 3,
inputFormatter: [utils.toHex, utils.toHex, function (val) { return !!val; }], inputFormatter: [utils.toHex, utils.toHex, function (val) { return !!val; }],
outputFormatter: formatters.outputBlockFormatter, outputFormatter: formatters.outputBlockFormatter,
@ -121,7 +121,7 @@ var getCompilers = new Method({
params: 0 params: 0
}); });
var getBlockTransactounCount = new Method({ var getBlockTransactionCount = new Method({
name: 'getBlockTransactionCount', name: 'getBlockTransactionCount',
call: getBlockTransactionCountCall, call: getBlockTransactionCountCall,
params: 1, params: 1,
@ -205,7 +205,7 @@ var methods = [
getBlock, getBlock,
getUncle, getUncle,
getCompilers, getCompilers,
getBlockTransactounCount, getBlockTransactionCount,
getBlockUncleCount, getBlockUncleCount,
getTransaction, getTransaction,
getTransactionFromBlock, getTransactionFromBlock,