Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoBestPeerFound = errors.New("no best peer found") ErrCurHeightTooLow = errors.New("cur height too low") ErrIsChangePointDoNotFind = errors.New("is change point, do not find") ErrNotInIsVerifierCache = errors.New("not in is verifier cache") ErrNotCurrentOrNextVerifier = errors.New("not current or next verifier") ErrAlreadyStarted = errors.New("already started") )
View Source
var ( ErrTxFeeTooLow = errors.New("the tx fee is too low") ErrNotCurrentVerifier = errors.New("vote signer is not current verifier") ErrSameVoteSingerInVotes = errors.New("same vote signer in votes") ErrBlockVotesNotEnough = errors.New("block votes not enough") ErrInvalidBlockHashInVotes = errors.New("invalid block hash in votes") ErrFirstBlockShouldNotHaveVerifications = errors.New("first block shouldn't have verifications") ErrInvalidFirstVoteInSpecialBlock = errors.New("first vote in special block should be boot node's vote") ErrInvalidTxType = errors.New("invalid type, no validator for tx") ErrTxOverSize = errors.New("tx over size") ErrEmptyVoteList = errors.New("empty vote list") ErrTxNonceNotMatch = errors.New("tx nonce not match") )
View Source
var ( ErrBlockNumberNotContinuous = errors.New("block number not continuous") ErrBlockPreHashNotMatch = errors.New("block pre hash not match") ErrNoGenesis = errors.New("genesis not found in chain") ErrFutureBlock = errors.New("future block") //not an error ErrFutureBlockTooFarAway = errors.New("future block too far away") ErrStateRootNotMatch = errors.New("state root not match") ErrRegisterRootNotMatch = errors.New("register root not match") // ErrUnknownAncestor is returned when validating a block requires an ancestor // that is unknown. ErrUnknownAncestor = errors.New("unknown ancestor") //ErrUnexpectedReward is returned when validating a block and reward for miner is more than expected ErrUnexpectedReward = errors.New("unexpected reward") //ErrHashNotMatchAncestor is returned when block hash not match ancestor head hash ErrHashNotMatchAncestor = errors.New("preHash not match ancestor") //ErrBadMerkleRoot is returned when merkle root not match with the merkle hash in block header. ErrBadMerkleRoot = errors.New("bad merkle root") /*Transaction errors*/ //ErrDuplicateTx is returned when a transaction is already in the tx pool. ErrDuplicateTx = errors.New("duplicate transaction") //ErrFeeNotEnough is returned when in transaction fee is not enough for a transaction. ErrFeeNotEnough = errors.New("tx fee not enough") //ErrBadSignature is returned when the signature not match ErrBadSignature = errors.New("signature not match") //ErrEmptyTxouts is returned when a transaction has no txouts ErrEmptyTxouts = errors.New("txouts is empty") //ErrBadIns is returned when one Ins has a nil outpoint ErrBadIns = errors.New("input has a nil outpoint") //ErrWitNotMatch is returned when on transaction witness is not mach ErrWitNotMatch = errors.New("witness not match") //ErrNotEnoughCredit is returned when a transaction try to spent more than coin ErrNotEnoughCredit = errors.New("credit smaller than spent") //ErrAlreadyHaveThisBlock is returned when ErrAlreadyHaveThisBlock = errors.New("already have this block") ErrBlockHeightTooLow = errors.New("block height too low") ErrBlockHeightIsCurrentAndIsNotSpecial = errors.New("block height is the same as current block height and isn't empty block") ErrBlockSizeTooLarge = errors.New("block size too large") ErrBlockNotFound = errors.New("block not found") ErrCurrentBlockIsNil = errors.New("current block is nil") ErrPreBlockIsNil = errors.New("pre block cannot be null") ErrPreBlockHashNotMatch = errors.New("pre block hash not match") ErrSpecialInvalidCoinBase = errors.New("invalid special block CoinBase address") ErrInvalidDiff = errors.New("invalid difficulty for this block") ErrWrongHashDiff = errors.New("block hash not valid for difficulty") ErrNotGetPk = errors.New("can not get pk from header") ErrSeedNotMatch = errors.New("block seed not match") ErrPkNotIsCoinBase = errors.New("pk not belongs to CoinBase") ErrBlockVer = errors.New("block version not accept") ErrBlockTimeStamp = errors.New("the block time stamp is invalid") )
View Source
var ( ErrIsNotCurVerifierCannotStartBft = errors.New("is not current verifier, can't start bft") ErrCannotLoadSeenCommit = errors.New("can't load seen commit") )
View Source
var ( AccountNotExist = errors.New("account does not exist") BalanceNegErr = errors.New("balance can not be negtive") NotHavePreBlockErr = errors.New("not have pre block") UnknownTxTypeErr = errors.New("unknown tx type") InvalidVerifierAddressErr = errors.New("invalid verifier address") InvalidCoinBaseAddressErr = errors.New("invalid coinBase address") )
View Source
var ( PeerTypeError = errors.New("peer isn't verifier or bootNodeVerifier") ProofGenerateError = errors.New("generate vrf proof error") AddressIsNotVerifierBootNode = errors.New("the Address isn't verifier boot node") ProposalMsgDecodeError = errors.New("proposal msg decode error") MinimalBlockDecodeError = errors.New("decode minimal block msg error") EmptyBlockNumberNotMatchError = errors.New("the empty block number not match") VoteMsgBlockHashNotMatchError = errors.New("vote msg block hash not match") WaitEmptyBlockExpireError = errors.New("wait empty block expire") VoteMsgDecodeError = errors.New("decode aliveVerifierVote message error") AlreadyHaveVoteMsgError = errors.New("already have this vote msg") GenProposalConfigError = errors.New("generate proposal config error") AliveVoteBlockHashError = errors.New("the alive verifier vote block hash error") EmptyBlockIsNil = errors.New("the empty block is nil") ProposeNotEnough = errors.New("the propose isn't enough") )
peer type error
View Source
var (
BlockNumberError = errors.New("the block number is smaller than 2")
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.