chains

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: GPL-3.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainTypeMAP     rawdb.ChainType = rawdb.ChainType(params2.MainNetChainID)
	ChainTypeETH     rawdb.ChainType = 1
	ChainTypeETHTest rawdb.ChainType = 3 // start 800
	ChainTypeETHDev  rawdb.ChainType = 10
)
View Source
const (
	ChainGroupMAP = 1000
	ChainGroupETH = 1001
)

Variables

View Source
var (
	ErrNotSupportChain = errors.New("not supported chain")
)

Functions

func ChainType2LondonBlock added in v0.3.1

func ChainType2LondonBlock(chain rawdb.ChainType) (*big.Int, error)

func IsSupportedChain

func IsSupportedChain(chain rawdb.ChainType) bool

Types

type ChainGroup added in v0.3.1

type ChainGroup uint64

func ChainType2ChainGroup added in v0.3.1

func ChainType2ChainGroup(chain rawdb.ChainType) (ChainGroup, error)

Directories

Path Synopsis
headers
validates

Jump to

Keyboard shortcuts

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