mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
Increase 10x the gas price for Callisto
This commit is contained in:
parent
38af7d7d26
commit
e200135b36
2 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue