From 385fed2ce273d131635c54e99a11704a4ed385b8 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 25 Nov 2024 23:44:32 +0800 Subject: [PATCH] test(taiko-client): skip `TestCheckL1ReorgToSameHeightFork` temporarily (#18522) --- packages/taiko-client/driver/driver_test.go | 1 + packages/taiko-client/pkg/rpc/methods.go | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/taiko-client/driver/driver_test.go b/packages/taiko-client/driver/driver_test.go index b0a97cc481..88d3b5c552 100644 --- a/packages/taiko-client/driver/driver_test.go +++ b/packages/taiko-client/driver/driver_test.go @@ -212,6 +212,7 @@ func (s *DriverTestSuite) TestCheckL1ReorgToLowerFork() { } func (s *DriverTestSuite) TestCheckL1ReorgToSameHeightFork() { + s.T().Skip("Skip this test case because of the anvil timestamp issue after rollback.") var ( testnetL1SnapshotID = s.SetL1Snapshot() ) diff --git a/packages/taiko-client/pkg/rpc/methods.go b/packages/taiko-client/pkg/rpc/methods.go index e8432ff829..caec456b8f 100644 --- a/packages/taiko-client/pkg/rpc/methods.go +++ b/packages/taiko-client/pkg/rpc/methods.go @@ -322,11 +322,6 @@ func (c *Client) CalculateBaseFee( return nil, fmt.Errorf("failed to fetch parent gas excess: %w", err) } } - // The time of l1Head should always be greater than that of l2Head. - // Since the block.Time after anvil rollback is smaller than the original one, the timestamp has to be modified here. - if currentTimestamp < l2Head.Time { - currentTimestamp = l2Head.Time + 1 - } baseFeeInfo, err = c.TaikoL2.CalculateBaseFee( &bind.CallOpts{BlockNumber: l2Head.Number, Context: ctx}, *baseFeeConfig,