Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preventing surges in sigma #462

Merged
merged 20 commits into from Jun 21, 2019
Merged

Preventing surges in sigma #462

merged 20 commits into from Jun 21, 2019

Conversation

a-bezrukov
Copy link
Contributor

No description provided.

@a-bezrukov
Copy link
Contributor Author

Ready to review. The test failure caused by the HD mint test failure.

src/zerocoin_v3.cpp Show resolved Hide resolved
src/zerocoin_v3.cpp Outdated Show resolved Hide resolved
src/zerocoin_v3.cpp Show resolved Hide resolved
src/hash_functions.cpp Show resolved Hide resolved
src/test/sigma_state_tests.cpp Show resolved Hide resolved
@@ -0,0 +1,59 @@
#ifndef HASH_FUNCTIONS_H__
#define HASH_FUNCTIONS_H__

Copy link
Contributor

Choose a reason for hiding this comment

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

When renaming a file you need to change the constants at the top

void CSigmaState::Containers::AddMint(sigma::PublicCoin const & pubCoin, CMintedCoinInfo const & coinInfo) {
mintedPubCoins.insert(std::make_pair(pubCoin, coinInfo));
mintMetaInfo[coinInfo.coinGroupId][coinInfo.denomination] += 1;
CheckSurgeCondition(coinInfo.coinGroupId, coinInfo.denomination);
Copy link
Contributor

Choose a reason for hiding this comment

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

How adding a mint can create a surge condition? Same for removing a spend

src/zerocoin_v3.cpp Show resolved Hide resolved
riordant
riordant previously approved these changes Jun 21, 2019
psolstice
psolstice previously approved these changes Jun 21, 2019
Copy link
Contributor

@psolstice psolstice left a comment

Choose a reason for hiding this comment

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

There are possible improvements to be done later. It will work for now

Copy link
Contributor

@psolstice psolstice left a comment

Choose a reason for hiding this comment

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

Will work

@a-bezrukov a-bezrukov merged commit 90a1d32 into sigma Jun 21, 2019
@a-bezrukov a-bezrukov deleted the over_sigma branch June 21, 2019 10:46
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.

None yet

5 participants