Versions in this module Expand all Collapse all v1 v1.6.9 May 31, 2018 Changes in this version + var ErrInvalidTimestamp = errors.New("invalid timestamp") + type API struct + func (api *API) Discard(address common.Address) + 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) + type Clique struct + func New(config *params.CliqueConfig, db ethdb.Database) *Clique + func (c *Clique) APIs(chain consensus.ChainReader) []rpc.API + func (c *Clique) Author(header *types.Header) (common.Address, error) + func (c *Clique) Authorize(signer common.Address, signFn SignerFn) + func (c *Clique) Finalize(chain consensus.ChainReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (c *Clique) Prepare(chain consensus.ChainReader, header *types.Header) error + func (c *Clique) Seal(chain consensus.ChainReader, block *types.Block, stop <-chan struct{}) (*types.Block, error) + func (c *Clique) VerifyHeader(chain consensus.ChainReader, header *types.Header, seal bool) error + func (c *Clique) VerifyHeaders(chain consensus.ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + func (c *Clique) VerifySeal(chain consensus.ChainReader, header *types.Header) error + func (c *Clique) VerifyUncles(chain consensus.ChainReader, block *types.Block) error + type SignerFn func(accounts.Account, []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