Skip to content

Commit

Permalink
check the latest l1 event header
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Jan 13, 2025
1 parent 7c18633 commit c374ccf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/taiko-client/driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ func (s *DriverTestSuite) TestCheckL1ReorgToHigherFork() {
s.Nil(err)

// Propose two L2 blocks
s.ProposeAndInsertValidBlock(s.p, s.d.ChainSyncer().BlobSyncer())
metadata := s.ProposeAndInsertValidBlock(s.p, s.d.ChainSyncer().BlobSyncer())
s.Equal(metadata.GetRawBlockHash(), s.d.state.GetL1Current().Hash())

s.ProposeAndInsertValidBlock(s.p, s.d.ChainSyncer().BlobSyncer())
metadata = s.ProposeAndInsertValidBlock(s.p, s.d.ChainSyncer().BlobSyncer())
s.Equal(metadata.GetRawBlockHash(), s.d.state.GetL1Current().Hash())

l1Head2, err := s.d.rpc.L1.HeaderByNumber(context.Background(), nil)
s.Nil(err)
Expand Down

0 comments on commit c374ccf

Please sign in to comment.