fakebeacon

package
v1.16.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBeacon

type FakeBeacon struct {
	// contains filtered or unexported fields
}

FakeBeacon presents a beacon-node in testing, without leading any chain-building. This merely serves a fake beacon API, and holds on to blocks, to complement the actual block-building to happen in testing (e.g. through the fake consensus geth module).

func NewBeacon

func NewBeacon(log log.Logger, blobStore *blobstore.Store, genesisTime uint64, blockTime uint64) *FakeBeacon

func (*FakeBeacon) BeaconAddr

func (f *FakeBeacon) BeaconAddr() string

func (*FakeBeacon) Close

func (f *FakeBeacon) Close() error

func (*FakeBeacon) LoadBlobsByHash added in v1.16.7

func (f *FakeBeacon) LoadBlobsByHash(slot uint64, hashes []common.Hash) ([]*eth.Blob, error)

LoadBlobsByHashreturns a slice of blobs in the given slot, corresponding to the supplied versioned hashes. If the provided hashes is empty, all blobs in the store at the supplied timestamp are returned. Blobs are ordered by their index in the block.

func (*FakeBeacon) Start

func (f *FakeBeacon) Start(addr string) error

func (*FakeBeacon) StoreBlobsBundle

func (f *FakeBeacon) StoreBlobsBundle(slot uint64, bundle *engine.BlobsBundle) error

Jump to

Keyboard shortcuts

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