testing

package
v1.0.0-alpha.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testing includes useful helpers for slasher-related unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignedBlockHeader

func SignedBlockHeader(slot uint64, proposerIdx uint64) (*ethpb.SignedBeaconBlockHeader, error)

SignedBlockHeader given slot, proposer index this function generates signed block header. with random bytes as its signature.

func StartSlot

func StartSlot(epoch uint64) uint64

StartSlot returns the first slot of a given epoch.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL