Skip to content

Commit

Permalink
Merge pull request #996 from ethereum/return_tuple
Browse files Browse the repository at this point in the history
`_deltas` functions should return `Tuple` instead of `List`
  • Loading branch information
djrtwo committed Apr 26, 2019
2 parents a146f25 + 6a92267 commit b69423f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@ def get_attestation_deltas(state: BeaconState) -> Tuple[List[Gwei], List[Gwei]]:
if index not in matching_target_attesting_indices:
penalties[index] += state.validator_registry[index].effective_balance * finality_delay // INACTIVITY_PENALTY_QUOTIENT

return [rewards, penalties]
return rewards, penalties
```

```python
Expand All @@ -1521,7 +1521,7 @@ def get_crosslink_deltas(state: BeaconState) -> Tuple[List[Gwei], List[Gwei]]:
rewards[index] += base_reward * attesting_balance // committee_balance
else:
penalties[index] += base_reward
return [rewards, penalties]
return rewards, penalties
```

Run the following function:
Expand Down

0 comments on commit b69423f

Please sign in to comment.