diff --git a/consensus/posv/posv.go b/consensus/posv/posv.go index 4a163fb09e..fd6fee1e2e 100644 --- a/consensus/posv/posv.go +++ b/consensus/posv/posv.go @@ -819,12 +819,7 @@ func CalcDifficulty(snap *Snapshot, signer common.Address) *big.Int { // APIs implements consensus.Engine, returning the user facing RPC API to allow // controlling the signer voting. func (c *Posv) APIs(chain consensus.ChainReader) []rpc.API { - return []rpc.API{{ - Namespace: "posv", - Version: "1.0", - Service: &API{chain: chain, posv: c}, - Public: false, - }} + return []rpc.API{} } func (c *Posv) RecoverSigner(header *types.Header) (common.Address, error) { diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index c42e92d6b9..b3a5d9925e 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -20,7 +20,7 @@ package web3ext var Modules = map[string]string{ "admin": Admin_JS, "chequebook": Chequebook_JS, - "posv": Posv_JS, + "clique": Clique_JS, "debug": Debug_JS, "eth": Eth_JS, "miner": Miner_JS, @@ -63,47 +63,47 @@ web3._extend({ }); ` -const Posv_JS = ` +const Clique_JS = ` web3._extend({ - property: 'posv', + property: 'clique', methods: [ new web3._extend.Method({ name: 'getSnapshot', - call: 'posv_getSnapshot', + call: 'clique_getSnapshot', params: 1, inputFormatter: [null] }), new web3._extend.Method({ name: 'getSnapshotAtHash', - call: 'posv_getSnapshotAtHash', + call: 'clique_getSnapshotAtHash', params: 1 }), new web3._extend.Method({ name: 'getSigners', - call: 'posv_getSigners', + call: 'clique_getSigners', params: 1, inputFormatter: [null] }), new web3._extend.Method({ name: 'getSignersAtHash', - call: 'posv_getSignersAtHash', + call: 'clique_getSignersAtHash', params: 1 }), new web3._extend.Method({ name: 'propose', - call: 'posv_propose', + call: 'clique_propose', params: 2 }), new web3._extend.Method({ name: 'discard', - call: 'posv_discard', + call: 'clique_discard', params: 1 }), ], properties: [ new web3._extend.Property({ name: 'proposals', - getter: 'posv_proposals' + getter: 'clique_proposals' }), ] });