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

Method GasTable

configs/general.go:380–386  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

378//
379// The returned GasTable's fields shouldn't, under any circumstances, be changed.
380func (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.

Callers 2

TestGasTableFunction · 0.95
NewInterpreterFunction · 0.80

Calls 1

IsTestcaseFunction · 0.85

Tested by 1

TestGasTableFunction · 0.76