remove call api from rpc to consensus posv and add again with clique

This commit is contained in:
AnilChinchwale 2018-10-28 12:20:43 +05:30
parent 6fb2bbbde9
commit e5ca34b737

View file

@ -20,7 +20,7 @@ package web3ext
var Modules = map[string]string{
"admin": Admin_JS,
"chequebook": Chequebook_JS,
"XDPoS": XDPoS_JS,
"clique": clique_JS,
"debug": Debug_JS,
"eth": Eth_JS,
"miner": Miner_JS,
@ -63,13 +63,13 @@ web3._extend({
});
`
const XDPoS_JS = `
const clique_JS = `
web3._extend({
property: 'XDPoS',
property: 'clique',
methods: [
new web3._extend.Method({
name: 'getSnapshot',
call: 'XDPoS_getSnapshot',
call: 'clique_getSnapshot',
params: 1,
inputFormatter: [null]
}),
@ -80,30 +80,30 @@ web3._extend({
}),
new web3._extend.Method({
name: 'getSigners',
call: 'XDPoS_getSigners',
call: 'clique_getSigners',
params: 1,
inputFormatter: [null]
}),
new web3._extend.Method({
name: 'getSignersAtHash',
call: 'XDPoS_getSignersAtHash',
call: 'clique_getSignersAtHash',
params: 1
}),
new web3._extend.Method({
name: 'propose',
call: 'XDPoS_propose',
call: 'clique_propose',
params: 2
}),
new web3._extend.Method({
name: 'discard',
call: 'XDPoS_discard',
call: 'clique_discard',
params: 1
}),
],
properties: [
new web3._extend.Property({
name: 'proposals',
getter: 'XDPoS_proposals'
getter: 'clique_proposals'
}),
]
});