Skip to content

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode committed Jun 9, 2024
1 parent ee6917b commit f42b584
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cmd/console/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ func registerPoisKey(
for i := 0; i < len(teeEndPointList); i++ {
delay = 30
for tryCount := uint8(0); tryCount <= 5; tryCount++ {
out.Tip(fmt.Sprintf("Requesting registration parameters from tee: %s", teeEndPointList[i]))
out.Tip(fmt.Sprintf("Requesting registration parameters to tee: %s", teeEndPointList[i]))
if !strings.Contains(teeEndPointList[i], "443") {
dialOptions = []grpc.DialOption{grpc.WithTransportCredentials(insecure.NewCredentials())}
} else {
Expand Down Expand Up @@ -1281,6 +1281,7 @@ func registerMinerPoisKey(cli *chain.ChainClient, poisKey chain.PoISKeyInfo, tee
}
continue
}
return nil
}
return err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/CESSProject/cess-miner
go 1.20

require (
github.com/CESSProject/cess-go-sdk v0.5.1-0.20240511074236-0962272b87ad
github.com/CESSProject/cess-go-sdk v0.5.1-0.20240604024323-4bb5b057a452
github.com/CESSProject/cess_pois v0.5.15
github.com/CESSProject/p2p-go v0.3.14
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D
git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/CESSProject/cess-go-sdk v0.5.1-0.20240511074236-0962272b87ad h1:oknDc9mWkxphN3ICRcJQNqPaudZOJkKx6t8uYYsXKEQ=
github.com/CESSProject/cess-go-sdk v0.5.1-0.20240511074236-0962272b87ad/go.mod h1:9BGRFkU3Zc5CYqK9EIz3DY14MjDg6a0bA1DWgMk3qFc=
github.com/CESSProject/cess-go-sdk v0.5.1-0.20240604024323-4bb5b057a452 h1:gVQoivK44Cn3asnCgEFj1XLELFzbfC5TdJt3tq4UCD0=
github.com/CESSProject/cess-go-sdk v0.5.1-0.20240604024323-4bb5b057a452/go.mod h1:9BGRFkU3Zc5CYqK9EIz3DY14MjDg6a0bA1DWgMk3qFc=
github.com/CESSProject/cess_pois v0.5.15 h1:oQH8xEtxVzB+SeI+gNS6iSeFgjb/xDAsmgyuoF3al28=
github.com/CESSProject/cess_pois v0.5.15/go.mod h1:rztEZjjG+MbKzVgh5WtQcZc/7ZDkBvDNABc7Em8BKPc=
github.com/CESSProject/p2p-go v0.3.14 h1:t7xLWTC8C+tuELtD6f2k4Ds6Z0zulMA0v83ONTDTthw=
Expand Down
3 changes: 2 additions & 1 deletion node/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/CESSProject/cess-miner/configs"
"github.com/CESSProject/cess-miner/pkg/utils"
"github.com/CESSProject/p2p-go/out"
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
)

Expand Down Expand Up @@ -96,7 +97,7 @@ func (w *Workspace) Check() error {
}

if dirfreeSpace < sconfig.SIZE_1GiB*32 {
return errors.New("the free space in workspace is less than 32GiB and cannot generate idle data")
out.Warn("Your free space in workspace is less than 32GiB and cannot generate idle data")
}
return nil
}
Expand Down

0 comments on commit f42b584

Please sign in to comment.