Documentation
¶
Index ¶
- type CounterTxSystem
- func (m *CounterTxSystem) BeginBlock(nr uint64) error
- func (m *CounterTxSystem) Clone() *CounterTxSystem
- 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(tx *types.TransactionOrder) (*types.TransactionRecord, error)
- func (m *CounterTxSystem) IsFeelessMode() bool
- func (m *CounterTxSystem) IsPermissionedMode() bool
- func (m *CounterTxSystem) Revert()
- func (m *CounterTxSystem) SerializeState(w io.Writer) error
- func (m *CounterTxSystem) SetCommittedUC(committedUC *types.UnicityCertificate)
- func (m *CounterTxSystem) State() txsystem.StateReader
- func (m *CounterTxSystem) StateSize() (uint64, error)
- func (m *CounterTxSystem) StateSummary() (*txsystem.StateSummary, error)
- func (m *CounterTxSystem) TypeID() types.PartitionTypeID
- type ErrorState
- type MockState
- func (m MockState) CreateIndex(state.KeyExtractor[string]) (state.Index[string], error)
- func (m MockState) CreateUnitStateProof(id types.UnitID, logIndex int) (*types.UnitStateProof, error)
- func (m MockState) GetUnit(id types.UnitID, committed bool) (state.Unit, error)
- func (m MockState) GetUnits(unitTypeID *uint32, pdr *types.PartitionDescriptionRecord) ([]types.UnitID, error)
- func (m MockState) Serialize(writer io.Writer, committed bool, executedTransactions map[string]uint64) error
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
FixedState txsystem.StateReader
ErrorState *ErrorState
FeelessMode bool
ExecuteError error
// fee charged for each tx
Fee uint64
// contains filtered or unexported fields
}
func (*CounterTxSystem) BeginBlock ¶
func (m *CounterTxSystem) BeginBlock(nr uint64) error
func (*CounterTxSystem) Clone ¶
func (m *CounterTxSystem) Clone() *CounterTxSystem
Returns a copy of the txSystem to be used for creating blocks without affecting the original
func (*CounterTxSystem) Commit ¶
func (m *CounterTxSystem) Commit(uc *types.UnicityCertificate) error
func (*CounterTxSystem) CommittedUC ¶
func (m *CounterTxSystem) CommittedUC() *types.UnicityCertificate
func (*CounterTxSystem) EndBlock ¶
func (m *CounterTxSystem) EndBlock() (*txsystem.StateSummary, error)
func (*CounterTxSystem) Execute ¶
func (m *CounterTxSystem) Execute(tx *types.TransactionOrder) (*types.TransactionRecord, error)
func (*CounterTxSystem) IsFeelessMode ¶
func (m *CounterTxSystem) IsFeelessMode() bool
func (*CounterTxSystem) IsPermissionedMode ¶
func (m *CounterTxSystem) IsPermissionedMode() bool
func (*CounterTxSystem) Revert ¶
func (m *CounterTxSystem) Revert()
func (*CounterTxSystem) SerializeState ¶
func (m *CounterTxSystem) SerializeState(w io.Writer) error
func (*CounterTxSystem) SetCommittedUC ¶
func (m *CounterTxSystem) SetCommittedUC(committedUC *types.UnicityCertificate)
func (*CounterTxSystem) State ¶
func (m *CounterTxSystem) State() txsystem.StateReader
func (*CounterTxSystem) StateSize ¶
func (m *CounterTxSystem) StateSize() (uint64, error)
func (*CounterTxSystem) StateSummary ¶
func (m *CounterTxSystem) StateSummary() (*txsystem.StateSummary, error)
func (*CounterTxSystem) TypeID ¶
func (m *CounterTxSystem) TypeID() types.PartitionTypeID
type ErrorState ¶
type ErrorState struct {
txsystem.StateReader
Err error
}
Click to show internal directories.
Click to hide internal directories.