github.com/sberex/go-sberex@v1.8.2-0.20181113200658-ed96ac38f7d7/core/error.go (about) 1 // This file is part of the go-sberex library. The go-sberex library is 2 // free software: you can redistribute it and/or modify it under the terms 3 // of the GNU Lesser General Public License as published by the Free 4 // Software Foundation, either version 3 of the License, or (at your option) 5 // any later version. 6 // 7 // The go-sberex library is distributed in the hope that it will be useful, 8 // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser 10 // General Public License <http://www.gnu.org/licenses/> for more details. 11 12 package core 13 14 import "errors" 15 16 var ( 17 // ErrKnownBlock is returned when a block to import is already known locally. 18 ErrKnownBlock = errors.New("block already known") 19 20 // ErrGasLimitReached is returned by the gas pool if the amount of gas required 21 // by a transaction is higher than what's left in the block. 22 ErrGasLimitReached = errors.New("gas limit reached") 23 24 // ErrBlacklistedHash is returned if a block to import is on the blacklist. 25 ErrBlacklistedHash = errors.New("blacklisted hash") 26 27 // ErrNonceTooHigh is returned if the nonce of a transaction is higher than the 28 // next one expected based on the local chain. 29 ErrNonceTooHigh = errors.New("nonce too high") 30 )