add eager mode

This commit is contained in:
healthykim 2026-04-13 22:47:18 +02:00
parent f6657afa3b
commit d2b36d4c0b

View file

@ -277,7 +277,8 @@ func (f *BlobFetcher) loop() {
} else { } else {
randomValue = f.rand.Intn(100) randomValue = f.rand.Intn(100)
} }
if randomValue < fetchProbability { // For eager mode, always fetch immediately
if randomValue < fetchProbability || f.custody.OneCount() >= kzg4844.DataPerBlob {
f.full[hash] = struct{}{} f.full[hash] = struct{}{}
} else { } else {
f.partial[hash] = struct{}{} f.partial[hash] = struct{}{}