-
Notifications
You must be signed in to change notification settings - Fork 833
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
Fixing subtle bug in genesis verification post-export #374
Conversation
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.
ACK. I'll add tests to the genesis.go file in a bit
for _, actionCompleted := range cr.ActionsCompleted { | ||
if !actionCompleted { | ||
// NOTE: only add the initial claimable amount per action for the ones that haven't been claimed | ||
sumUnclaimed = sumUnclaimed.Add(initialClaimablePerAction) |
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.
You have to use:
https://github.com/tharsis/evmos/blob/f5dfed87da17ee61c1338f8d70b27f26f3d1b17a/x/claims/keeper/claim.go#L11
If you don't, genesis export will fail on decay of the claims balances. It was in the previous commit for a reason.
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.
Agreed... if we can incorporate this now.. it will prevent us from having to remember that detail should we ever need to export state again in the next few months
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.
@fedekunze ^^ I'll make an updated PR to this effect
Description
While attempting to export the state to genesis and create a testnet, it was discovered that the InitGenesis.go hadn't considered and export after claims were completed.
Closes: #XXX
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
PR review checkboxes:
I have...
Unreleased
section inCHANGELOG.md
Code maintenance:
I have...
godoc
and code comments.docs/
) or specification (x/<module>/spec/
)Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.
I have...