Increase 10x the gas price for Callisto

This commit is contained in:
Yohan Graterol 2017-12-02 20:48:21 -05:00
parent 38af7d7d26
commit e200135b36
2 changed files with 16 additions and 0 deletions

View file

@ -200,6 +200,7 @@ func (c *ChainConfig) IsCallisto(num *big.Int) bool {
// GasTable returns the gas table corresponding to the current phase (homestead or homestead reprice). // 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. // The returned GasTable's fields shouldn't, under any circumstances, be changed.
// Callisto has a 10x more cost in gas
func (c *ChainConfig) GasTable(num *big.Int) GasTable { func (c *ChainConfig) GasTable(num *big.Int) GasTable {
if num == nil { if num == nil {
return GasTableHomestead return GasTableHomestead
@ -209,6 +210,8 @@ func (c *ChainConfig) GasTable(num *big.Int) GasTable {
return GasTableEIP158 return GasTableEIP158
case c.IsEIP150(num): case c.IsEIP150(num):
return GasTableEIP150 return GasTableEIP150
case c.IsCallisto(num):
return GasTableCallisto
default: default:
return GasTableHomestead return GasTableHomestead
} }

View file

@ -72,4 +72,17 @@ var (
CreateBySuicide: 25000, CreateBySuicide: 25000,
} }
GasTableCallisto = GasTable{
ExtcodeSize: 7000,
ExtcodeCopy: 7000,
Balance: 4000,
SLoad: 2000,
Calls: 7000,
Suicide: 50000,
ExpByte: 100,
CreateBySuicide: 250000,
}
) )