IsCpchain returns if it is CpchainDawn era.
()
| 367 | |
| 368 | // IsCpchain returns if it is CpchainDawn era. |
| 369 | func (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 | // |