linear

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: GPL-3.0, LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block interface {
	ID() ids.ID
	ParentID() ids.ID
	Height() uint64
	Verify() error
	Accept() error
	Reject() error
	Status() Status
}

Block is the interface for linear blocks

type Consensus

type Consensus interface {
	Add(Block) error
	Finalized() bool
}

Consensus interface for linear consensus

type Status

type Status uint8

Status represents the status of a block

const (
	Unknown Status = iota
	Processing
	Rejected
	Accepted
)

Jump to

Keyboard shortcuts

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