snowtest

package
v1.11.9-status-removal.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: BSD-3-Clause Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func ConsensusContext

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

func Context

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

Types

type Decidable added in v1.11.11

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

func (*Decidable) Accept added in v1.11.11

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

func (*Decidable) ID added in v1.11.11

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

func (*Decidable) Reject added in v1.11.11

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

type Status added in v1.11.11

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

Jump to

Keyboard shortcuts

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