Documentation ¶
Index ¶
- func GetBellatrixRandom() ([]*cltypes.SignedBeaconBlock, *state.CachingBeaconState, ...)
- func GetCapellaRandom() ([]*cltypes.SignedBeaconBlock, *state.CachingBeaconState, ...)
- func GetPhase0Random() ([]*cltypes.SignedBeaconBlock, *state.CachingBeaconState, ...)
- type MockBlockReader
- func (m *MockBlockReader) FrozenSlots() uint64
- func (m *MockBlockReader) ReadBlindedBlockBySlot(ctx context.Context, tx kv.Tx, slot uint64) (*cltypes.SignedBlindedBeaconBlock, error)
- func (m *MockBlockReader) ReadBlockByRoot(ctx context.Context, tx kv.Tx, blockRoot libcommon.Hash) (*cltypes.SignedBeaconBlock, error)
- func (m *MockBlockReader) ReadBlockBySlot(ctx context.Context, tx kv.Tx, slot uint64) (*cltypes.SignedBeaconBlock, error)
- func (m *MockBlockReader) ReadHeaderByRoot(ctx context.Context, tx kv.Tx, blockRoot libcommon.Hash) (*cltypes.SignedBeaconBlockHeader, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBellatrixRandom ¶
func GetBellatrixRandom() ([]*cltypes.SignedBeaconBlock, *state.CachingBeaconState, *state.CachingBeaconState)
func GetCapellaRandom ¶
func GetCapellaRandom() ([]*cltypes.SignedBeaconBlock, *state.CachingBeaconState, *state.CachingBeaconState)
func GetPhase0Random ¶
func GetPhase0Random() ([]*cltypes.SignedBeaconBlock, *state.CachingBeaconState, *state.CachingBeaconState)
Types ¶
type MockBlockReader ¶
type MockBlockReader struct {
U map[uint64]*cltypes.SignedBeaconBlock
}
func LoadChain ¶
func LoadChain(blocks []*cltypes.SignedBeaconBlock, s *state.CachingBeaconState, db kv.RwDB, t *testing.T) *MockBlockReader
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)
Click to show internal directories.
Click to hide internal directories.