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) 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 {
// contains filtered or unexported fields
}
func LoadChain ¶
func LoadChain(blocks []*cltypes.SignedBeaconBlock, db kv.RwDB) *MockBlockReader
func NewMockBlockReader ¶
func NewMockBlockReader() *MockBlockReader
func (*MockBlockReader) FrozenSlots ¶
func (m *MockBlockReader) FrozenSlots() uint64
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.