Merge pull request #64 from terenc3t/patch-1

fixed typos in change_validators
This commit is contained in:
Danny Ryan 2018-10-10 14:07:12 -05:00 committed by GitHub
commit d158e11006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -605,7 +605,7 @@ def change_validators(validators):
total_balance = sum([v.balance for i, v in enumerate(validators) if i in active_validators])
# The maximum total wei that can deposit+withdraw
max_allowable_change = max(
2 * DEPOSIT_SIZE GWEI_PER_ETH,
2 * DEPOSIT_SIZE * GWEI_PER_ETH,
total_balance // MAX_VALIDATOR_CHURN_QUOTIENT
)
# Go through the list start to end depositing+withdrawing as many as possible
@ -613,7 +613,7 @@ def change_validators(validators):
for i in range(len(validators)):
if validators[i].status == PENDING_ACTIVATION:
validators[i].status = ACTIVE
total_changed += DEPOSIT_SIZE
total_changed += DEPOSIT_SIZE * GWEI_PER_ETH
add_validator_set_change_record(crystallized_state, i, validators[i].pubkey, ENTRY)
if validators[i].status == PENDING_EXIT:
validators[i].status = PENDING_WITHDRAW