Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Mar 26, 2024
1 parent e4d9e2d commit 3b5189e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/walletextension/rpcapi/filter_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (api *FilterAPI) GetLogs(ctx context.Context, crit common.FilterCriteria) (
cacheCfg: &CacheCfg{
TTLCallback: func() time.Duration {
// when the toBlock is not specified, the request is open-ended
if crit.ToBlock != nil {
if crit.ToBlock != nil && crit.ToBlock.Int64() > 0 {
return longCacheTTL
}
return shortCacheTTL
Expand Down

0 comments on commit 3b5189e

Please sign in to comment.