OSDN Git Service

Add the basic framework for voting processing for dpos
[bytom/vapor.git] / consensus / consensus / consensus.go
index d5eb7d7..61c2dfc 100644 (file)
@@ -8,21 +8,6 @@ import (
 
 // Engine is an algorithm agnostic consensus engine.
 type Engine interface {
-       // Author retrieves the Ethereum address of the account that minted the given
-       // block, which may be different from the header's coinbase if a consensus
-       // engine is based on signatures.
-       Author(header *types.BlockHeader, c chain.Chain) (string, error)
-
-       // VerifyHeader checks whether a header conforms to the consensus rules of a
-       // given engine. Verifying the seal may be done optionally here, or explicitly
-       // via the VerifySeal method.
-       VerifyHeader(c chain.Chain, header *types.BlockHeader, seal bool) error
-
-       // VerifyHeaders is similar to VerifyHeader, but verifies a batch of headers
-       // concurrently. The method returns a quit channel to abort the operations and
-       // a results channel to retrieve the async verifications (the order is that of
-       // the input slice).
-       VerifyHeaders(c chain.Chain, headers []*types.BlockHeader, seals []bool) (chan<- struct{}, <-chan error)
 
        // VerifySeal checks whether the crypto seal on a header is valid according to
        // the consensus rules of the given engine.