github.com/arieschain/arieschain@v0.0.0-20191023063405-37c074544356/core/error.go (about) 1 package core 2 3 import "errors" 4 5 var ( 6 // ErrKnownBlock is returned when a block to import is already known locally. 7 ErrKnownBlock = errors.New("block already known") 8 9 // ErrGasLimitReached is returned by the gas pool if the amount of gas required 10 // by a transaction is higher than what's left in the block. 11 ErrGasLimitReached = errors.New("gas limit reached") 12 13 // ErrBlacklistedHash is returned if a block to import is on the blacklist. 14 ErrBlacklistedHash = errors.New("blacklisted hash") 15 16 // ErrNonceTooHigh is returned if the nonce of a transaction is higher than the 17 // next one expected based on the local chain. 18 ErrNonceTooHigh = errors.New("nonce too high") 19 )