mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
tiny
This commit is contained in:
parent
f87c41c01d
commit
560374811c
1 changed files with 1 additions and 2 deletions
|
|
@ -107,8 +107,7 @@ func (c *ChainConfig) LoadForks(file []byte) error {
|
||||||
name := key[:len(key)-len("_FORK_VERSION")]
|
name := key[:len(key)-len("_FORK_VERSION")]
|
||||||
switch version := value.(type) {
|
switch version := value.(type) {
|
||||||
case int:
|
case int:
|
||||||
versions[name] = make([]byte, 4)
|
versions[name] = big.NewInt(int64(version)).FillBytes(make([]byte, 4))
|
||||||
big.NewInt(int64(version)).FillBytes(versions[name])
|
|
||||||
case string:
|
case string:
|
||||||
v, err := hexutil.Decode(version)
|
v, err := hexutil.Decode(version)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue