miniheader

package
v7.0.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiniHeader

type MiniHeader struct {
	Hash      common.Hash
	Parent    common.Hash
	Number    *big.Int
	Timestamp time.Time
	Logs      []types.Log
}

MiniHeader is a representation of a succinct Ethereum block headers

func (*MiniHeader) ID

func (m *MiniHeader) ID() []byte

ID returns the MiniHeader's ID HACK(fabio): This method is used when storing MiniHeaders in the DB Ideally this would live in the `meshdb` package but it adds the need to cast back-and-forth between two almost identical types so we keep it here for convenience sake.

Jump to

Keyboard shortcuts

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