thor icon indicating copy to clipboard operation
thor copied to clipboard

⚙️ [CONFIG] - Increase default value for `api-logs-limit`

Open ifavo opened this issue 6 months ago • 6 comments

Description

In the next release, there is a new option to add a limit for returned event logs: https://github.com/vechain/thor/pull/777

The configuration sets a default limit to 1000 entries, which is very low when using public nodes to index data.

I propose increasing the default limit to allow clients to access enough events so that at least 100 (if not 1000) blocks can be scanned in a single request. This should enable most developers and users to access data sensibly without overloading server resources.

In my opinion, a block with 200 clauses (regardless of the transaction count) with 2 events each should be available without rejecting the request. This means for 100 blocks, it would be up to 20,000 events.

The nodes I run respond quickly with even more events on some requests. If someone is running a low-resource node, the limit can still be lowered.

ifavo avatar Aug 01 '24 15:08 ifavo