Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAGVM ¶
type DAGVM interface {
interfaces.VM
// PendingTxs returns transactions that are pending
PendingTxs(context.Context) []dag.Transaction
// ParseTx parses a transaction from bytes
ParseTx(context.Context, []byte) (dag.Transaction, error)
// GetTx gets a transaction by ID
GetTx(context.Context, ids.ID) (dag.Transaction, error)
}
DAGVM defines the interface for a DAG-based VM
type LinearizableVM ¶
type LinearizableVM interface {
DAGVM
// Linearize attempts to linearize the DAG
Linearize(context.Context, ids.ID, ids.ID) error
}
LinearizableVM is a VM that supports linearization
type LinearizableVMWithEngine ¶
type LinearizableVMWithEngine interface {
DAGVM
// GetEngine returns the DAG engine
GetEngine() dag.Engine
}
LinearizableVMWithEngine combines a DAGVM with an Engine
Click to show internal directories.
Click to hide internal directories.