Documentation
¶
Index ¶
- func NewTxVMContext(tx *bc.Tx, entry bc.Entry, prog *bc.Program, args [][]byte) *vm.Context
- func ValidateBlock(b, prev *bc.Block, initialBlockID bc.Hash, validateTx func(*bc.Tx) error) error
- func ValidateBlockSig(b *bc.Block, prog []byte) error
- func ValidateTx(tx *bc.Tx, initialBlockID bc.Hash) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTxVMContext ¶
func ValidateBlock ¶
ValidateBlock validates a block and the transactions within. It does not run the consensus program; for that, see ValidateBlockSig.
func ValidateBlockSig ¶
ValidateBlockSig runs the consensus program prog on b.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.