We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ebfb2 commit 0c852eeCopy full SHA for 0c852ee
cl/clparams/config.go
@@ -15,6 +15,7 @@ package clparams
15
16
import (
17
"crypto/rand"
18
+ "encoding/binary"
19
"fmt"
20
"math"
21
"math/big"
@@ -319,7 +320,9 @@ func (b ConfigByte) MarshalJSON() ([]byte, error) {
319
320
type ConfigForkVersion uint32
321
322
func (v ConfigForkVersion) MarshalJSON() ([]byte, error) {
- return []byte(fmt.Sprintf("\"0x%x\"", v)), nil
323
+ tmp := make([]byte, 4)
324
+ binary.BigEndian.PutUint32(tmp, uint32(v))
325
+ return []byte(fmt.Sprintf("\"0x%x\"", tmp)), nil
326
}
327
328
// BeaconChainConfig contains constant configs for node to participate in beacon chain.
0 commit comments