Repository navigation
Report a reason when a duplicate pubcoin keeps a transaction out of the mempool - #1092
Open
whiskyrelaxing wants to merge 1 commit into
Open
whiskyrelaxing wants to merge 1 commit into
whiskyrelaxing wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two duplicate pubcoin checks in AcceptToMemoryPoolWorker return false
without setting CValidationState, so the caller learns that the transaction
failed and never why. Every other refusal in the same loop sets one, including
the matching pair for serials, zcspend-already-known and
zcspend-already-in-mempool.
A failed mint on 1.4.5.0 reports this:
Which is worse than confusing. CommitTransaction calls AddToWallet before it
tests the mempool, so for a mint funded from RingCT the anon wallet has already
marked the input spent. The balance drops, the transaction sits at zero
confirmations, and abandontransaction cannot release it because the flag lives
in AnonWallet mapRecords. Only rescanblockchain clears it.
#626 and #542 are the same wall with a different reason behind it, found both
times by reading debug.log.
state.Invalid forwards to DoS(0, ...), so nothing changes for peers.