Skip to content

Commit

Permalink
_deltas functions should return tuple instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Apr 25, 2019
1 parent 1845088 commit 6a92267
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 @@ -1504,7 +1504,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 @@ -1523,7 +1523,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 6a92267

Please sign in to comment.