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

feat: make sure duplication check happens first in mempool #4627

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

Changes the order of validation in mempool to check the excess signature before checking the inputs.

Motivation and Context

When receiving old transactions, if we check the inputs first, the tx will fail on input validation, and we flag this as a transaction that double spends some input.
This is incorrect as it's a rebroadcast of an old already mined transaction. So we check the kernel_excess signature first, and if this is already contained in the blockchain, we just print out a debug message saying we received an old already mined kernel.

@stringhandler stringhandler merged commit 23e4894 into tari-project:development Sep 7, 2022
@SWvheerden SWvheerden deleted the sw_change_mempool_order branch September 14, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants