mock

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service is a mock blocks service.

func New

func New() *Service

New creates a new mock blocks service.

func (*Service) OnBlock

func (s *Service) OnBlock(ctx context.Context, signedBlock *spec.SignedBeaconBlock) error

OnBlock handles a block. This requires the context to hold an active transaction.

Jump to

Keyboard shortcuts

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