txsimulator

package
v1.1.55 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReadOnlyAccountsDB

func NewReadOnlyAccountsDB(accountsDB state.AccountsAdapter) (*readOnlyAccountsDB, error)

NewReadOnlyAccountsDB returns a new instance of readOnlyAccountsDB

func NewTransactionSimulator

func NewTransactionSimulator(args ArgsTxSimulator) (*transactionSimulator, error)

NewTransactionSimulator returns a new instance of a transactionSimulator

Types

type ArgsTxSimulator

type ArgsTxSimulator struct {
	TransactionProcessor       TransactionProcessor
	IntermmediateProcContainer process.IntermediateProcessorContainer
	AddressPubKeyConverter     core.PubkeyConverter
	ShardCoordinator           sharding.Coordinator
}

ArgsTxSimulator holds the arguments required for creating a new transaction simulator

type TransactionProcessor

type TransactionProcessor interface {
	ProcessTransaction(transaction *transaction.Transaction) (vmcommon.ReturnCode, error)
	IsInterfaceNil() bool
}

TransactionProcessor defines the operations needed do be done by a transaction processor

Jump to

Keyboard shortcuts

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