From e200135b366cb74ad58013dbfacaee482e035eeb Mon Sep 17 00:00:00 2001 From: Yohan Graterol Date: Sat, 2 Dec 2017 20:48:21 -0500 Subject: [PATCH] Increase 10x the gas price for Callisto --- params/config.go | 3 +++ params/gas_table.go | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/params/config.go b/params/config.go index 7f960272ad..82210b6975 100644 --- a/params/config.go +++ b/params/config.go @@ -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). // // 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 { if num == nil { return GasTableHomestead @@ -209,6 +210,8 @@ func (c *ChainConfig) GasTable(num *big.Int) GasTable { return GasTableEIP158 case c.IsEIP150(num): return GasTableEIP150 + case c.IsCallisto(num): + return GasTableCallisto default: return GasTableHomestead } diff --git a/params/gas_table.go b/params/gas_table.go index 4969382b1b..4231b22eb8 100644 --- a/params/gas_table.go +++ b/params/gas_table.go @@ -72,4 +72,17 @@ var ( CreateBySuicide: 25000, } + + GasTableCallisto = GasTable{ + ExtcodeSize: 7000, + ExtcodeCopy: 7000, + Balance: 4000, + SLoad: 2000, + Calls: 7000, + Suicide: 50000, + ExpByte: 100, + + CreateBySuicide: 250000, + } + )