From 886fe685288f65d8fa8d773a7165a01a77950025 Mon Sep 17 00:00:00 2001 From: qybdyx Date: Fri, 30 Jan 2026 16:22:23 +0800 Subject: [PATCH] tests: update the bpo1 && bpo2 config to fix spec test --- consensus/misc/eip4844/eip4844.go | 2 +- tests/init.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/consensus/misc/eip4844/eip4844.go b/consensus/misc/eip4844/eip4844.go index ff0463ebc7..f5e083584f 100644 --- a/consensus/misc/eip4844/eip4844.go +++ b/consensus/misc/eip4844/eip4844.go @@ -111,7 +111,7 @@ func VerifyEIP4844Header(config *params.ChainConfig, parent, header *types.Heade } // BEP-657: non-eligible blocks must have no blob gas used - if config.IsInBSC() && !IsBlobEligibleBlock(config, header.Number.Uint64(), header.Time) { + if !IsBlobEligibleBlock(config, header.Number.Uint64(), header.Time) { if *header.BlobGasUsed != 0 { return fmt.Errorf("blob transactions not allowed in block %d (N %% %d != 0)", header.Number.Uint64(), params.BlobEligibleBlockInterval) } diff --git a/tests/init.go b/tests/init.go index 705e929ae9..20d09077aa 100644 --- a/tests/init.go +++ b/tests/init.go @@ -723,15 +723,15 @@ var Forks = map[string]*params.ChainConfig{ } var bpo1BlobConfig = ¶ms.BlobConfig{ - Target: 9, - Max: 14, - UpdateFraction: 8832827, + Target: 10, + Max: 15, + UpdateFraction: 8346193, } var bpo2BlobConfig = ¶ms.BlobConfig{ Target: 14, Max: 21, - UpdateFraction: 13739630, + UpdateFraction: 11684671, } // AvailableForks returns the set of defined fork names