Documentation
¶
Index ¶
- type CounterTxSystem
- func (m *CounterTxSystem) BeginBlock(nr uint64) error
- func (m *CounterTxSystem) Commit() error
- func (m *CounterTxSystem) EndBlock() (txsystem.State, error)
- func (m *CounterTxSystem) Execute(_ *types.TransactionOrder) (*types.ServerMetadata, error)
- func (m *CounterTxSystem) Revert()
- func (m *CounterTxSystem) StateSummary() (txsystem.State, error)
- type Summary
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 (m *CounterTxSystem) Commit() error
func (*CounterTxSystem) Execute ¶
func (m *CounterTxSystem) Execute(_ *types.TransactionOrder) (*types.ServerMetadata, error)
func (*CounterTxSystem) Revert ¶
func (m *CounterTxSystem) Revert()
func (*CounterTxSystem) StateSummary ¶ added in v0.2.0
func (m *CounterTxSystem) StateSummary() (txsystem.State, error)
Click to show internal directories.
Click to hide internal directories.