aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-04-12 20:37:10 +0800
committerGitHub <noreply@github.com>2017-04-12 20:37:10 +0800
commit6b7ae4e751dbaee0f31032f045fd35b0c1079388 (patch)
treee63f021ae31976fa78e2f5c76a9d1399264db942 /internal
parent050ceff1aed3d06b4ebf4aead0dc03e7cac34458 (diff)
downloadgo-tangerine-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar
go-tangerine-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.gz
go-tangerine-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.bz2
go-tangerine-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.lz
go-tangerine-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.xz
go-tangerine-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.zst
go-tangerine-6b7ae4e751dbaee0f31032f045fd35b0c1079388.zip
consensus/clique, internal/web3ext: support hash based API queries (#14321)
* consensus/clique, internal/web3ext: support hash based API queries * consensus/clique: make RPC return types public
Diffstat (limited to 'internal')
-rw-r--r--internal/web3ext/web3ext.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go
index dd325100f..ac79398b9 100644
--- a/internal/web3ext/web3ext.go
+++ b/internal/web3ext/web3ext.go
@@ -30,10 +30,8 @@ var Modules = map[string]string{
"shh": Shh_JS,
"swarmfs": SWARMFS_JS,
"txpool": TxPool_JS,
-
}
-
const Chequebook_JS = `
web3._extend({
property: 'chequebook',
@@ -77,6 +75,11 @@ web3._extend({
params: 1,
inputFormatter: [null]
}),
+ new web3._extend.Method({
+ name: 'getSnapshotAtHash',
+ call: 'clique_getSnapshotAtHash',
+ params: 1
+ }),
new web3._extend.Method({
name: 'getSigners',
call: 'clique_getSigners',
@@ -84,6 +87,11 @@ web3._extend({
inputFormatter: [null]
}),
new web3._extend.Method({
+ name: 'getSignersAtHash',
+ call: 'clique_getSignersAtHash',
+ params: 1
+ }),
+ new web3._extend.Method({
name: 'propose',
call: 'clique_propose',
params: 2