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

[Refactoring] Faster mn Check() - remove AcceptableInputs #1842

Merged
merged 2 commits into from
Sep 16, 2020

Conversation

random-zebra
Copy link

Instead of creating a dummy transaction with the masternode vin as input, and feeding the dummy transaction to AcceptableInputs (locking cs_main and mempool.cs) use the coins cache to get the vin spent-status.
Remove AcceptableInputs function entirely.

instead of creating a dummy tx, using it as input, and feeding it to
AcceptableInputs
@random-zebra random-zebra added this to the 5.0.0 milestone Sep 9, 2020
@random-zebra random-zebra self-assigned this Sep 9, 2020
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 1f53be1 ☕ .

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 1f53be1

@Fuzzbawls
Copy link
Collaborator

can also add this to 4.3.0 for the final release

@random-zebra random-zebra merged commit 41927df into PIVX-Project:master Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants