From 14908c56be077962c3326be957290376a7cb902f Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 15 Apr 2025 17:00:18 +0800 Subject: [PATCH] eth/downloader: fixup func comment --- eth/downloader/resultstore.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eth/downloader/resultstore.go b/eth/downloader/resultstore.go index 58f4f1f234..2752cae132 100644 --- a/eth/downloader/resultstore.go +++ b/eth/downloader/resultstore.go @@ -25,10 +25,12 @@ import ( "github.com/ethereum/go-ethereum/core/types" ) -// returns a rough estimate of the worst-case block size (in bytes) given the -// block gas used. The worst-case block size is assumed to be constructed by +// estWorstCaseBlockSize returns a rough estimate of the worst-case block size +// (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 -// 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) { return gasUsed / 10 }