mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
consensus/misc/eip4844: use MergedTestChainConfig
This commit is contained in:
parent
2e4885315a
commit
f21a1e9781
1 changed files with 1 additions and 7 deletions
|
|
@ -129,14 +129,8 @@ func TestFakeExponential(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCalcExcessBlobGasEIP7918(t *testing.T) {
|
func TestCalcExcessBlobGasEIP7918(t *testing.T) {
|
||||||
// TODO: replace with a test config that has Osaka enabled.
|
|
||||||
c := *params.MainnetChainConfig
|
|
||||||
cfg := &c
|
|
||||||
cfg.OsakaTime = new(uint64)
|
|
||||||
pragueSchedule := *cfg.BlobScheduleConfig.Prague
|
|
||||||
cfg.BlobScheduleConfig.Osaka = &pragueSchedule
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
cfg = params.MergedTestChainConfig
|
||||||
targetBlobs = targetBlobsPerBlock(cfg, *cfg.CancunTime)
|
targetBlobs = targetBlobsPerBlock(cfg, *cfg.CancunTime)
|
||||||
blobGasTarget = uint64(targetBlobs) * params.BlobTxBlobGasPerBlob
|
blobGasTarget = uint64(targetBlobs) * params.BlobTxBlobGasPerBlob
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue