erigon-pulse/consensus/clique
0xMaxMa 9440126ddf
Add clique API, support "clique" option in --http.api flag (#6985)
* Enable the `clique` option in the `--http.api` flag.

* List of Clique commands:
`clique_getSnapshot(block number)`
`clique_getSnapshotAtHash(block hash)`
`clique_getSnapshotAtHash(block hash)`
`clique_getSigners(block number)`
`clique_getSignersAtHash(block hash)`
`clique_proposals()`
`clique_propose(signer address, bool)`
`clique_discard(signer address)`
`clique_status()`
Example:
`curl --data
'{"method":"clique_getSigners","params":[],"id":1,"jsonrpc":"2.0"}' -H
"Content-Type: application/json" -X POST http://localhost:8545`

* Please be careful while using the Clique API. Do not make the HTTP API
public on the Clique's signer node, as anyone can directly call a Clique
command. Instead, it should only be allowed in the localhost by using
the flag `--http.addr "127.0.0.1"`.
2023-05-05 09:20:40 +07:00
..
api.go Add clique API, support "clique" option in --http.api flag (#6985) 2023-05-05 09:20:40 +07:00
clique_test.go Break dependency of ethcfg package to core/consensus/etc... move genesis struct to 'types' package (#7206) 2023-03-29 07:27:06 +00:00
clique.go Add clique API, support "clique" option in --http.api flag (#6985) 2023-05-05 09:20:40 +07:00
keys.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
snapshot_test.go stop using olddb in simulated backend (#7219) 2023-03-30 03:31:15 +00:00
snapshot.go remove lru package alias (#7251) 2023-04-04 04:02:23 +00:00
verifier.go Add clique API, support "clique" option in --http.api flag (#6985) 2023-05-05 09:20:40 +07:00