testtxsystem

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: AGPL-3.0, ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterTxSystem

type CounterTxSystem struct {
	InitCount       uint64
	BeginBlockCount uint64
	EndBlockCount   uint64
	ExecuteCount    uint64
	RevertCount     uint64
	SummaryValue    uint64

	ExecuteCountDelta    uint64
	EndBlockCountDelta   uint64
	BeginBlockCountDelta uint64

	// setting this affects the state once EndBlock() is called
	EndBlockChangesState bool
}

func (*CounterTxSystem) BeginBlock

func (m *CounterTxSystem) BeginBlock(_ uint64)

func (*CounterTxSystem) Commit

func (m *CounterTxSystem) Commit()

func (*CounterTxSystem) ConvertTx

func (*CounterTxSystem) EndBlock

func (m *CounterTxSystem) EndBlock() (txsystem.State, error)

func (*CounterTxSystem) Execute

func (*CounterTxSystem) Revert

func (m *CounterTxSystem) Revert()

func (*CounterTxSystem) State

func (m *CounterTxSystem) State() (txsystem.State, error)

type Summary

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

func (*Summary) Root

func (s *Summary) Root() []byte

func (*Summary) Summary

func (s *Summary) Summary() []byte

Jump to

Keyboard shortcuts

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