mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-06 15:08:39 +00:00
add eager mode
This commit is contained in:
parent
f6657afa3b
commit
d2b36d4c0b
1 changed files with 2 additions and 1 deletions
|
|
@ -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{}{}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue