Rules ensures c's ChainID is not nil.
(num *big.Int)
| 411 | |
| 412 | // Rules ensures c's ChainID is not nil. |
| 413 | func (c *ChainConfig) Rules(num *big.Int) Rules { |
| 414 | chainID := c.ChainID |
| 415 | if chainID == nil { |
| 416 | chainID = new(big.Int) |
| 417 | } |
| 418 | return Rules{ChainID: new(big.Int).Set(chainID), IsCpchain: c.IsCpchain()} |
| 419 | } |