mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Only expose TargetBlobsPerBlock
This commit is contained in:
parent
2f95706777
commit
5a2fa75da7
1 changed files with 0 additions and 15 deletions
|
|
@ -209,21 +209,6 @@ func TargetBlobsPerBlock(cfg *params.ChainConfig, time uint64) int {
|
||||||
return blobConfig.Target
|
return blobConfig.Target
|
||||||
}
|
}
|
||||||
|
|
||||||
// TargetBlobGasPerBlock returns the target blob gas that can be spent in a block at the given timestamp.
|
|
||||||
func TargetBlobGasPerBlock(cfg *params.ChainConfig, time uint64) uint64 {
|
|
||||||
return uint64(TargetBlobsPerBlock(cfg, time)) * params.BlobTxBlobGasPerBlob
|
|
||||||
}
|
|
||||||
|
|
||||||
// LatestTargetBlobsPerBlock returns the latest target blobs per block defined by the
|
|
||||||
// configuration, regardless of the currently active fork.
|
|
||||||
func LatestTargetBlobsPerBlock(cfg *params.ChainConfig) int {
|
|
||||||
bcfg := latestBlobConfig(cfg, math.MaxUint64)
|
|
||||||
if bcfg == nil {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
return bcfg.Target
|
|
||||||
}
|
|
||||||
|
|
||||||
// fakeExponential approximates factor * e ** (numerator / denominator) using
|
// fakeExponential approximates factor * e ** (numerator / denominator) using
|
||||||
// Taylor expansion.
|
// Taylor expansion.
|
||||||
func fakeExponential(factor, numerator, denominator *big.Int) *big.Int {
|
func fakeExponential(factor, numerator, denominator *big.Int) *big.Int {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue