Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

UTXOs Cache Mechanism Needs To Consider Message Nonces #2855

Closed
Torres-ssf opened this issue Jul 29, 2024 · 1 comment · Fixed by #2872
Closed

UTXOs Cache Mechanism Needs To Consider Message Nonces #2855

Torres-ssf opened this issue Jul 29, 2024 · 1 comment · Fixed by #2872
Assignees
Labels
feat Issue is a feature

Comments

@Torres-ssf
Copy link
Contributor

The current UTXOs cache mechanism needs to be refactored to include caching of message nonces. This is essential because message coins, uniquely identified by their nonces, are resources that can be used to fund transactions.

The cache mechanism must account for message coins to ensure the SDK is aware of all resources to be spent. This refactor will prevent errors such as the SDK using the same message to fund multiple transactions submitted within a short period of time (to be processed and mined at the same node).

@Torres-ssf Torres-ssf added the feat Issue is a feature label Jul 29, 2024
@Torres-ssf Torres-ssf self-assigned this Jul 29, 2024
@Torres-ssf Torres-ssf added the p0 label Jul 29, 2024
@arboleya
Copy link
Member

arboleya commented Jul 29, 2024

Consider mentioning why we enable cache by default in the docs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Issue is a feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants