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: better coinbase handling (see issue #4353) #4386

Merged

Conversation

jorgeantonio21
Copy link
Contributor

@jorgeantonio21 jorgeantonio21 commented Aug 4, 2022

Description

The current coinbase handling relies on height and amount. If a match is not found for that height and amount, then it creates a new tx, deleting all the existing coinbases for that height. This is a problem, as miners can be working concurrently on a (to-be deleted) coinbase. This PR addresses this issue (see #4353).

Motivation and Context

Fixes #4353.

How Has This Been Tested?

Unit and cucumber tests

@jorgeantonio21 jorgeantonio21 changed the title fix: Better coinbase handling (see issue #4353) fix: better coinbase handling (see issue #4353) Aug 4, 2022
@jorgeantonio21 jorgeantonio21 marked this pull request as ready for review August 4, 2022 10:50
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

Tested and works (had to fix the code a bit) - please fix the compile/clippy errors and we can merge

@aviator-app aviator-app bot merged commit 5581044 into tari-project:development Aug 9, 2022
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.

Better coinbase handling in wallet
3 participants