fakebeacon

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 17 Imported by: 0

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, blobsDir string, genesisTime uint64, blockTime uint64) *FakeBeacon

func (*FakeBeacon) BeaconAddr

func (f *FakeBeacon) BeaconAddr() string

func (*FakeBeacon) Close

func (f *FakeBeacon) Close() error

func (*FakeBeacon) LoadBlobsBundle

func (f *FakeBeacon) LoadBlobsBundle(slot uint64) (*engine.BlobsBundleV1, error)

func (*FakeBeacon) Start

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

func (*FakeBeacon) StoreBlobsBundle

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

Jump to

Keyboard shortcuts

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