Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeaconEntriesForBlock ¶
func BeaconEntriesForBlock(ctx context.Context, beacon RandomBeacon, round abi.ChainEpoch, prev types.BeaconEntry) ([]types.BeaconEntry, error)
func ValidateBlockValues ¶
func ValidateBlockValues(b RandomBeacon, h *types.BlockHeader, prevEntry types.BeaconEntry) error
Types ¶
type RandomBeacon ¶
type RandomBeacon interface { Entry(context.Context, uint64) <-chan Response VerifyEntry(types.BeaconEntry, types.BeaconEntry) error MaxBeaconRoundForEpoch(abi.ChainEpoch, types.BeaconEntry) uint64 }
func NewMockBeacon ¶
func NewMockBeacon(interval time.Duration) RandomBeacon
type Response ¶
type Response struct { Entry types.BeaconEntry Err error }
Click to show internal directories.
Click to hide internal directories.