Skip to content

Commit

Permalink
Slightly rework PR #10512
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed May 31, 2024
1 parent ee6280e commit e3b3417
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cl/clparams/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package clparams

import (
"crypto/rand"
"encoding/binary"
"fmt"
"math"
"math/big"
Expand All @@ -24,9 +23,10 @@ import (
"path"
"time"

"gopkg.in/yaml.v2"

"github.com/ledgerwatch/erigon-lib/chain/networkname"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"gopkg.in/yaml.v2"

"github.com/ledgerwatch/erigon/cl/utils"
)
Expand Down Expand Up @@ -320,9 +320,7 @@ func (b ConfigByte) MarshalJSON() ([]byte, error) {
type ConfigForkVersion uint32

func (v ConfigForkVersion) MarshalJSON() ([]byte, error) {
tmp := make([]byte, 4)
binary.BigEndian.PutUint32(tmp, uint32(v))
return []byte(fmt.Sprintf("\"0x%x\"", tmp)), nil
return []byte(fmt.Sprintf("\"0x%08x\"", v)), nil
}

// BeaconChainConfig contains constant configs for node to participate in beacon chain.
Expand Down

0 comments on commit e3b3417

Please sign in to comment.