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

Add cache logic to capture static INVALID entity transaction failures #216

Closed
Nana-EC opened this issue Jun 16, 2022 · 0 comments · Fixed by #310
Closed

Add cache logic to capture static INVALID entity transaction failures #216

Nana-EC opened this issue Jun 16, 2022 · 0 comments · Fixed by #310
Assignees
Labels
enhancement New feature or request limechain P1
Milestone

Comments

@Nana-EC
Copy link
Collaborator

Nana-EC commented Jun 16, 2022

Problem

Some wallets will reissue the same calls over and over again for extended periods when they receive errors.
In many cases the responses are static (e.g. INVALID_CONTRACT_ID and INVALID_ACCOUNT_ID) and will not change over time or with successive or other transactions

Solution

This can be optimized by capturing calls and their error response in a cache (LRU) that returns the static response if called again.
Care should be taken to only do this for static responses whosE success is not impacted by future calls

Alternatives

No response

@Nana-EC Nana-EC added enhancement New feature or request P1 labels Jun 16, 2022
@Nana-EC Nana-EC added this to the 0.2.0 milestone Jun 16, 2022
@Nana-EC Nana-EC assigned Nana-EC and unassigned Nana-EC Jun 20, 2022
@Nana-EC Nana-EC modified the milestones: 0.2.0, 0.3.0, 0.4.0 Jun 30, 2022
@Nana-EC Nana-EC changed the title Add cache logic to capture static transaction failures Add cache logic to capture static INVALID entity transaction failures Jul 5, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request limechain P1
Projects
None yet
2 participants