eth/downloader: fixup func comment

This commit is contained in:
Jared Wasinger 2025-04-15 17:00:18 +08:00
parent 29435f8f31
commit 14908c56be

View file

@ -25,10 +25,12 @@ import (
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
) )
// returns a rough estimate of the worst-case block size (in bytes) given the // estWorstCaseBlockSize returns a rough estimate of the worst-case block size
// block gas used. The worst-case block size is assumed to be constructed by // (in bytes) given the block gas used.
// The worst-case block size is assumed to be constructed by
// inserting a transaction with calldata containing all-zeros. With changes // inserting a transaction with calldata containing all-zeros. With changes
// introduced in EIP-XXX, the price of zero-byte calldata becomes ~10 gas / byte. // introduced in EIP-7623, the price of zero-byte calldata becomes 10 gas / byte
// for a large transaction.
func estWorstCaseBlockSize(gasUsed uint64) (size uint64) { func estWorstCaseBlockSize(gasUsed uint64) (size uint64) {
return gasUsed / 10 return gasUsed / 10
} }