vertex

package
v1.22.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 4 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL