-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Conversation
levonpetrosyan93
commented
Jan 17, 2021
•
edited
Loading
edited
- 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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay,
928fcc6
to
8fd9be8
Compare
This pull request introduces 3 alerts when merging 8fd9be8 into 5525561 - view on LGTM.com new alerts:
|