Apply suggestions from code review
"rewards/penalties" -> "deltas" in throughout test comments/descriptions Co-authored-by: Diederik Loerakker <proto@protolambda.com>
This commit is contained in:
parent
f0742b2f2d
commit
4ffa0dba60
|
@ -28,8 +28,7 @@ def run_attestation_component_deltas(spec, state, component_delta_fn, matching_a
|
|||
"""
|
||||
Run ``component_delta_fn``, yielding:
|
||||
- pre-state ('pre')
|
||||
- rewards ('rewards')
|
||||
- penalties ('penalties')
|
||||
- deltas ('deltas')
|
||||
"""
|
||||
yield 'pre', state
|
||||
|
||||
|
|
|
@ -7,8 +7,7 @@ def run_get_head_deltas(spec, state):
|
|||
"""
|
||||
Run ``get_head_deltas``, yielding:
|
||||
- pre-state ('pre')
|
||||
- rewards ('rewards')
|
||||
- penalties ('penalties')
|
||||
- deltas ('deltas')
|
||||
"""
|
||||
|
||||
yield from run_attestation_component_deltas(
|
||||
|
|
|
@ -9,8 +9,7 @@ def run_get_inactivity_penalty_deltas(spec, state):
|
|||
"""
|
||||
Run ``get_inactivity_penalty_deltas``, yielding:
|
||||
- pre-state ('pre')
|
||||
- rewards ('rewards')
|
||||
- penalties ('penalties')
|
||||
- deltas ('deltas')
|
||||
"""
|
||||
|
||||
yield 'pre', state
|
||||
|
|
|
@ -10,8 +10,7 @@ def run_get_inclusion_delay_deltas(spec, state):
|
|||
"""
|
||||
Run ``get_inclusion_delay_deltas``, yielding:
|
||||
- pre-state ('pre')
|
||||
- rewards ('rewards')
|
||||
- penalties ('penalties')
|
||||
- deltas ('deltas')
|
||||
"""
|
||||
|
||||
yield 'pre', state
|
||||
|
|
|
@ -7,8 +7,7 @@ def run_get_source_deltas(spec, state):
|
|||
"""
|
||||
Run ``get_source_deltas``, yielding:
|
||||
- pre-state ('pre')
|
||||
- rewards ('rewards')
|
||||
- penalties ('penalties')
|
||||
- deltas ('deltas')
|
||||
"""
|
||||
|
||||
yield from run_attestation_component_deltas(
|
||||
|
|
|
@ -7,8 +7,7 @@ def run_get_target_deltas(spec, state):
|
|||
"""
|
||||
Run ``get_target_deltas``, yielding:
|
||||
- pre-state ('pre')
|
||||
- rewards ('rewards')
|
||||
- penalties ('penalties')
|
||||
- deltas ('deltas')
|
||||
"""
|
||||
|
||||
yield from run_attestation_component_deltas(
|
||||
|
|
|
@ -33,7 +33,7 @@ class Deltas(Container):
|
|||
penalties: List[uint64, VALIDATOR_REGISTRY_LIMIT]
|
||||
```
|
||||
|
||||
Also available as `rewards.ssz`.
|
||||
Also available as `deltas.ssz`.
|
||||
|
||||
## Condition
|
||||
|
||||
|
|
Loading…
Reference in New Issue