Skip to content

Commit

Permalink
fix the long delay after datastream repopulation (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoscott authored Aug 21, 2024
1 parent 3974063 commit 77ffbae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zk/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func GetBatchLocalExitRootFromSCStorage(batchNo uint64, db DbReader, tx kv.Tx) (
}

stateReader := state.NewPlainState(tx, blockNo+1, systemcontracts.SystemContractCodeLookup["hermez"])
defer stateReader.Close()
rawLer, err := stateReader.ReadAccountStorage(state.GER_MANAGER_ADDRESS, 1, &state.GLOBAL_EXIT_ROOT_POS_1)
if err != nil {
return libcommon.Hash{}, err
Expand Down

0 comments on commit 77ffbae

Please sign in to comment.