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 (*FakeBeacon) BeaconAddr ¶
func (f *FakeBeacon) BeaconAddr() string
func (*FakeBeacon) Close ¶
func (f *FakeBeacon) Close() error
func (*FakeBeacon) LoadBlobsByHash ¶ added in v1.16.7
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
Click to show internal directories.
Click to hide internal directories.