()
| 53 | func (a EventNIDs) Less(i, j int) bool { return a[i] < a[j] } |
| 54 | |
| 55 | func (a EventNIDs) Hash() []byte { |
| 56 | j, err := json.Marshal(a) |
| 57 | if err != nil { |
| 58 | return nil |
| 59 | } |
| 60 | h := blake2b.Sum256(j) |
| 61 | return h[:] |
| 62 | } |
| 63 | |
| 64 | // StateBlockNIDs is used to sort and dedupe state block NIDs. |
| 65 | type StateBlockNIDs []StateBlockNID |
no outgoing calls
no test coverage detected