@@ -15,6 +15,7 @@ import (
1515 "github.com/evstack/ev-node/block/internal/common"
1616 "github.com/evstack/ev-node/block/internal/da"
1717 "github.com/evstack/ev-node/core/execution"
18+ "github.com/evstack/ev-node/pkg/blobsize"
1819 "github.com/evstack/ev-node/pkg/config"
1920 datypes "github.com/evstack/ev-node/pkg/da/types"
2021 "github.com/evstack/ev-node/pkg/genesis"
@@ -480,7 +481,7 @@ func TestGracePeriodForEpoch_LightBlocks(t *testing.T) {
480481func TestGracePeriodForEpoch_FullBlocks (t * testing.T ) {
481482 s := & Syncer {daBlockBytes : make (map [uint64 ]uint64 )}
482483 for h := uint64 (0 ); h <= 4 ; h ++ {
483- s .daBlockBytes [h ] = common .DefaultMaxBlobSize
484+ s .daBlockBytes [h ] = blobsize .DefaultMaxBlobSize
484485 }
485486 grace := s .gracePeriodForEpoch (0 , 4 )
486487 require .GreaterOrEqual (t , grace , baseGracePeriodEpochs )
@@ -490,7 +491,7 @@ func TestGracePeriodForEpoch_FullBlocks(t *testing.T) {
490491// avgBytes=1.6·M, threshold=0.8·M → extra=1 → grace=base+1.
491492func TestGracePeriodForEpoch_ExtendedUnderHighCongestion (t * testing.T ) {
492493 s := & Syncer {daBlockBytes : make (map [uint64 ]uint64 )}
493- congested := uint64 (float64 (common .DefaultMaxBlobSize ) * 1.6 )
494+ congested := uint64 (float64 (blobsize .DefaultMaxBlobSize ) * 1.6 )
494495 for h := uint64 (0 ); h <= 2 ; h ++ {
495496 s .daBlockBytes [h ] = congested
496497 }
@@ -501,7 +502,7 @@ func TestGracePeriodForEpoch_ExtendedUnderHighCongestion(t *testing.T) {
501502// TestGracePeriodForEpoch_CappedAtMax verifies the grace period never exceeds maxGracePeriodEpochs.
502503func TestGracePeriodForEpoch_CappedAtMax (t * testing.T ) {
503504 s := & Syncer {daBlockBytes : make (map [uint64 ]uint64 )}
504- huge := common .DefaultMaxBlobSize * 100
505+ huge := blobsize .DefaultMaxBlobSize * 100
505506 for h := uint64 (0 ); h <= 4 ; h ++ {
506507 s .daBlockBytes [h ] = huge
507508 }
@@ -526,7 +527,7 @@ func TestVerifyForcedInclusionTxs_DynamicGrace_CongestedEpochGetsExtraTime(t *te
526527 mockFIEmpty (client , 2 , 9 )
527528
528529 // avgBytes = 1.6·M → extra=1 → gracePeriodForEpoch(0,1)=2 → graceBoundary=5.
529- blockBytes := uint64 (float64 (common .DefaultMaxBlobSize ) * 1.6 )
530+ blockBytes := uint64 (float64 (blobsize .DefaultMaxBlobSize ) * 1.6 )
530531
531532 d0 := makeData ("tchain" , 1 , 1 )
532533 d0 .Txs [0 ] = types .Tx (make ([]byte , blockBytes ))
0 commit comments