mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
eth/downloader: fixup func comment
This commit is contained in:
parent
29435f8f31
commit
14908c56be
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue