Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmartPool/smartpool-client
/ AddShare
Method
AddShare
protocol/claim.go:29–31 ·
view source on GitHub ↗
(s smartpool.Share)
Source
from the content-addressed store, hash-verified
27
}
28
29
func
(c *Claim) AddShare(s smartpool.Share) {
30
c.shares = append(c.shares[:], s)
31
}
32
33
func
(c *Claim) GetShare(index int) smartpool.Share {
34
return
c.shares[index]
Callers
2
TestClaimAddShare
Function · 0.95
GetCurrentClaim
Method · 0.95
Implementers
2
Claim
protocol/claim.go
testClaim
protocol/test_claim.go
Calls
no outgoing calls
Tested by
1
TestClaimAddShare
Function · 0.76