mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 01:27:38 +00:00
internal/web3ext, les: update clique JS and make it work with the light client (#20318)
Also fix the input formatter on clique_getSnapshot and clique_getSigners so that integers as well as hex number strings are accepted.
This commit is contained in:
parent
037ffe84b4
commit
3a558d2460
@ -74,7 +74,7 @@ web3._extend({
|
|||||||
name: 'getSnapshot',
|
name: 'getSnapshot',
|
||||||
call: 'clique_getSnapshot',
|
call: 'clique_getSnapshot',
|
||||||
params: 1,
|
params: 1,
|
||||||
inputFormatter: [null]
|
inputFormatter: [web3._extend.utils.fromDecimal]
|
||||||
}),
|
}),
|
||||||
new web3._extend.Method({
|
new web3._extend.Method({
|
||||||
name: 'getSnapshotAtHash',
|
name: 'getSnapshotAtHash',
|
||||||
@ -85,7 +85,7 @@ web3._extend({
|
|||||||
name: 'getSigners',
|
name: 'getSigners',
|
||||||
call: 'clique_getSigners',
|
call: 'clique_getSigners',
|
||||||
params: 1,
|
params: 1,
|
||||||
inputFormatter: [null]
|
inputFormatter: [web3._extend.utils.fromDecimal]
|
||||||
}),
|
}),
|
||||||
new web3._extend.Method({
|
new web3._extend.Method({
|
||||||
name: 'getSignersAtHash',
|
name: 'getSignersAtHash',
|
||||||
@ -102,6 +102,11 @@ web3._extend({
|
|||||||
call: 'clique_discard',
|
call: 'clique_discard',
|
||||||
params: 1
|
params: 1
|
||||||
}),
|
}),
|
||||||
|
new web3._extend.Method({
|
||||||
|
name: 'status',
|
||||||
|
call: 'clique_status',
|
||||||
|
params: 0
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
properties: [
|
properties: [
|
||||||
new web3._extend.Property({
|
new web3._extend.Property({
|
||||||
|
Loading…
Reference in New Issue
Block a user