Skip to content

Refactor ZC-specific staking functionality.#993

Merged
seanPhill merged 1 commit intoVeil-Project:masterfrom
Zannick:refactor
Jun 25, 2022
Merged

Refactor ZC-specific staking functionality.#993
seanPhill merged 1 commit intoVeil-Project:masterfrom
Zannick:refactor

Conversation

@Zannick
Copy link
Collaborator

@Zannick Zannick commented Apr 2, 2022

In preparation for defining a RingCTStakeInput type, move more zerocoin-specific stuff behind a CStakeInput interface.

Namely:

  • Getting the weight of the stake coin.
  • Finishing up the transaction creation (RingCT may have more to do than zerocoin here).

Also moved a variable nCredit that needs to be reset on each loop into the loop.

Not tested beyond compiling.

In preparation for defining a RingCTStakeInput type, move more
zerocoin-specific stuff behind a CStakeInput interface.
@Zannick Zannick added Component: Wallet Relating to keystore, tx creation, and balance tracking Coin Type: Zerocoin Specifically related to zerocoin Tag: PoS Related to Proof of Stake Tag: Waiting For Code Review Waiting for code review from a core developer labels Apr 2, 2022
@Zannick Zannick self-assigned this Apr 2, 2022
@WetOne
Copy link
Collaborator

WetOne commented Apr 3, 2022

utACK bfbef4f

@seanPhill seanPhill merged commit 4e1ebe8 into Veil-Project:master Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Coin Type: Zerocoin Specifically related to zerocoin Component: Wallet Relating to keystore, tx creation, and balance tracking Tag: PoS Related to Proof of Stake Tag: Waiting For Code Review Waiting for code review from a core developer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants