Skip to content

[Main] Check whether tx is in chain in ContextualCheckZerocoinMint().#610

Merged
presstab merged 1 commit intoPIVX-Project:masterfrom
presstab:contextualcheckzerocoinmint
May 14, 2018
Merged

[Main] Check whether tx is in chain in ContextualCheckZerocoinMint().#610
presstab merged 1 commit intoPIVX-Project:masterfrom
presstab:contextualcheckzerocoinmint

Conversation

@presstab
Copy link

This fixes issues that certain wallets have had with reorgs where the new blocks are rejected because the mint in the zerocoindb was not properly purged.

@ghost ghost assigned presstab May 11, 2018
@ghost ghost added the review label May 11, 2018
@Fuzzbawls
Copy link
Collaborator

ACK c4141aa

Small note however: wallets that already have a block marked as invalid will need to use reconsiderblock to have it checked again.

@Fuzzbawls Fuzzbawls changed the title Check whether tx is in chain in ContextualCheckZerocoinMint(). [Main] Check whether tx is in chain in ContextualCheckZerocoinMint(). May 12, 2018
Copy link

@Warrows Warrows left a comment

Choose a reason for hiding this comment

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

utACK

@presstab presstab merged commit c4141aa into PIVX-Project:master May 14, 2018
presstab added a commit that referenced this pull request May 14, 2018
…ocoinMint().

c4141aa Check whether tx is in chain in ContextualCheckZerocoinMint(). (presstab)

Tree-SHA512: 6536bb9b49ae8548b8ce4840df87a0d1384b50bfca669eedffd541838345c476e166a62aa89d4022e306822bb2063bc9e509347fdd366aaa1a9a62e434b84e35
@ghost ghost removed the review label May 14, 2018
//See if this coin has already been added to the blockchain
uint256 txid;
if(zerocoinDB->ReadCoinMint(coin.getValue(), txid))
int nHeight;
Copy link

@Warrows Warrows Jun 20, 2018

Choose a reason for hiding this comment

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

Shouldn't nHeight be given a value here?

@Warrows Warrows mentioned this pull request Jun 23, 2018
@Fuzzbawls Fuzzbawls added this to the 3.1.1 milestone Jun 28, 2018
Fuzzbawls pushed a commit to Fuzzbawls/PIVX that referenced this pull request Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants