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

Method SealClaim

protocol/smartpool.go:116–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func (sp *SmartPool) SealClaim() smartpool.Claim {
117 sp.counterMu.Lock()
118 defer sp.counterMu.Unlock()
119 claim := sp.GetCurrentClaim(sp.ShareThreshold)
120 if claim != nil {
121 sp.LatestCounter = claim.Max()
122 smartpool.Output.Printf("Set Latest Counter to 0x%s.\n", sp.LatestCounter.Text(16))
123 }
124 return claim
125}
126
127// Submit does all the protocol that communicates with the contract to submit
128// the claim then verify it.

Callers 1

SubmitMethod · 0.95

Calls 3

GetCurrentClaimMethod · 0.95
MaxMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected