Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cache eth_feeHistory inner value #175

Merged
merged 2 commits into from
Jun 9, 2022
Merged

Conversation

Nana-EC
Copy link
Collaborator

@Nana-EC Nana-EC commented Jun 9, 2022

Signed-off-by: Nana-EC nana@swirldslabs.com

Description:
Given the fees don't change much we should cache the result for some time

  • Add a cache key for feeHistory
  • Add tests

Related issue(s):

Fixes #174

Notes for reviewer:
Tested local instance against previewnet

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Nana-EC <nana@swirldslabs.com>
@Nana-EC Nana-EC self-assigned this Jun 9, 2022
@Nana-EC Nana-EC marked this pull request as draft June 9, 2022 00:16
@Nana-EC Nana-EC marked this pull request as ready for review June 9, 2022 00:17
Signed-off-by: Nana-EC <nana@swirldslabs.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Daniel-K-Ivanov Daniel-K-Ivanov merged commit 223bbec into main Jun 9, 2022
@Daniel-K-Ivanov Daniel-K-Ivanov deleted the 174-cache-fee-history branch June 9, 2022 06:58
Nana-EC added a commit that referenced this pull request Jun 9, 2022
* Cache eth_feeHistory inner value

Signed-off-by: Nana-EC <nana@swirldslabs.com>

* Add eth.spec test

Signed-off-by: Nana-EC <nana@swirldslabs.com>
@Nana-EC Nana-EC added enhancement New feature or request P1 labels Jun 13, 2022
@Nana-EC Nana-EC added this to the 0.2.0 milestone Jun 13, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request P1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache eth_feeHistory call
3 participants