types

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: GPL-3.0 Imports: 5 Imported by: 2

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