Skip to content

Cache for ReadContract() #2826

@raullenchai

Description

@raullenchai

We need an in-mem cache for ReadContract() here https://github.com/iotexproject/iotex-core/blob/master/api/api.go#L452

  • which caches N responses from prev calls of ReadContract(), N is configurable
  • which should be invalidated whenever a new block is committed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions