Skip to content

Commit

Permalink
always track l1 info tree updates to the database (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoscott committed Sep 25, 2024
1 parent 9413fe9 commit 73a1d95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zk/stages/stage_sequence_execute_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,10 @@ func prepareL1AndInfoTreeRelatedStuff(sdb *stageDb, batchState *BatchState, prop
if l1TreeUpdateIndex, l1TreeUpdate, err = calculateNextL1TreeUpdateToUse(infoTreeIndexProgress, sdb.hermezDb, proposedTimestamp); err != nil {
return
}
if l1TreeUpdateIndex > 0 {
infoTreeIndexProgress = l1TreeUpdateIndex
}
}

if l1TreeUpdateIndex > 0 {
infoTreeIndexProgress = l1TreeUpdateIndex
}

// we only want GER and l1 block hash for indexes above 0 - 0 is a special case
Expand Down

0 comments on commit 73a1d95

Please sign in to comment.