mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-25 01:09:28 +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 {
|
||||
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{}{}
|
||||
} else {
|
||||
f.partial[hash] = struct{}{}
|
||||
|
|
|
|||
Loading…
Reference in a new issue