Skip to content

Conversation

apoelstra
Copy link
Member

@apoelstra apoelstra commented Jun 8, 2021

Alternative to #1006

Fixes #1008

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

utACK a70ff3c

@apoelstra
Copy link
Member Author

Lol, some of the new assertions are triggering in CI

@apoelstra
Copy link
Member Author

Sigh, so, the CCoinsView is a base class of two things -- the "UTXO set" which is saved to disk in the coinstate/ directory, where we want to erase the nonce, and the mempool tx db, where we do not want to erase the nonce (and there are existing assertions that prevent us from doing so).

@stevenroose
Copy link
Contributor

Any update on solving this?

@roconnor-blockstream
Copy link
Contributor

Why don't we want to erase it from the mempool?

@apoelstra
Copy link
Member Author

@stevenroose no update. I think it might be practically impossible.

@roconnor-blockstream because of tangled inheritance relationships between various mempool-like structures. If you do what you're suggesting you will get far away assertion failures in consensus code where they might be meaningful.

@apoelstra
Copy link
Member Author

I think we should just live with this bug.

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.

4 participants