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

go-kosu: update scaling methods to be consistent #243

Merged
merged 7 commits into from Aug 29, 2019

Conversation

@hrharder
Copy link
Member

hrharder commented Aug 29, 2019

Overview

Updates the scaleBalance method to do division directly with big.Int instead of using big.Rat and converting to int64 through a floating point number (potential source of non-determinism).

hrharder added 5 commits Aug 28, 2019
@hrharder hrharder requested a review from gchaincl Aug 29, 2019
packages/go-kosu/abci/rebalance.go Show resolved Hide resolved
packages/go-kosu/abci/witness.go Show resolved Hide resolved
@hrharder hrharder merged commit 9b0a46f into master Aug 29, 2019
1 check passed
1 check passed
continuous-integration/drone/pr Build is passing
Details
@hrharder hrharder deleted the refactor/go-kosu/consistent-int-scaling branch Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.