MCPcopy Create free account
hub / github.com/CPChain/chain / IsCpchain

Method IsCpchain

configs/general.go:369–375  ·  view source on GitHub ↗

IsCpchain returns if it is CpchainDawn era.

()

Source from the content-addressed store, hash-verified

367
368// IsCpchain returns if it is CpchainDawn era.
369func (c *ChainConfig) IsCpchain() bool {
370 if c.ChainID == nil {
371 return false
372 }
373
374 return c.ChainID.Uint64() == MainnetChainId
375}
376
377// GasTable returns the gas table corresponding to the current phase (homestead or homestead reprice).
378//

Callers 4

RulesMethod · 0.95
TestIsCpchainTrueFunction · 0.95
TestIsCpchainFalseFunction · 0.95
TestIsCpchainFalse1Function · 0.95

Calls 1

Uint64Method · 0.80

Tested by 3

TestIsCpchainTrueFunction · 0.76
TestIsCpchainFalseFunction · 0.76
TestIsCpchainFalse1Function · 0.76