MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / GetCurrentClaim

Method GetCurrentClaim

protocol/smartpool.go:108–110  ·  view source on GitHub ↗

GetCurrentClaim returns new claim containing unsubmitted shares. If there is no new shares, it returns nil.

(threshold int)

Source from the content-addressed store, hash-verified

106// GetCurrentClaim returns new claim containing unsubmitted shares. If there
107// is no new shares, it returns nil.
108func (sp *SmartPool) GetCurrentClaim(threshold int) smartpool.Claim {
109 return sp.ClaimRepo.GetCurrentClaim(threshold)
110}
111
112func (sp *SmartPool) GetVerificationIndex(claim smartpool.Claim) *big.Int {
113 return sp.Contract.GetShareIndex(claim)

Callers 1

SealClaimMethod · 0.95

Calls 1

GetCurrentClaimMethod · 0.65

Tested by

no test coverage detected