Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmartPool/smartpool-client
/ NumShares
Method
NumShares
protocol/claim.go:37–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
func
(c *Claim) NumShares() *big.Int {
38
return
big.NewInt(int64(c.shares.Len()))
39
}
40
41
func
(c *Claim) Difficulty() *big.Int {
42
var
m *big.Int
Callers
2
TestClaimNumSharesReturnsNumberOfShare
Function · 0.95
TestClaimAddShare
Function · 0.95
Implementers
2
Claim
protocol/claim.go
testClaim
protocol/test_claim.go
Calls
1
Len
Method · 0.80
Tested by
2
TestClaimNumSharesReturnsNumberOfShare
Function · 0.76
TestClaimAddShare
Function · 0.76