waku-org / nwaku

Waku node and protocol.
Other
201 stars 53 forks source link

chore: cap max time range allowed in store query #3170

Open Ivansete-status opened 2 weeks ago

Ivansete-status commented 2 weeks ago

Background

The node can find difficulties when receiving store queries with too big time ranges, e.g. 1 month We need to limit the time range allowed by store queries.

Details

Status app nowadays can ask for 1month data when looking for community description or user profile data. When that happens, the store response time can easily be >1 minute.

With the aim to always bring the fastest response, we will limit the maximum time range to 24 hours.