Skip to content

Commit 5a2fa75

Browse files
Only expose TargetBlobsPerBlock
1 parent 2f95706 commit 5a2fa75

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

consensus/misc/eip4844/eip4844.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -209,21 +209,6 @@ func TargetBlobsPerBlock(cfg *params.ChainConfig, time uint64) int {
209209
return blobConfig.Target
210210
}
211211

212-
// TargetBlobGasPerBlock returns the target blob gas that can be spent in a block at the given timestamp.
213-
func TargetBlobGasPerBlock(cfg *params.ChainConfig, time uint64) uint64 {
214-
return uint64(TargetBlobsPerBlock(cfg, time)) * params.BlobTxBlobGasPerBlob
215-
}
216-
217-
// LatestTargetBlobsPerBlock returns the latest target blobs per block defined by the
218-
// configuration, regardless of the currently active fork.
219-
func LatestTargetBlobsPerBlock(cfg *params.ChainConfig) int {
220-
bcfg := latestBlobConfig(cfg, math.MaxUint64)
221-
if bcfg == nil {
222-
return 0
223-
}
224-
return bcfg.Target
225-
}
226-
227212
// fakeExponential approximates factor * e ** (numerator / denominator) using
228213
// Taylor expansion.
229214
func fakeExponential(factor, numerator, denominator *big.Int) *big.Int {

0 commit comments

Comments
 (0)