Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmartPool/smartpool-client
/ NewClaim
Function
NewClaim
protocol/claim.go:25–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
23
}
24
25
func
NewClaim() *Claim {
26
return
&Claim{Shares{}, nil, nil, nil}
27
}
28
29
func
(c *Claim) AddShare(s smartpool.Share) {
30
c.shares = append(c.shares[:], s)
Callers
4
TestClaimAddShare
Function · 0.85
NewInMemClaimRepo
Function · 0.85
GetCurrentClaim
Method · 0.85
TestInMemClaimRepoGetSpecificClaim
Function · 0.85
Calls
no outgoing calls
Tested by
2
TestClaimAddShare
Function · 0.68
TestInMemClaimRepoGetSpecificClaim
Function · 0.68