p2putils

package
v1.0.0-alpha.6.9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package p2putils contains useful helpers for eth2 fork-related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateForkDigest

func CreateForkDigest(
	genesisTime time.Time,
	genesisValidatorsRoot []byte,
) ([4]byte, error)

CreateForkDigest creates a fork digest from a genesis time and genesis validators root, utilizing the current slot to determine the active fork version in the node.

func Fork

func Fork(
	targetEpoch uint64,
) (*pb.Fork, error)

Fork given a target epoch, returns the active fork version during this epoch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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