GasTable returns the gas table corresponding to the current phase (homestead or homestead reprice). The returned GasTable's fields shouldn't, under any circumstances, be changed.
(num *big.Int)
| 378 | // |
| 379 | // The returned GasTable's fields shouldn't, under any circumstances, be changed. |
| 380 | func (c *ChainConfig) GasTable(num *big.Int) GasTable { |
| 381 | // add this GasTable, so that in testcase run mode,we can reuse vm tests in https://github.com/ethereum/tests |
| 382 | if IsTestcase() { |
| 383 | return GasTableHomestead |
| 384 | } |
| 385 | return GasTableCep1 |
| 386 | } |
| 387 | |
| 388 | // ConfigCompatError is raised if the locally-stored blockchain is initialised with a |
| 389 | // ChainConfig that would alter the past. |