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: add logging of cancelled outputs when transaction is rejected #3863

Merged

Conversation

philipr-za
Copy link
Contributor

Description

This PR just adds some logging of which outputs were specifically cancelled when a transaction is reject by the base node. In addition when an output is marked as Unspent we also clear the Mined In Block field which will result in that output being revalidated the next time a validation is done.

This PR just adds some logging of which outputs were specifically cancelled when a transaction is reject by the base node. In addition when an output is marked as Unspent we also clear the Mined In Block field which will result in that output being revalidated the next time a validation is done.
@aviator-app aviator-app bot merged commit d28703d into tari-project:development Feb 22, 2022
stringhandler pushed a commit that referenced this pull request Sep 16, 2022
…lled (#4686)

Description
---

- Sets output `mined_height` in addition to `mined_in_block`  to NULL when cancelling pending transactions
- renames `set_output_to_unmined` to `set_output_to_unmined_and_invalid`

Motivation and Context
---
This can cause #4670 and was introduced in #3863

`set_output_to_unmined` also marks the output as invalid which is unexpected given the name. 

How Has This Been Tested?
---
Additional basic test for `set_output_to_unmined`
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