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

fix: check for previously cancelled completed txn before accepting a repeat message #3542

Merged

Conversation

philipr-za
Copy link
Contributor

Description

When handling a potentially repeated inbound transaction message there was a check for previously cancelled PENDING transactions but this did not check for a previously cancelled completed transaction.
This can occur if a transaction was completed and got rejected by the mempool. If this transaction exists then we should not add the pending transaction to our list.

This PR updates the check for previously cancelled transactions to include completed transactions.

How Has This Been Tested?

cargo test

…repeat

When handling a potentially repeated inbound transaction message there was a check for previously cancelled PENDING transactions but this did not check for a previously cancelled completed transaction.
This can occur if a transaction was completed and got rejected by the mempool. If this transaction exists then we should not add the pending transaction to our list.

This PR updates the check for previously cancelled transactions to include completed transactions.
@aviator-app aviator-app bot merged commit 911b83b into tari-project:development Nov 8, 2021
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.

2 participants