erigon-pulse/consensus
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
..
aura Embed AuRa config into chain Config (#7307) 2023-04-14 07:51:25 +00:00
bor Move hexutil.Bytes to erigon-lib (#7305) 2023-04-13 11:19:02 +00:00
clique Add clique API, support "clique" option in --http.api flag (#6985) 2023-05-05 09:20:40 +07:00
db [Diagnostics] Simplify logging settings, introduce correct log rotation with lumberjack (#7273) 2023-04-07 21:08:44 +00:00
ethash eip-4844: setting header's excess_data_gas, verifiying eip-4844 headers (#7308) 2023-04-16 08:12:40 +00:00
misc eip-4844: NewMessage now expectes maxFeePerDataGas & GetPayloadV3 impl (#7365) 2023-04-23 18:27:05 +01:00
serenity eip-4844: setting header's excess_data_gas, verifiying eip-4844 headers (#7308) 2023-04-16 08:12:40 +00:00
chain_reader.go Add clique API, support "clique" option in --http.api flag (#6985) 2023-05-05 09:20:40 +07:00
consensus.go Remove Parlia (#7306) 2023-04-14 06:24:10 +00:00
errors.go Withdrawals part 1 (#6009) 2022-12-01 09:15:01 +01:00
result.go Clean up DEBUG category logs (#2776) 2021-10-05 08:14:04 +07:00