Documentation ¶
Index ¶
- Variables
- func NewTxVMContext(vs *validationState, entry bc.Entry, prog *bc.Program, args [][]byte) *vm.Context
- func ValidateBlock(b *bc.Block, parent *types.BlockHeader) error
- func ValidateBlockHeader(b *bc.Block, parent *types.BlockHeader) error
- func ValidateTxs(txs []*bc.Tx, block *bc.Block) []*validateTxResult
- type GasState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTxVersion = errors.New("invalid transaction version") ErrWrongTransactionSize = errors.New("invalid transaction size") ErrBadTimeRange = errors.New("invalid transaction time range") ErrEmptyInputIDs = errors.New("got the empty InputIDs") ErrNotStandardTx = errors.New("not standard transaction") ErrWrongCoinbaseTransaction = errors.New("wrong coinbase transaction") ErrWrongCoinbaseAsset = errors.New("wrong coinbase assetID") ErrCoinbaseArbitraryOversize = errors.New("coinbase arbitrary size is larger than limit") ErrEmptyResults = errors.New("transaction has no results") ErrMismatchedAssetID = errors.New("mismatched assetID") ErrMismatchedPosition = errors.New("mismatched value source/dest position") ErrMismatchedReference = errors.New("mismatched reference") ErrMismatchedValue = errors.New("mismatched value") ErrMissingField = errors.New("missing required field") ErrNoSource = errors.New("no source for value") ErrOverflow = errors.New("arithmetic overflow/underflow") ErrPosition = errors.New("invalid source or destination position") ErrUnbalanced = errors.New("unbalanced asset amount between input and output") ErrOverGasCredit = errors.New("all gas credit has been spend") ErrGasCalculate = errors.New("gas usage calculate got a math error") ErrVotePubKey = errors.New("invalid public key of vote") ErrVoteOutputAmount = errors.New("invalid vote amount") )
validate transaction error
Functions ¶
func NewTxVMContext ¶
func NewTxVMContext(vs *validationState, entry bc.Entry, prog *bc.Program, args [][]byte) *vm.Context
NewTxVMContext generates the vm.Context for BVM
func ValidateBlock ¶
func ValidateBlock(b *bc.Block, parent *types.BlockHeader) error
ValidateBlock validates a block and the transactions within.
func ValidateBlockHeader ¶
func ValidateBlockHeader(b *bc.Block, parent *types.BlockHeader) error
ValidateBlockHeader check the block's header
Types ¶
Click to show internal directories.
Click to hide internal directories.