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 committed Aug 22, 2024
1 parent eb9c272 commit f1beb0d
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 @@ -153,6 +153,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 f1beb0d

Please sign in to comment.