Skip to content

Commit

Permalink
remove fetch head call
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Sep 21, 2023
1 parent 62ae6e8 commit 0b9a13e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/enclave/nodetype/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ func (s *sequencer) initGenesis(block *common.L1Block) error {
}

func (s *sequencer) createNewHeadBatch(l1HeadBlock *common.L1Block) error {
headBatch, err := s.storage.FetchHeadBatch()
headBatchSeq := s.batchRegistry.HeadBatchSeq()
headBatch, err := s.storage.FetchBatchBySeqNo(headBatchSeq.Uint64())
if err != nil {
return err
}
Expand Down

0 comments on commit 0b9a13e

Please sign in to comment.