Documentation ¶
Index ¶
- func FillDBWithBlocks(ctx context.Context, t *testing.T, beaconDB db.Database) (*ethpbalpha.SignedBeaconBlock, []*ethpbalpha.BeaconBlockContainer)
- type MockBlocker
- type MockExecutionChainInfoFetcher
- func (*MockExecutionChainInfoFetcher) ExecutionClientConnected() bool
- func (m *MockExecutionChainInfoFetcher) ExecutionClientConnectionErr() error
- func (m *MockExecutionChainInfoFetcher) ExecutionClientEndpoint() string
- func (*MockExecutionChainInfoFetcher) GenesisExecutionChainInfo() (uint64, *big.Int)
- type MockGenesisTimeFetcher
- type MockStater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillDBWithBlocks ¶
func FillDBWithBlocks(ctx context.Context, t *testing.T, beaconDB db.Database) (*ethpbalpha.SignedBeaconBlock, []*ethpbalpha.BeaconBlockContainer)
Types ¶
type MockBlocker ¶
type MockBlocker struct { BlockToReturn interfaces.ReadOnlySignedBeaconBlock ErrorToReturn error SlotBlockMap map[primitives.Slot]interfaces.ReadOnlySignedBeaconBlock RootBlockMap map[[32]byte]interfaces.ReadOnlySignedBeaconBlock }
MockBlocker is a fake implementation of lookup.Blocker.
func (*MockBlocker) Blobs ¶
func (m *MockBlocker) Blobs(_ context.Context, _ string, _ []uint64) ([]*blocks.VerifiedROBlob, *core.RpcError)
Blobs --
func (*MockBlocker) Block ¶
func (m *MockBlocker) Block(_ context.Context, b []byte) (interfaces.ReadOnlySignedBeaconBlock, error)
Block --
type MockExecutionChainInfoFetcher ¶
MockExecutionChainInfoFetcher is a fake implementation of the powchain.ChainInfoFetcher
func (*MockExecutionChainInfoFetcher) ExecutionClientConnected ¶
func (*MockExecutionChainInfoFetcher) ExecutionClientConnected() bool
func (*MockExecutionChainInfoFetcher) ExecutionClientConnectionErr ¶
func (m *MockExecutionChainInfoFetcher) ExecutionClientConnectionErr() error
func (*MockExecutionChainInfoFetcher) ExecutionClientEndpoint ¶
func (m *MockExecutionChainInfoFetcher) ExecutionClientEndpoint() string
func (*MockExecutionChainInfoFetcher) GenesisExecutionChainInfo ¶
func (*MockExecutionChainInfoFetcher) GenesisExecutionChainInfo() (uint64, *big.Int)
type MockGenesisTimeFetcher ¶
MockGenesisTimeFetcher is a fake implementation of the blockchain.TimeFetcher
func (*MockGenesisTimeFetcher) CurrentSlot ¶
func (m *MockGenesisTimeFetcher) CurrentSlot() primitives.Slot
func (*MockGenesisTimeFetcher) GenesisTime ¶
func (m *MockGenesisTimeFetcher) GenesisTime() time.Time
type MockStater ¶
type MockStater struct { BeaconState state.BeaconState StateProviderFunc func(ctx context.Context, stateId []byte) (state.BeaconState, error) BeaconStateRoot []byte StatesBySlot map[primitives.Slot]state.BeaconState StatesByRoot map[[32]byte]state.BeaconState }
MockStater is a fake implementation of lookup.Stater.
func (*MockStater) State ¶
func (m *MockStater) State(ctx context.Context, id []byte) (state.BeaconState, error)
State --
func (*MockStater) StateBySlot ¶
func (m *MockStater) StateBySlot(_ context.Context, s primitives.Slot) (state.BeaconState, error)
StateBySlot --
Click to show internal directories.
Click to hide internal directories.