executor

package
v0.0.0-...-3c905e5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package executor none执行器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName

func GetName() string

GetName return name at execution time

func Init

func Init(name string, cfg *types.ChainConfig, sub []byte)

Init register newnone

func InitExecType

func InitExecType()

InitExecType the initialization process is relatively heavyweight, lots of reflect, so it's global

Types

type None

type None struct {
	drivers.DriverBase
}

None defines a none type

func (*None) CheckTx

func (n *None) CheckTx(tx *types.Transaction, index int) error

CheckTx 实现自定义检验交易接口,供框架调用

func (*None) ExecDelLocal

func (n *None) ExecDelLocal(tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

ExecDelLocal localdb kv数据自动回滚接口

func (*None) ExecLocal_CommitDelayTx

func (n *None) ExecLocal_CommitDelayTx(commit *nty.CommitDelayTx, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

ExecLocal_CommitDelayTx exec local commit delay tx

func (*None) Exec_CommitDelayTx

func (n *None) Exec_CommitDelayTx(commit *nty.CommitDelayTx, tx *types.Transaction, index int) (*types.Receipt, error)

Exec_CommitDelayTx exec commit dealy transaction

func (*None) GetDriverName

func (n *None) GetDriverName() string

GetDriverName return dcrivername at register

func (*None) IsFriend

func (n *None) IsFriend(self, dbKey []byte, checkTx *types.Transaction) bool

IsFriend 控制none合约db key修改权限

func (*None) Query_GetDelayTxInfo

func (n *None) Query_GetDelayTxInfo(req *types.ReqBytes) (types.Message, error)

Query_GetDelayTxInfo query delay tx delay begin height

Jump to

Keyboard shortcuts

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