Documentation
¶
Index ¶
- func Factory(ctx context.Context, config *consensus.Config, privateKey *ecdsa.PrivateKey, ...) (consensus.Consensus, error)
- type Clique
- func (c *Clique) Close() error
- func (c *Clique) Prepare(chain consensus.ChainReader, header *types.Header) error
- func (c *Clique) Seal(chain consensus.ChainReader, block *types.Block, ctx context.Context) (*types.Block, error)
- func (c *Clique) VerifyHeader(chain consensus.ChainReader, header *types.Header, uncle, seal bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clique ¶
type Clique struct { }
Clique is a consensus algorithm for the clique protocol
func (*Clique) Prepare ¶
Prepare initializes the consensus fields of a block header according to the rules of a particular engine. The changes are executed inline.
func (*Clique) Seal ¶
func (c *Clique) Seal(chain consensus.ChainReader, block *types.Block, ctx context.Context) (*types.Block, error)
Seal seals the block
func (*Clique) VerifyHeader ¶
func (c *Clique) VerifyHeader(chain consensus.ChainReader, header *types.Header, uncle, seal bool) error
VerifyHeader verifies the header is correct
Click to show internal directories.
Click to hide internal directories.