()
| 114 | } |
| 115 | |
| 116 | func (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. |
no test coverage detected