validation

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GasRate indicates the current gas rate
	GasRate = int64(1000)
)

Variables

This section is empty.

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, prev *bc.Block, seedCaches *seed.SeedCaches) error

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

func ValidateTx

func ValidateTx(tx *bc.Tx, block *bc.Block) (uint64, 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