invariants

package
v0.0.0-...-3a6153e Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckState

func CheckState(state *BeaconState) error

func PrepareGenesisState

func PrepareGenesisState(validatorCount uint32) *BeaconState

func PreprocessBlock

func PreprocessBlock(pre *BeaconState, block *BeaconBlock) error

func RandomlyValid

func RandomlyValid(valid []byte, random []byte, chance float32)

make a random byte string valid, but randomly mutate 1 bit, based on given mutation chance. chance = 0 results in never valid. chance = 1 results in always valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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