testing

package
v4.0.0-...-ae7b6de Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BeaconDB db.HeadAccessDatabase
}

Config defines a config struct for dependencies into the service.

type MockBuilderService

type MockBuilderService struct {
	HasConfigured         bool
	Payload               *v1.ExecutionPayload
	PayloadCapella        *v1.ExecutionPayloadCapella
	PayloadDeneb          *v1.ExecutionPayloadDeneb
	BlobBundle            *v1.BlobsBundle
	ErrSubmitBlindedBlock error
	Bid                   *ethpb.SignedBuilderBid
	BidCapella            *ethpb.SignedBuilderBidCapella
	BidDeneb              *ethpb.SignedBuilderBidDeneb
	RegistrationCache     *cache.RegistrationCache
	ErrGetHeader          error
	ErrRegisterValidator  error
	Cfg                   *Config
}

MockBuilderService to mock builder.

func (*MockBuilderService) Configured

func (s *MockBuilderService) Configured() bool

Configured for mocking.

func (*MockBuilderService) GetHeader

func (s *MockBuilderService) GetHeader(_ context.Context, slot primitives.Slot, _ [32]byte, _ [48]byte) (builder.SignedBid, error)

GetHeader for mocking.

func (*MockBuilderService) RegisterValidator

RegisterValidator for mocking.

func (*MockBuilderService) RegistrationByValidatorID

RegistrationByValidatorID returns either the values from the cache or db.

func (*MockBuilderService) SubmitBlindedBlock

SubmitBlindedBlock for mocking.

Jump to

Keyboard shortcuts

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