warptest

package
v1.99.21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: GPL-3.0, LGPL-3.0, LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

warptest exposes common functionality for testing the warp package.

warptest exposes common functionality for testing the warp package.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type BlockClient

type BlockClient func(ctx context.Context, blockID ids.ID) (chain.Block, error)
var EmptyBlockClient BlockClient = MakeBlockClient()

EmptyBlockClient returns an error if a block is requested

func MakeBlockClient

func MakeBlockClient(blkIDs ...ids.ID) BlockClient

MakeBlockClient returns a new BlockClient that returns the provided blocks. If a block is requested that isn't part of the provided blocks, an error is returned.

func (BlockClient) GetAcceptedBlock

func (f BlockClient) GetAcceptedBlock(ctx context.Context, blockID ids.ID) (chain.Block, error)

type NoOpValidatorReader

type NoOpValidatorReader struct{}

func (NoOpValidatorReader) GetValidatorAndUptime

Jump to

Keyboard shortcuts

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