IsCommitted returns true if we have already seen this exact evidence and it is already marked as committed.
(evidence types.Evidence)
| 274 | |
| 275 | // IsCommitted returns true if we have already seen this exact evidence and it is already marked as committed. |
| 276 | func (evpool *Pool) isCommitted(evidence types.Evidence) bool { |
| 277 | key := keyCommitted(evidence) |
| 278 | ok, err := evpool.evidenceStore.Has(key) |
| 279 | if err != nil { |
| 280 | evpool.logger.Error("Unable to find committed evidence", "err", err) |
| 281 | } |
| 282 | return ok |
| 283 | } |
| 284 | |
| 285 | // IsPending checks whether the evidence is already pending. DB errors are passed to the logger. |
| 286 | func (evpool *Pool) isPending(evidence types.Evidence) bool { |
no test coverage detected