Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Limit timestamp resolution #2004

@ToniRamirezM

Description

@ToniRamirezM

Rationale

Some dapps base its logic in the timestamp and we should update it at a max interval to be defined.

Implementation

When a new TX arrives if the batch timestamp is > than the max allowed, we must close the batch, create a new one and add this new TX to the new batch.

If it is the first tx in the batch, update the batch's timestamp to time.now()

Use a new config parameter: timestampResolution

Remove current parameter to close a batch due to a timeout.
Take into account this timestamp for gas estimation and eth_call: use time.Now() if block is not forced.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions