Versions in this module Expand all Collapse all v1 v1.0.2 Dec 20, 2023 v1.0.1 Dec 19, 2023 Changes in this version + func CliqueRLP(header *types.Header) []byte + func SealHash(header *types.Header) (hash common.Hash) + type API struct + func (api *API) Discard(address common.Address) + func (api *API) GetSigner(rlpOrBlockNr *blockNumberOrHashOrRLP) (common.Address, error) + func (api *API) GetSigners(number *rpc.BlockNumber) ([]common.Address, error) + func (api *API) GetSignersAtHash(hash common.Hash) ([]common.Address, error) + func (api *API) GetSnapshot(number *rpc.BlockNumber) (*Snapshot, error) + func (api *API) GetSnapshotAtHash(hash common.Hash) (*Snapshot, error) + func (api *API) Proposals() map[common.Address]bool + func (api *API) Propose(address common.Address, auth bool) + func (api *API) Status() (*status, error) + type Clique struct + func New(config *params.CliqueConfig, db ethdb.Database) *Clique + func (c *Clique) APIs(chain consensus.ChainHeaderReader) []rpc.API + func (c *Clique) Author(header *types.Header) (common.Address, error) + func (c *Clique) Authorize(signer common.Address, signFn SignerFn) + func (c *Clique) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int + func (c *Clique) Close() error + func (c *Clique) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) + func (c *Clique) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (c *Clique) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error + func (c *Clique) Seal(chain consensus.ChainHeaderReader, block *types.Block, ...) error + func (c *Clique) SealHash(header *types.Header) common.Hash + func (c *Clique) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error + func (c *Clique) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header) (chan<- struct{}, <-chan error) + func (c *Clique) VerifyUncles(chain consensus.ChainReader, block *types.Block) error + type SignerFn func(signer accounts.Account, mimeType string, message []byte) ([]byte, error) + type Snapshot struct + Hash common.Hash + Number uint64 + Recents map[uint64]common.Address + Signers map[common.Address]struct{} + Tally map[common.Address]Tally + Votes []*Vote + type Tally struct + Authorize bool + Votes int + type Vote struct + Address common.Address + Authorize bool + Block uint64 + Signer common.Address