MCPcopy 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
29func (c *Claim) AddShare(s smartpool.Share) {
30 c.shares = append(c.shares[:], s)
31}
32
33func (c *Claim) GetShare(index int) smartpool.Share {
34 return c.shares[index]

Callers 2

TestClaimAddShareFunction · 0.95
GetCurrentClaimMethod · 0.95

Implementers 2

Claimprotocol/claim.go
testClaimprotocol/test_claim.go

Calls

no outgoing calls

Tested by 1

TestClaimAddShareFunction · 0.76