execution

package
v0.0.0-...-fb4f826 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	TxExecTimeout:   10 * time.Second,
	ConcurrentLimit: 20,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	BinccDir        string
	ContractDir     string
	TxExecTimeout   time.Duration
	ConcurrentLimit int
}

type Execution

type Execution struct {
	// contains filtered or unexported fields
}

func New

func New(stateStore *storage.Storage, config Config) *Execution

func (*Execution) Drivers

func (exec *Execution) Drivers() map[common.DriverType]common.CodeDriver

func (*Execution) Execute

func (exec *Execution) Execute(blk *core.Block, txs []*core.Transaction) (
	*core.BlockCommit, []*core.TxCommit)

func (*Execution) MockExecute

func (exec *Execution) MockExecute(blk *core.Block) (*core.BlockCommit, []*core.TxCommit)

func (*Execution) Query

func (exec *Execution) Query(query *common.QueryData) (val []byte, err error)

func (*Execution) StateStore

func (exec *Execution) StateStore() common.StateStore

func (*Execution) VerifyTx

func (exec *Execution) VerifyTx(tx *core.Transaction) error

Directories

Path Synopsis
evm

Jump to

Keyboard shortcuts

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