Documentation
¶
Index ¶
- type BlockStore
- func (bs *BlockStore) BlocksAtHeight(height *common.TimeBlocks) []*common.BlockId
- func (bs *BlockStore) DeleteBlock(id *common.BlockId) error
- func (bs *BlockStore) GetBlock(id *common.BlockId) ([]byte, error)
- func (bs *BlockStore) IsBlockStoreEmpty() bool
- func (bs *BlockStore) MaxBlockStoreHeight() *common.TimeBlocks
- func (bs *BlockStore) MinBlockStoreHeight() *common.TimeBlocks
- func (bs *BlockStore) PutBlock(id *common.BlockId, data []byte) error
- 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) GetBlockStore() machine.BlockStore
- 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) GetNodeStore() machine.NodeStore
- 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()
- type NodeStore
- func (ns *NodeStore) Empty() bool
- func (ns *NodeStore) GetNode(height uint64, hash common.Hash) ([]byte, error)
- func (ns *NodeStore) GetNodeHash(height uint64) (common.Hash, error)
- func (ns *NodeStore) GetNodeHeight(hash common.Hash) (uint64, error)
- func (ns *NodeStore) MaxHeight() uint64
- func (ns *NodeStore) PutNode(height uint64, hash common.Hash, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStore ¶ added in v0.6.0
type BlockStore struct {
// contains filtered or unexported fields
}
func NewBlockStore ¶ added in v0.6.0
func NewBlockStore(c unsafe.Pointer) *BlockStore
func (*BlockStore) BlocksAtHeight ¶ added in v0.6.0
func (bs *BlockStore) BlocksAtHeight(height *common.TimeBlocks) []*common.BlockId
func (*BlockStore) DeleteBlock ¶ added in v0.6.0
func (bs *BlockStore) DeleteBlock(id *common.BlockId) error
func (*BlockStore) GetBlock ¶ added in v0.6.0
func (bs *BlockStore) GetBlock(id *common.BlockId) ([]byte, error)
func (*BlockStore) IsBlockStoreEmpty ¶ added in v0.6.0
func (bs *BlockStore) IsBlockStoreEmpty() bool
func (*BlockStore) MaxBlockStoreHeight ¶ added in v0.6.0
func (bs *BlockStore) MaxBlockStoreHeight() *common.TimeBlocks
func (*BlockStore) MinBlockStoreHeight ¶ added in v0.6.0
func (bs *BlockStore) MinBlockStoreHeight() *common.TimeBlocks
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) GetBlockStore ¶ added in v0.6.0
func (checkpoint *CheckpointStorage) GetBlockStore() machine.BlockStore
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) GetNodeStore ¶ added in v0.6.0
func (checkpoint *CheckpointStorage) GetNodeStore() machine.NodeStore
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()
type NodeStore ¶ added in v0.6.0
type NodeStore struct {
// contains filtered or unexported fields
}
func NewNodeStore ¶ added in v0.6.0
func (*NodeStore) GetNodeHash ¶ added in v0.6.0
func (*NodeStore) GetNodeHeight ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.