consensustest

package
v1.13.21 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PChainID   = constants.PlatformChainID
	XChainID   = ids.GenerateTestID()
	CChainID   = ids.GenerateTestID()
	LUXAssetID = ids.GenerateTestID()
)
View Source
var (
	ErrInvalidStateTransition = errors.New("invalid state transition")
)

Functions

func ConsensusContext

func ConsensusContext(ctx *consensus.Context) *consensus.Context

func Context

func Context(tb testing.TB, chainID ids.ID) *consensus.Context

Types

type Decidable added in v0.15.6

type Decidable struct {
	IDV     ids.ID
	AcceptV error
	RejectV error
	Status  Status
}

func (*Decidable) Accept added in v0.15.6

func (d *Decidable) Accept(context.Context) error

func (*Decidable) ID added in v0.15.6

func (d *Decidable) ID() ids.ID

func (*Decidable) Reject added in v0.15.6

func (d *Decidable) Reject(context.Context) error

type Status added in v0.15.6

type Status int
const (
	Undecided Status = iota
	Accepted
	Rejected
)

Undecided means the operation hasn't been decided yet Accepted means the operation was accepted Rejected means the operation will never be accepted

func (Status) String added in v0.15.6

func (s Status) String() string

Jump to

Keyboard shortcuts

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