MCPcopy Create free account
hub / github.com/ethstorage/es-node / hasIndexInRange

Method hasIndexInRange

ethstorage/p2p/protocol/task.go:96–107  ·  view source on GitHub ↗
(first, next uint64)

Source from the content-addressed store, hash-verified

94}
95
96func (h *healTask) hasIndexInRange(first, next uint64) (bool, uint64) {
97 min, exist := next, false
98 for idx := range h.Indexes {
99 if idx < next && idx >= first {
100 exist = true
101 if min > idx {
102 min = idx
103 }
104 }
105 }
106 return exist, min
107}
108
109func (h *healTask) getBlobIndexesForRequest(batch uint64) []uint64 {
110 indexes := make([]uint64, 0)

Callers 1

cleanTasksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected