txprocessor

package
v0.0.0-...-4f0ab6e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTxProcessor

NewTxProcessor returns a new instance of TxProcessor.

Types

type SysContractExecutor

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

SysContractExecutor is an executor to execute system contract.

func NewSysCE

func NewSysCE(shard shard.Index) *SysContractExecutor

NewSysCE returns a instance of SysContractExecutor. Visible for testing only, as in for txgenerator. Don't use it outside of this package for other reason.

func (*SysContractExecutor) Execute

func (sce *SysContractExecutor) Execute(tx *wire.MsgTx, proposeBlockHeight int64) ([]*wire.OutPoint, *wire.SmartContract, error)

Execute system contract using given tx and propose block height.

Jump to

Keyboard shortcuts

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