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 ChainTypeList = []rawdb.ChainType{ ChainTypeMAP, ChainTypeETH, ChainTypeETHTest, ChainTypeETHDev, }
View Source
var (
ErrNotSupportChain = errors.New("not supported chain")
)
Functions ¶
func ChainType2LondonBlock ¶ added in v0.3.1
func IsSupportedChain ¶
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)
Click to show internal directories.
Click to hide internal directories.