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

Storage Module Upgrade Part 1 #123

Merged
merged 125 commits into from
Nov 16, 2022
Merged

Storage Module Upgrade Part 1 #123

merged 125 commits into from
Nov 16, 2022

Conversation

TheMarstonConnell
Copy link
Member

@TheMarstonConnell TheMarstonConnell commented Nov 16, 2022

Bringing the storage module up to date with standards, still needs updates.

@TheMarstonConnell TheMarstonConnell added the enhancement New feature or request label Nov 16, 2022
@TheMarstonConnell TheMarstonConnell self-assigned this Nov 16, 2022
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)

k.HandleBlock(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
continue
}

ratio := siv / div

Check notice

Code scanning / CodeQL

Floating point arithmetic

Floating point arithmetic operations are not associative and a possible source of non-determinism
ctx.Logger().Error(err.Error())
continue
}
coinfloat := ratio * ff

Check notice

Code scanning / CodeQL

Floating point arithmetic

Floating point arithmetic operations are not associative and a possible source of non-determinism
@TheMarstonConnell TheMarstonConnell merged commit 2e71952 into master Nov 16, 2022
@TheMarstonConnell TheMarstonConnell changed the title Storage Module Upgrade Storage Module Upgrade Part 1 Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants