testtxsystem

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 7 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

	// fee charged for each tx
	Fee uint64
	// contains filtered or unexported fields
}

func (*CounterTxSystem) BeginBlock

func (m *CounterTxSystem) BeginBlock(nr uint64) error

func (*CounterTxSystem) Commit

func (*CounterTxSystem) CommittedUC

func (m *CounterTxSystem) CommittedUC() *types.UnicityCertificate

func (*CounterTxSystem) EndBlock

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

func (*CounterTxSystem) Execute

func (*CounterTxSystem) Revert

func (m *CounterTxSystem) Revert()

func (*CounterTxSystem) SerializeState

func (m *CounterTxSystem) SerializeState(writer io.Writer, committed bool) error

func (*CounterTxSystem) State

func (*CounterTxSystem) StateSummary

func (m *CounterTxSystem) StateSummary() (txsystem.StateSummary, 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