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

remove floating point math #145

Merged
merged 8 commits into from
Dec 1, 2022
Merged

Conversation

TheMarstonConnell
Copy link
Member

@BiPhan4 can you look this over and run some tests on the reward stuff. We need unit tests on the rewards ASAP.

@BiPhan4
Copy link
Contributor

BiPhan4 commented Dec 1, 2022

@TheMarstonConnell I'll do my best sir but to be honest there is some code that I don't have any experience with. If @dahn510 can get a jump on this that would be very much appreciated.

Copy link
Member

@dahn510 dahn510 left a comment

Choose a reason for hiding this comment

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

👍

x/storage/abci.go Fixed Show fixed Hide fixed
@@ -12,5 +12,8 @@
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)

k.HandleBlock(ctx)
err := k.HandleRewardBlock(ctx)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
@TheMarstonConnell TheMarstonConnell merged commit d2b3bc4 into 1.2.0 Dec 1, 2022
@TheMarstonConnell TheMarstonConnell deleted the remove-floating-point branch December 1, 2022 17:28
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