Skip to content

Commit e694eb3

Browse files
committed
update sdk, challenge
1 parent 597b9b8 commit e694eb3

File tree

13 files changed

+409
-283
lines changed

13 files changed

+409
-283
lines changed

configs/system.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
// Name is the name of the program
2323
Name = "miner"
2424
// version
25-
Version = "v0.8.1"
25+
Version = "v0.8.2 2502111357-1739253444"
2626
// Description is the description of the program
2727
Description = "Storage miner implementation in CESS networks"
2828
// NameSpace is the cached namespace

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.22.10
66

77
require (
88
github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4
9-
github.com/CESSProject/cess-go-sdk v0.7.1-0.20250204032707-babee66b5bcd
9+
github.com/CESSProject/cess-go-sdk v0.7.1-0.20250210085828-e5828b43cd15
1010
github.com/CESSProject/cess_pois v0.6.1-0.20250121033243-b6cc55aef221
1111
github.com/gin-contrib/cors v1.7.1
1212
github.com/gin-gonic/gin v1.9.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4 h1:Inr2ivit8eKF5uWM+ed3P+
22
github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4/go.mod h1:qbIMzJc2bc/LP0Nzrw6187sgn7fCXkFYfJwPgfRcBSk=
33
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
44
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
5-
github.com/CESSProject/cess-go-sdk v0.7.1-0.20250204032707-babee66b5bcd h1:ECT9pzpD+lZ7K96gN+2xMh8nzUVFl6DN7P0rs9ZYRi0=
6-
github.com/CESSProject/cess-go-sdk v0.7.1-0.20250204032707-babee66b5bcd/go.mod h1:B0z/FVDXZo7L9ne4hGVMl/wsd9oed/3JYBfa3yQfNpU=
5+
github.com/CESSProject/cess-go-sdk v0.7.1-0.20250210085828-e5828b43cd15 h1:5oaW0DQjPiEaUmfw9fkG9pqB36kLS0ZpKd3y58mYsXU=
6+
github.com/CESSProject/cess-go-sdk v0.7.1-0.20250210085828-e5828b43cd15/go.mod h1:B0z/FVDXZo7L9ne4hGVMl/wsd9oed/3JYBfa3yQfNpU=
77
github.com/CESSProject/cess_pois v0.6.1-0.20250121033243-b6cc55aef221 h1:IL73uYiYU7OHFiQ4EJUwaimzo/5ONs7/qwP5856mO1M=
88
github.com/CESSProject/cess_pois v0.6.1-0.20250121033243-b6cc55aef221/go.mod h1:rztEZjjG+MbKzVgh5WtQcZc/7ZDkBvDNABc7Em8BKPc=
99
github.com/ChainSafe/go-schnorrkel v1.0.0 h1:3aDA67lAykLaG1y3AOjs88dMxC88PgUuHRrLeDnvGIM=

node/challenge.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ func (n *Node) ChallengeMgt(idleChallTaskCh chan bool, serviceChallTaskCh chan b
5252
<-idleChallTaskCh
5353
go n.idleChallenge(
5454
idleChallTaskCh,
55-
true,
5655
uint32(challenge.ChallengeElement.Start),
56+
uint32(challenge.ChallengeElement.IdleSlip),
57+
uint32(challenge.ChallengeElement.VerifySlip),
5758
int64(challenge.MinerSnapshot.SpaceProofInfo.Front),
5859
int64(challenge.MinerSnapshot.SpaceProofInfo.Rear),
5960
challenge.ChallengeElement.SpaceParam,
@@ -71,8 +72,9 @@ func (n *Node) ChallengeMgt(idleChallTaskCh chan bool, serviceChallTaskCh chan b
7172
<-idleChallTaskCh
7273
go n.idleChallenge(
7374
idleChallTaskCh,
74-
false,
7575
uint32(challenge.ChallengeElement.Start),
76+
uint32(challenge.ChallengeElement.IdleSlip),
77+
uint32(challenge.ChallengeElement.VerifySlip),
7678
int64(challenge.MinerSnapshot.SpaceProofInfo.Front),
7779
int64(challenge.MinerSnapshot.SpaceProofInfo.Rear),
7880
challenge.ChallengeElement.SpaceParam,
@@ -96,6 +98,8 @@ func (n *Node) ChallengeMgt(idleChallTaskCh chan bool, serviceChallTaskCh chan b
9698
challenge.ChallengeElement.ServiceParam.Index,
9799
challenge.ChallengeElement.ServiceParam.Value,
98100
uint32(challenge.ChallengeElement.Start),
101+
uint32(challenge.ChallengeElement.ServiceSlip),
102+
uint32(challenge.ChallengeElement.VerifySlip),
99103
)
100104
}
101105
}
@@ -111,6 +115,8 @@ func (n *Node) ChallengeMgt(idleChallTaskCh chan bool, serviceChallTaskCh chan b
111115
challenge.ChallengeElement.ServiceParam.Index,
112116
challenge.ChallengeElement.ServiceParam.Value,
113117
uint32(challenge.ChallengeElement.Start),
118+
uint32(challenge.ChallengeElement.ServiceSlip),
119+
uint32(challenge.ChallengeElement.VerifySlip),
114120
)
115121
}
116122
}

0 commit comments

Comments
 (0)