mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 01:40:44 +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{
|
var Modules = map[string]string{
|
||||||
"admin": Admin_JS,
|
"admin": Admin_JS,
|
||||||
"chequebook": Chequebook_JS,
|
"chequebook": Chequebook_JS,
|
||||||
"XDPoS": XDPoS_JS,
|
"clique": clique_JS,
|
||||||
"debug": Debug_JS,
|
"debug": Debug_JS,
|
||||||
"eth": Eth_JS,
|
"eth": Eth_JS,
|
||||||
"miner": Miner_JS,
|
"miner": Miner_JS,
|
||||||
|
|
@ -63,13 +63,13 @@ web3._extend({
|
||||||
});
|
});
|
||||||
`
|
`
|
||||||
|
|
||||||
const XDPoS_JS = `
|
const clique_JS = `
|
||||||
web3._extend({
|
web3._extend({
|
||||||
property: 'XDPoS',
|
property: 'clique',
|
||||||
methods: [
|
methods: [
|
||||||
new web3._extend.Method({
|
new web3._extend.Method({
|
||||||
name: 'getSnapshot',
|
name: 'getSnapshot',
|
||||||
call: 'XDPoS_getSnapshot',
|
call: 'clique_getSnapshot',
|
||||||
params: 1,
|
params: 1,
|
||||||
inputFormatter: [null]
|
inputFormatter: [null]
|
||||||
}),
|
}),
|
||||||
|
|
@ -80,30 +80,30 @@ web3._extend({
|
||||||
}),
|
}),
|
||||||
new web3._extend.Method({
|
new web3._extend.Method({
|
||||||
name: 'getSigners',
|
name: 'getSigners',
|
||||||
call: 'XDPoS_getSigners',
|
call: 'clique_getSigners',
|
||||||
params: 1,
|
params: 1,
|
||||||
inputFormatter: [null]
|
inputFormatter: [null]
|
||||||
}),
|
}),
|
||||||
new web3._extend.Method({
|
new web3._extend.Method({
|
||||||
name: 'getSignersAtHash',
|
name: 'getSignersAtHash',
|
||||||
call: 'XDPoS_getSignersAtHash',
|
call: 'clique_getSignersAtHash',
|
||||||
params: 1
|
params: 1
|
||||||
}),
|
}),
|
||||||
new web3._extend.Method({
|
new web3._extend.Method({
|
||||||
name: 'propose',
|
name: 'propose',
|
||||||
call: 'XDPoS_propose',
|
call: 'clique_propose',
|
||||||
params: 2
|
params: 2
|
||||||
}),
|
}),
|
||||||
new web3._extend.Method({
|
new web3._extend.Method({
|
||||||
name: 'discard',
|
name: 'discard',
|
||||||
call: 'XDPoS_discard',
|
call: 'clique_discard',
|
||||||
params: 1
|
params: 1
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
properties: [
|
properties: [
|
||||||
new web3._extend.Property({
|
new web3._extend.Property({
|
||||||
name: 'proposals',
|
name: 'proposals',
|
||||||
getter: 'XDPoS_proposals'
|
getter: 'clique_proposals'
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue