Skip to content

Tech: Add Cache Storage Unsave Mempool Transaction #1346

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

Open
sukrawidhyawan opened this issue Nov 11, 2020 · 0 comments · May be fixed by #1359
Open

Tech: Add Cache Storage Unsave Mempool Transaction #1346

sukrawidhyawan opened this issue Nov 11, 2020 · 0 comments · May be fixed by #1359

Comments

@sukrawidhyawan
Copy link
Contributor

sukrawidhyawan commented Nov 11, 2020

Description

To reduce the frequency of writing data into DB when many transaction come in, try to add 100% mempool cache (Unsave Mempool). This mempool will contain a list of transactions that not yet saved into the DB mempool. The Unsave Mempool cache also needs to follow the spendable balance of the account to avoid Double spending.

Breakdown

  • Add Storage for Unsave Mempool
  • Cache spendable balance of Unsave Mempool transaction
  • Add Scheduler to Insert Unsaved Mempool
  • Add checker whether a new incoming transaction can go into Unsave Mempool or can directly go into normal Mempool Cache.

Additional Diagram / File

Put additional diagram or file

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

Successfully merging a pull request may close this issue.

3 participants