tests

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type MockBlockReader

type MockBlockReader struct {
	U map[uint64]*cltypes.SignedBeaconBlock
}

func NewMockBlockReader

func NewMockBlockReader() *MockBlockReader

func (*MockBlockReader) FrozenSlots

func (m *MockBlockReader) FrozenSlots() uint64

func (*MockBlockReader) ReadBlindedBlockBySlot

func (m *MockBlockReader) ReadBlindedBlockBySlot(ctx context.Context, tx kv.Tx, slot uint64) (*cltypes.SignedBlindedBeaconBlock, error)

func (*MockBlockReader) ReadBlockByRoot

func (m *MockBlockReader) ReadBlockByRoot(ctx context.Context, tx kv.Tx, blockRoot libcommon.Hash) (*cltypes.SignedBeaconBlock, error)

func (*MockBlockReader) ReadBlockBySlot

func (m *MockBlockReader) ReadBlockBySlot(ctx context.Context, tx kv.Tx, slot uint64) (*cltypes.SignedBeaconBlock, error)

func (*MockBlockReader) ReadHeaderByRoot

func (m *MockBlockReader) ReadHeaderByRoot(ctx context.Context, tx kv.Tx, blockRoot libcommon.Hash) (*cltypes.SignedBeaconBlockHeader, error)

Jump to

Keyboard shortcuts

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