executor

package
v1.68.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertUserStoreKey added in v1.65.2

func CertUserStoreKey(addr string) (key []byte)

func GetName

func GetName() string

GetName 获取cert执行器名

func Init

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

Init 初始化

func InitExecType

func InitExecType()

InitExecType Init Exec Type

Types

type Cert

type Cert struct {
	drivers.DriverBase
}

Cert cert执行器

func (*Cert) CheckReceiptExecOk

func (c *Cert) CheckReceiptExecOk() bool

CheckReceiptExecOk return true to check if receipt ty is ok

func (*Cert) CheckTx

func (c *Cert) CheckTx(tx *types.Transaction, index int) error

CheckTx cert执行器tx证书校验

func (*Cert) ExecLocal_New

func (c *Cert) ExecLocal_New(payload *ct.CertNew, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)

ExecLocal_New 启用证书交易执行

func (*Cert) ExecLocal_Normal

func (c *Cert) ExecLocal_Normal(payload *ct.CertNormal, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)

ExecLocal_Normal 非证书变更交易执行

func (*Cert) ExecLocal_Update

func (c *Cert) ExecLocal_Update(payload *ct.CertUpdate, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)

ExecLocal_Update 更新证书交易执行

func (*Cert) Exec_New added in v1.65.2

func (c *Cert) Exec_New(payload *ct.CertNew, tx *types.Transaction, index int) (*types.Receipt, error)

func (*Cert) Exec_Normal added in v1.65.2

func (c *Cert) Exec_Normal(payload *ct.CertNormal, tx *types.Transaction, index int) (*types.Receipt, error)

func (*Cert) Exec_Update added in v1.65.2

func (c *Cert) Exec_Update(payload *ct.CertUpdate, tx *types.Transaction, index int) (*types.Receipt, error)

func (*Cert) GetDriverName

func (c *Cert) GetDriverName() string

GetDriverName 获取cert执行器名

func (*Cert) Query_CertValidSNByAddr added in v1.65.2

func (c *Cert) Query_CertValidSNByAddr(req *ct.ReqQueryValidCertSN) (types.Message, error)

Jump to

Keyboard shortcuts

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