Skip to content

Conversation

@random-zebra
Copy link

This fixes zerocoin mints and/or spends tx identification considering the fact that a transaction can have multiple zerocoin spend inputs and multiple zerocoin mint outputs.

…erocoinMint

- uniform IsZerocoinSpend/IsZerocoinMint CScript functions
- refactor CTxIn::IsZerocoinSpend / CTxOut::IsZerocoinMint encapsulating CScript methods
- add CTransaction methods: HasZerocoinMintOutputs / HasZerocoinSpendInputs
- refactor CTransaction::ContainsZerocoins from previous 'HasZerocoin' functions
- fix implementation of CTransaction::GetZerocoinMinted (from CTxOut)
- remove extra checks for empty scripts (as those are done in CScript functions)
@random-zebra random-zebra added this to the 3.3.0 milestone May 8, 2019
@random-zebra random-zebra requested a review from furszy May 8, 2019 14:12
@random-zebra random-zebra self-assigned this May 8, 2019
@ghost ghost added the review label May 8, 2019
@random-zebra random-zebra changed the title [Zerocoin] remove CTransaction::IsZerocoinSpend and CTransaction::IsZ… [Zerocoin] remove CTransaction::IsZerocoinSpend/IsZerocoinMint May 8, 2019
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

code looks good and PoS/zPoS functional test are passing 👍 . Will play a little bit more with this before totally approve it.

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.

ACK f14569f

@furszy furszy self-requested a review May 13, 2019 19:27
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

ACK f14569f

@Fuzzbawls Fuzzbawls added the zPiv label May 14, 2019
Copy link

@Mrs-X Mrs-X left a comment

Choose a reason for hiding this comment

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

MUCH better readable code now 👍

utACK

@random-zebra random-zebra merged commit f14569f into PIVX-Project:master May 14, 2019
random-zebra added a commit that referenced this pull request May 14, 2019
…nMint

f14569f [Zerocoin] remove CTransaction::IsZerocoinSpend and CTransaction::IsZerocoinMint (random-zebra)

Tree-SHA512: 0e7ab5ee37215454af1b09d25454bedaf8f92baf0ca598d5c639bb1b6f642ca93d21a8d2707af3c4cece06d7b6cd98a019e8b4c16712d774f23b5b41ee059a57
@ghost ghost removed the review label May 14, 2019
@random-zebra random-zebra deleted the 2019_isZerocoin2 branch September 24, 2020 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants