aboutsummaryrefslogtreecommitdiffstats
path: root/params/gas_table.go
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-06-05 18:31:34 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-06-05 18:31:34 +0800
commitcbfb40b0aab093e1b612f3b16834894b2cc67882 (patch)
tree19cbd1397343459aabf211857fcc5df26f4cee6c /params/gas_table.go
parent4cf2b4110e9942bdcba1b9b1d82b3ca8ff552f64 (diff)
downloadgo-tangerine-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar
go-tangerine-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.gz
go-tangerine-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.bz2
go-tangerine-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.lz
go-tangerine-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.xz
go-tangerine-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.zst
go-tangerine-cbfb40b0aab093e1b612f3b16834894b2cc67882.zip
params: fix golint warnings (#16853)
params: fix golint warnings
Diffstat (limited to 'params/gas_table.go')
-rw-r--r--params/gas_table.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/params/gas_table.go b/params/gas_table.go
index 4969382b1..d33bebbe5 100644
--- a/params/gas_table.go
+++ b/params/gas_table.go
@@ -16,6 +16,7 @@
package params
+// GasTable organizes gas prices for different ethereum phases.
type GasTable struct {
ExtcodeSize uint64
ExtcodeCopy uint64
@@ -34,6 +35,7 @@ type GasTable struct {
CreateBySuicide uint64
}
+// Variables containing gas prices for different ethereum phases.
var (
// GasTableHomestead contain the gas prices for
// the homestead phase.
@@ -47,8 +49,8 @@ var (
ExpByte: 10,
}
- // GasTableHomestead contain the gas re-prices for
- // the homestead phase.
+ // GasTableEIP150 contain the gas re-prices for
+ // the EIP150 phase.
GasTableEIP150 = GasTable{
ExtcodeSize: 700,
ExtcodeCopy: 700,
@@ -60,7 +62,8 @@ var (
CreateBySuicide: 25000,
}
-
+ // GasTableEIP158 contain the gas re-prices for
+ // the EIP15* phase.
GasTableEIP158 = GasTable{
ExtcodeSize: 700,
ExtcodeCopy: 700,