validation

package
v0.0.0-...-6d4bf48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTxVMContext

func NewTxVMContext(tx *bc.Tx, entry bc.Entry, prog *bc.Program, args [][]byte) *vm.Context

func ValidateBlock

func ValidateBlock(b, prev *bc.Block, initialBlockID bc.Hash, validateTx func(*bc.Tx) error) error

ValidateBlock validates a block and the transactions within. It does not run the consensus program; for that, see ValidateBlockSig.

func ValidateBlockSig

func ValidateBlockSig(b *bc.Block, prog []byte) error

ValidateBlockSig runs the consensus program prog on b.

func ValidateTx

func ValidateTx(tx *bc.Tx, initialBlockID bc.Hash) error

ValidateTx validates a transaction.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL