Skip to content

Remove getTransactionCount with latest tag caching #4389

@konstantinabl

Description

@konstantinabl

Currently, we cache getTransactionCount("latest") with ttl 500ms, however we may still return an old value that is not relevant, if e.g we cache the getTransactionCount("latest") for 500ms but after 300ms a new block is mined, the value needs to be updated, but we will still return the older value.

Motivation

  • Avoid returning an old value on request to eth_getTransctionCount with latest tag

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions