Skip to content

Commit 77f5e8c

Browse files
committed
feat(protocol): Fixed the golangcilint errors
Signed-off-by: Akhil Repala <[email protected]>
1 parent 75e3b9c commit 77f5e8c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

internal/handshake/protocol/genesis/genesis.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ import (
66
"strings"
77
)
88

9+
// go:embed genesis-data.json
910
var raw []byte
1011

12+
var (
13+
Main Net
14+
Maindata string
15+
)
16+
1117
type netDisk struct {
1218
Version uint32 `json:"version"`
1319
Hash string `json:"hash"`
@@ -49,9 +55,6 @@ type Net struct {
4955
DataB64 string
5056
}
5157

52-
var Main Net
53-
var Maindata string
54-
5558
func mustParseBits(s string) uint32 {
5659
if strings.HasPrefix(s, "0x") || strings.HasPrefix(s, "0X") {
5760
v, err := strconv.ParseUint(s[2:], 16, 32)

0 commit comments

Comments
 (0)