Skip to content

Commit 562235c

Browse files
authored
update sdk, version, Dockerfile (#307)
1 parent 0047c17 commit 562235c

File tree

14 files changed

+80
-81
lines changed

14 files changed

+80
-81
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21-alpine3.18 AS builder
1+
FROM golang:1.22-alpine3.18 AS builder
22

33
ARG go_proxy
44
ARG TARGETARCH

cmd/console/stat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313
"math/big"
1414
"os"
1515

16+
"github.com/AstaFrode/go-substrate-rpc-client/v4/types"
1617
cess "github.com/CESSProject/cess-go-sdk"
1718
"github.com/CESSProject/cess-go-sdk/chain"
1819
sutils "github.com/CESSProject/cess-go-sdk/utils"
1920
"github.com/CESSProject/cess-miner/configs"
2021
out "github.com/CESSProject/cess-miner/pkg/fout"
21-
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
2222
"github.com/jedib0t/go-pretty/v6/table"
2323
"github.com/spf13/cobra"
2424
)

configs/system.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ const (
2222
// Name is the name of the program
2323
Name = "miner"
2424
// version
25-
Version = "v0.7.18 premainnet"
25+
Version = "v0.8.0"
2626
// Description is the description of the program
2727
Description = "Storage miner implementation in CESS networks"
2828
// NameSpace is the cached namespace
2929
NameSpaces = Name
3030
)
3131

3232
// Chain version
33-
var ChainVersionStr = [3]string{"0", "7", "8"}
34-
var ChainVersionInt = [3]int{0, 7, 8}
33+
var ChainVersionStr = [3]string{"0", "7", "9"}
34+
var ChainVersionInt = [3]int{0, 7, 9}
3535

3636
var cp *x509.CertPool
3737

go.mod

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
module github.com/CESSProject/cess-miner
22

3-
go 1.21
3+
go 1.22
44

5-
toolchain go1.21.12
5+
toolchain go1.22.10
66

77
require (
8-
github.com/CESSProject/cess-go-sdk v0.6.4-0.20241212035336-417e552e9bca
8+
github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4
9+
github.com/CESSProject/cess-go-sdk v0.7.0
910
github.com/CESSProject/cess_pois v0.6.0
10-
github.com/centrifuge/go-substrate-rpc-client/v4 v4.2.1
1111
github.com/gin-contrib/cors v1.7.1
1212
github.com/gin-gonic/gin v1.9.1
1313
github.com/google/uuid v1.6.0
@@ -19,7 +19,7 @@ require (
1919
github.com/shirou/gopsutil v3.21.11+incompatible
2020
github.com/spf13/cobra v1.8.0
2121
github.com/spf13/viper v1.18.2
22-
github.com/stretchr/testify v1.9.0
22+
github.com/stretchr/testify v1.10.0
2323
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a
2424
go.uber.org/zap v1.27.0
2525
google.golang.org/grpc v1.65.0
@@ -29,8 +29,6 @@ require (
2929
require (
3030
github.com/BurntSushi/toml v0.3.1 // indirect
3131
github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect
32-
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
33-
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 // indirect
3432
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect
3533
github.com/bytedance/sonic v1.11.3 // indirect
3634
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
@@ -41,22 +39,22 @@ require (
4139
github.com/decred/base58 v1.0.4 // indirect
4240
github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect
4341
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
44-
github.com/ethereum/go-ethereum v1.10.20 // indirect
42+
github.com/ethereum/go-ethereum v1.14.12 // indirect
4543
github.com/fsnotify/fsnotify v1.7.0 // indirect
4644
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
4745
github.com/gin-contrib/sse v0.1.0 // indirect
48-
github.com/go-ole/go-ole v1.2.6 // indirect
49-
github.com/go-ping/ping v1.1.0 // indirect
46+
github.com/go-ole/go-ole v1.3.0 // indirect
47+
github.com/go-ping/ping v1.2.0 // indirect
5048
github.com/go-playground/locales v0.14.1 // indirect
5149
github.com/go-playground/universal-translator v0.18.1 // indirect
5250
github.com/go-playground/validator/v10 v10.19.0 // indirect
53-
github.com/go-stack/stack v1.8.1 // indirect
5451
github.com/goccy/go-json v0.10.2 // indirect
55-
github.com/golang/snappy v0.0.4 // indirect
52+
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
5653
github.com/gorilla/websocket v1.5.3 // indirect
5754
github.com/gtank/merlin v0.1.1 // indirect
5855
github.com/gtank/ristretto255 v0.1.2 // indirect
5956
github.com/hashicorp/hcl v1.0.0 // indirect
57+
github.com/holiman/uint256 v1.3.1 // indirect
6058
github.com/inconshreveable/mousetrap v1.1.0 // indirect
6159
github.com/ipfs/go-cid v0.4.1 // indirect
6260
github.com/json-iterator/go v1.1.12 // indirect
@@ -84,35 +82,33 @@ require (
8482
github.com/pixelbender/go-traceroute v0.0.0-20190414152342-e631ab553a80 // indirect
8583
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
8684
github.com/rivo/uniseg v0.2.0 // indirect
87-
github.com/rs/cors v1.8.2 // indirect
85+
github.com/rs/cors v1.11.1 // indirect
8886
github.com/sagikazarmark/locafero v0.4.0 // indirect
8987
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
90-
github.com/samber/lo v1.39.0 // indirect
9188
github.com/sourcegraph/conc v0.3.0 // indirect
9289
github.com/spaolacci/murmur3 v1.1.0 // indirect
9390
github.com/spf13/afero v1.11.0 // indirect
9491
github.com/spf13/cast v1.6.0 // indirect
9592
github.com/spf13/pflag v1.0.5 // indirect
9693
github.com/stretchr/objx v0.5.2 // indirect
9794
github.com/subosito/gotenv v1.6.0 // indirect
98-
github.com/tklauser/go-sysconf v0.3.5 // indirect
99-
github.com/tklauser/numcpus v0.2.2 // indirect
95+
github.com/tklauser/go-sysconf v0.3.12 // indirect
96+
github.com/tklauser/numcpus v0.6.1 // indirect
10097
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
10198
github.com/ugorji/go/codec v1.2.12 // indirect
10299
github.com/vedhavyas/go-subkey/v2 v2.0.0 // indirect
103100
github.com/yusufpapurcu/wmi v1.2.3 // indirect
104101
go.uber.org/multierr v1.11.0 // indirect
105102
golang.org/x/arch v0.7.0 // indirect
106-
golang.org/x/crypto v0.25.0 // indirect
103+
golang.org/x/crypto v0.32.0 // indirect
107104
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
108105
golang.org/x/net v0.27.0 // indirect
109-
golang.org/x/sync v0.7.0 // indirect
110-
golang.org/x/sys v0.22.0 // indirect
111-
golang.org/x/term v0.22.0 // indirect
112-
golang.org/x/text v0.16.0 // indirect
106+
golang.org/x/sync v0.10.0 // indirect
107+
golang.org/x/sys v0.29.0 // indirect
108+
golang.org/x/term v0.28.0 // indirect
109+
golang.org/x/text v0.21.0 // indirect
113110
google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 // indirect
114111
gopkg.in/ini.v1 v1.67.0 // indirect
115-
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
116112
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
117113
gopkg.in/yaml.v3 v3.0.1 // indirect
118114
lukechampine.com/blake3 v1.3.0 // indirect

0 commit comments

Comments
 (0)