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

Purge Account UTXO table once an input is spent #624

Closed
samuelmanzanera opened this issue Oct 12, 2022 · 1 comment · Fixed by #684
Closed

Purge Account UTXO table once an input is spent #624

samuelmanzanera opened this issue Oct 12, 2022 · 1 comment · Fixed by #684
Assignees
Labels
feature New feature request

Comments

@samuelmanzanera
Copy link
Member

Is your feature request related to a problem?

All the inputs are currently store in memory.
In order to scale, you should evict the spent transaction outputs from the ETS tables and store them on disk for a later query.

Describe the solution you'd like

After each transaction replication, you are notifying the previous shards for a new transaction in the chain.
Hence, the UTXO are flagged as spent.
We could then at this time delegates to a permanent storage on disk to reduce the footprint of the ETS tables.

Additional context

No response

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

Successfully merging a pull request may close this issue.

3 participants