github.com/arieschain/arieschain@v0.0.0-20191023063405-37c074544356/consensus/errors.go (about)

     1  package consensus
     2  
     3  import "errors"
     4  
     5  var (
     6  	// ErrUnknownAncestor is returned when validating a block requires an ancestor
     7  	// that is unknown.
     8  	ErrUnknownAncestor = errors.New("unknown ancestor")
     9  
    10  	// ErrPrunedAncestor is returned when validating a block requires an ancestor
    11  	// that is known, but the state of which is not available.
    12  	ErrPrunedAncestor = errors.New("pruned ancestor")
    13  
    14  	// ErrFutureBlock is returned when a block's timestamp is in the future according
    15  	// to the current node.
    16  	ErrFutureBlock = errors.New("block in the future")
    17  
    18  	// ErrInvalidNumber is returned if a block's number doesn't equal it's parent's
    19  	// plus one.
    20  	ErrInvalidNumber = errors.New("invalid block number")
    21  	
    22  	ErrMining = errors.New("mining")
    23  )