core/vm, params: implement EXTCODEHASH opcode (#17202)

* core/vm, params: implement EXTCODEHASH opcode

* core, params: tiny fixes and polish

* core: add function description
This commit is contained in:
gary rong
2018-07-24 23:06:40 +08:00
committed by Péter Szilágyi
parent cab1cff11c
commit 2433349c80
6 changed files with 63 additions and 1 deletions

View File

@ -211,6 +211,8 @@ func (c *ChainConfig) GasTable(num *big.Int) GasTable {
return GasTableHomestead
}
switch {
case c.IsConstantinople(num):
return GasTableConstantinople
case c.IsEIP158(num):
return GasTableEIP158
case c.IsEIP150(num):