Documentation
¶
Index ¶
- type CounterTxSystem
- func (m *CounterTxSystem) BeginBlock(nr uint64) error
- func (m *CounterTxSystem) Commit(uc *types.UnicityCertificate) error
- func (m *CounterTxSystem) CommittedUC() *types.UnicityCertificate
- func (m *CounterTxSystem) EndBlock() (txsystem.StateSummary, error)
- func (m *CounterTxSystem) Execute(_ *types.TransactionOrder) (*types.ServerMetadata, error)
- func (m *CounterTxSystem) Revert()
- func (m *CounterTxSystem) SerializeState(writer io.Writer, committed bool) error
- func (m *CounterTxSystem) State() *state.State
- func (m *CounterTxSystem) StateSummary() (txsystem.StateSummary, 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(uc *types.UnicityCertificate) error
func (*CounterTxSystem) CommittedUC ¶ added in v0.3.0
func (m *CounterTxSystem) CommittedUC() *types.UnicityCertificate
func (*CounterTxSystem) EndBlock ¶
func (m *CounterTxSystem) EndBlock() (txsystem.StateSummary, error)
func (*CounterTxSystem) Execute ¶
func (m *CounterTxSystem) Execute(_ *types.TransactionOrder) (*types.ServerMetadata, error)
func (*CounterTxSystem) Revert ¶
func (m *CounterTxSystem) Revert()
func (*CounterTxSystem) SerializeState ¶ added in v0.3.0
func (m *CounterTxSystem) SerializeState(writer io.Writer, committed bool) error
func (*CounterTxSystem) State ¶
func (m *CounterTxSystem) State() *state.State
func (*CounterTxSystem) StateSummary ¶ added in v0.2.0
func (m *CounterTxSystem) StateSummary() (txsystem.StateSummary, error)
Click to show internal directories.
Click to hide internal directories.