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

High/low balance separation #728

Merged
merged 13 commits into from
Mar 21, 2019
Merged

High/low balance separation #728

merged 13 commits into from
Mar 21, 2019

Conversation

vbuterin
Copy link
Contributor

@vbuterin vbuterin commented Mar 7, 2019

See #685 for reasoning


````python
def decrease_balance(state: BeaconState, index: int, delta: int) -> None:
set_balance(state, index, get_balance(state, index) - delta)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider checking for underflows here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested the same in #727 😄

@djrtwo djrtwo changed the base branch from vbuterin-patch-7 to dev March 7, 2019 17:14
@djrtwo
Copy link
Contributor

djrtwo commented Mar 7, 2019

switched to be based on dev since just merged in #711

@djrtwo djrtwo merged commit c7172c4 into dev Mar 21, 2019
@djrtwo djrtwo deleted the vbuterin-patch-3 branch March 21, 2019 21:45
sorpaas added a commit to paritytech/shasper that referenced this pull request May 2, 2019
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.

None yet

4 participants