Skip to content

vms/platformvm: Surface VerifyUniqueInputs in the Manager #2467

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

Merged
merged 4 commits into from
Dec 12, 2023

Conversation

dhrubabasu
Copy link
Contributor

Why this should be merged

We need this method for the mempool tx verification

Factored out of #2359

How this works

add method

How this was tested

CI

@dhrubabasu dhrubabasu added this to the v1.10.18 milestone Dec 11, 2023
@dhrubabasu dhrubabasu self-assigned this Dec 11, 2023
@dhrubabasu
Copy link
Contributor Author

dhrubabasu commented Dec 11, 2023

mockgen -source=vms/platformvm/block/executor/manager.go -destination=vms/platformvm/block/executor/mock_manager.go -package=executor Manager ```


// VerifyUniqueInputs verifies that the inputs are not duplicated in the
// provided blk or any of its ancestors pinned in memory.
VerifyUniqueInputs(blkID ids.ID, inputs set.Set[ids.ID]) error
Copy link
Contributor

Choose a reason for hiding this comment

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

Was going to ask about this in the previous PR I reviewed but figured it was in flight.

@StephenButtolph StephenButtolph added this pull request to the merge queue Dec 12, 2023
Merged via the queue into dev with commit 8e55f7d Dec 12, 2023
@StephenButtolph StephenButtolph deleted the surface-verify-unique-inputs branch December 12, 2023 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants