mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
core/vm: opt using strconv.FormatInt instead of fmt.Sprintf
This commit is contained in:
parent
d14d4d2af0
commit
681bb58997
1 changed files with 2 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/tracing"
|
"github.com/ethereum/go-ethereum/core/tracing"
|
||||||
|
|
@ -63,7 +64,7 @@ func ValidEip(eipNum int) bool {
|
||||||
func ActivateableEips() []string {
|
func ActivateableEips() []string {
|
||||||
var nums []string
|
var nums []string
|
||||||
for k := range activators {
|
for k := range activators {
|
||||||
nums = append(nums, fmt.Sprintf("%d", k))
|
nums = append(nums, strconv.FormatInt(int64(k), 10))
|
||||||
}
|
}
|
||||||
sort.Strings(nums)
|
sort.Strings(nums)
|
||||||
return nums
|
return nums
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue