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

Fix for coin not found issue. #971

Merged
merged 3 commits into from
Jan 29, 2021
Merged

Fix for coin not found issue. #971

merged 3 commits into from
Jan 29, 2021

Conversation

levonpetrosyan93
Copy link
Contributor

@levonpetrosyan93 levonpetrosyan93 commented Jan 17, 2021

  • Fix for sigma hd mint bug, where coin group id is not being set, it results an coin not found in chin issue during Lelantus joinsplit creation, The reason wast that, setting group id in SetMintSeedSeen() was missing, and it was remaining -1 in sum circumstances, the code is adding that,
  • Making error messages more accurate.


int id;
std::tie(std::ignore, id) = sigma::CSigmaState::GetState()->GetMintedCoinHeightAndId(sigma::PublicCoin(bnValue, denom));

// Create mint object
CHDMint dMint(mintCount, seedId, hashSerial, bnValue);
int64_t amount;
DenominationToInteger(denom, amount);
dMint.SetAmount(amount);
dMint.SetHeight(nHeight);
Copy link
Contributor

Choose a reason for hiding this comment

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

nHeight is passed to this function as const int & which is something really weird. Please change it to just int

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay,

@lgtm-com
Copy link

lgtm-com bot commented Jan 28, 2021

This pull request introduces 3 alerts when merging 8fd9be8 into 5525561 - view on LGTM.com

new alerts:

  • 3 for Unused static function

@reubenyap reubenyap merged commit 40e9600 into master Jan 29, 2021
@reubenyap reubenyap deleted the coin_notfound_fix branch January 29, 2021 15:30
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.

4 participants