Documentation ¶
Index ¶
- type CheckpointStorage
- func (checkpoint *CheckpointStorage) CloseCheckpointStorage() bool
- func (checkpoint *CheckpointStorage) DeleteCheckpoint(machineHash common.Hash) bool
- func (checkpoint *CheckpointStorage) DeleteData(key []byte) bool
- func (checkpoint *CheckpointStorage) DeleteValue(hashValue common.Hash) bool
- func (checkpoint *CheckpointStorage) GetData(key []byte) []byte
- func (checkpoint *CheckpointStorage) GetInitialMachine() (machine.Machine, error)
- func (checkpoint *CheckpointStorage) GetMachine(machineHash common.Hash) (machine.Machine, error)
- func (checkpoint *CheckpointStorage) GetValue(hashValue common.Hash) value.Value
- func (checkpoint *CheckpointStorage) SaveData(key []byte, data []byte) bool
- func (checkpoint *CheckpointStorage) SaveValue(val value.Value) bool
- type Machine
- func (m *Machine) Checkpoint(storage machine.CheckpointStorage) bool
- func (m *Machine) Clone() machine.Machine
- func (m *Machine) CurrentStatus() machine.Status
- func (m *Machine) ExecuteAssertion(maxSteps uint64, timeBounds *protocol.TimeBounds, inbox value.TupleValue, ...) (*protocol.ExecutionAssertion, uint64)
- func (m *Machine) Hash() (ret common.Hash)
- func (m *Machine) IsBlocked(currentTime *common.TimeBlocks, newMessages bool) machine.BlockReason
- func (m *Machine) MarshalForProof() ([]byte, error)
- func (m *Machine) PrintState()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckpointStorage ¶ added in v0.4.0
type CheckpointStorage struct {
// contains filtered or unexported fields
}
func NewCheckpoint ¶ added in v0.4.0
func NewCheckpoint(dbPath string, contractPath string) (*CheckpointStorage, error)
func (*CheckpointStorage) CloseCheckpointStorage ¶ added in v0.4.0
func (checkpoint *CheckpointStorage) CloseCheckpointStorage() bool
func (*CheckpointStorage) DeleteCheckpoint ¶ added in v0.4.0
func (checkpoint *CheckpointStorage) DeleteCheckpoint(machineHash common.Hash) bool
func (*CheckpointStorage) DeleteData ¶ added in v0.4.0
func (checkpoint *CheckpointStorage) DeleteData(key []byte) bool
func (*CheckpointStorage) DeleteValue ¶ added in v0.4.0
func (checkpoint *CheckpointStorage) DeleteValue(hashValue common.Hash) bool
func (*CheckpointStorage) GetData ¶ added in v0.4.0
func (checkpoint *CheckpointStorage) GetData(key []byte) []byte
func (*CheckpointStorage) GetInitialMachine ¶ added in v0.4.0
func (checkpoint *CheckpointStorage) GetInitialMachine() (machine.Machine, error)
func (*CheckpointStorage) GetMachine ¶ added in v0.4.3
func (*CheckpointStorage) GetValue ¶ added in v0.4.0
func (checkpoint *CheckpointStorage) GetValue(hashValue common.Hash) value.Value
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
func (*Machine) Checkpoint ¶ added in v0.4.0
func (m *Machine) Checkpoint(storage machine.CheckpointStorage) bool
func (*Machine) CurrentStatus ¶
func (*Machine) ExecuteAssertion ¶
func (m *Machine) ExecuteAssertion( maxSteps uint64, timeBounds *protocol.TimeBounds, inbox value.TupleValue, maxWallTime time.Duration, ) (*protocol.ExecutionAssertion, uint64)
func (*Machine) IsBlocked ¶ added in v0.4.0
func (m *Machine) IsBlocked(currentTime *common.TimeBlocks, newMessages bool) machine.BlockReason
func (*Machine) MarshalForProof ¶
func (*Machine) PrintState ¶ added in v0.4.0
func (m *Machine) PrintState()
Click to show internal directories.
Click to hide internal directories.