Skip to content

Commit

Permalink
333
Browse files Browse the repository at this point in the history
  • Loading branch information
zsfelfoldi committed Sep 13, 2024
1 parent c398a1b commit 66ebc61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/filtermaps/filtermaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ func (f *FilterMaps) GetBlockLvPointer(blockNumber uint64) (uint64, error) {
f.lock.RLock()
defer f.lock.RUnlock()

if blockNumber > f.headBlockNumber {
return f.headLvPointer, nil
}
if lvPointer, ok := f.lvPointerCache.Get(blockNumber); ok {
return lvPointer, nil
}
Expand Down

0 comments on commit 66ebc61

Please sign in to comment.