mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
remove call api from rpc to consensus posv and add again with clique
This commit is contained in:
parent
6fb2bbbde9
commit
e5ca34b737
1 changed files with 9 additions and 9 deletions
|
|
@ -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'
|
||||
}),
|
||||
]
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue