aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web3ext
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2018-08-22 03:56:54 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-22 03:56:54 +0800
commitb2c644ffb5c283a171ddf3889693673939917541 (patch)
tree501d3c337f5fb59404fd8d530eb247cdcc2144eb /internal/web3ext
parent522cfc68ff496aee4205add982db049dc3092024 (diff)
downloadgo-tangerine-b2c644ffb5c283a171ddf3889693673939917541.tar.gz
go-tangerine-b2c644ffb5c283a171ddf3889693673939917541.tar.zst
go-tangerine-b2c644ffb5c283a171ddf3889693673939917541.zip
cmd, eth, miner: make recommit configurable (#17444)
* cmd, eth, miner: make recommit configurable * cmd, eth, les, miner: polish a bit * miner: filter duplicate sealing work * cmd: remove uncessary conversion * miner: avoid microptimization in favor of cleaner code
Diffstat (limited to 'internal/web3ext')
-rw-r--r--internal/web3ext/web3ext.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go
index 000e3728d..f4eb47a12 100644
--- a/internal/web3ext/web3ext.go
+++ b/internal/web3ext/web3ext.go
@@ -520,6 +520,11 @@ web3._extend({
inputFormatter: [web3._extend.utils.fromDecimal]
}),
new web3._extend.Method({
+ name: 'setRecommitInterval',
+ call: 'miner_setRecommitInterval',
+ params: 1,
+ }),
+ new web3._extend.Method({
name: 'getHashrate',
call: 'miner_getHashrate'
}),