Loose condition of effective genesis deposit

This commit is contained in:
Hsiao-Wei Wang 2019-06-21 21:49:13 -06:00
parent 8828dad786
commit 47b29c8456
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 1 additions and 1 deletions

View File

@ -1157,7 +1157,7 @@ def is_genesis_trigger(deposits: List[Deposit], timestamp: uint64, deposit_root:
# Count active validators at genesis # Count active validators at genesis
active_validator_count = 0 active_validator_count = 0
for validator in state.validators: for validator in state.validators:
if validator.effective_balance == MAX_EFFECTIVE_BALANCE: if validator.effective_balance >= MAX_EFFECTIVE_BALANCE:
active_validator_count += 1 active_validator_count += 1
# Check effective balance to trigger genesis # Check effective balance to trigger genesis