types

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderInfo

type HeaderInfo struct {
	Number *big.Int
	Hash   common.Hash
	Time   uint64
}

HeaderInfo specifies the block header information in the ETH 1.0 chain.

func HeaderToHeaderInfo

func HeaderToHeaderInfo(hdr *gethTypes.Header) (*HeaderInfo, error)

HeaderToHeaderInfo converts an eth1 header to a header metadata type.

func (*HeaderInfo) Copy

func (h *HeaderInfo) Copy() *HeaderInfo

Copy sends out a copy of the current header info.

Jump to

Keyboard shortcuts

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