Jelajahi Sumber

params: rename EIP150 gas table (#15167)

gary rong 8 tahun lalu
induk
melakukan
b9ff44bd64
2 mengubah file dengan 2 tambahan dan 4 penghapusan
  1. 1 1
      params/config.go
  2. 1 3
      params/gas_table.go

+ 1 - 1
params/config.go

@@ -197,7 +197,7 @@ func (c *ChainConfig) GasTable(num *big.Int) GasTable {
 	case c.IsEIP158(num):
 		return GasTableEIP158
 	case c.IsEIP150(num):
-		return GasTableHomesteadGasRepriceFork
+		return GasTableEIP150
 	default:
 		return GasTableHomestead
 	}

+ 1 - 3
params/gas_table.go

@@ -49,9 +49,7 @@ var (
 
 	// GasTableHomestead contain the gas re-prices for
 	// the homestead phase.
-	//
-	// TODO rename to GasTableEIP150
-	GasTableHomesteadGasRepriceFork = GasTable{
+	GasTableEIP150 = GasTable{
 		ExtcodeSize: 700,
 		ExtcodeCopy: 700,
 		Balance:     400,