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:
Danny Ryan 2020-05-05 16:31:40 -06:00 committed by GitHub
parent f0742b2f2d
commit 4ffa0dba60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 13 deletions

View File

@ -28,8 +28,7 @@ def run_attestation_component_deltas(spec, state, component_delta_fn, matching_a
""" """
Run ``component_delta_fn``, yielding: Run ``component_delta_fn``, yielding:
- pre-state ('pre') - pre-state ('pre')
- rewards ('rewards') - deltas ('deltas')
- penalties ('penalties')
""" """
yield 'pre', state yield 'pre', state

View File

@ -7,8 +7,7 @@ def run_get_head_deltas(spec, state):
""" """
Run ``get_head_deltas``, yielding: Run ``get_head_deltas``, yielding:
- pre-state ('pre') - pre-state ('pre')
- rewards ('rewards') - deltas ('deltas')
- penalties ('penalties')
""" """
yield from run_attestation_component_deltas( yield from run_attestation_component_deltas(

View File

@ -9,8 +9,7 @@ def run_get_inactivity_penalty_deltas(spec, state):
""" """
Run ``get_inactivity_penalty_deltas``, yielding: Run ``get_inactivity_penalty_deltas``, yielding:
- pre-state ('pre') - pre-state ('pre')
- rewards ('rewards') - deltas ('deltas')
- penalties ('penalties')
""" """
yield 'pre', state yield 'pre', state

View File

@ -10,8 +10,7 @@ def run_get_inclusion_delay_deltas(spec, state):
""" """
Run ``get_inclusion_delay_deltas``, yielding: Run ``get_inclusion_delay_deltas``, yielding:
- pre-state ('pre') - pre-state ('pre')
- rewards ('rewards') - deltas ('deltas')
- penalties ('penalties')
""" """
yield 'pre', state yield 'pre', state

View File

@ -7,8 +7,7 @@ def run_get_source_deltas(spec, state):
""" """
Run ``get_source_deltas``, yielding: Run ``get_source_deltas``, yielding:
- pre-state ('pre') - pre-state ('pre')
- rewards ('rewards') - deltas ('deltas')
- penalties ('penalties')
""" """
yield from run_attestation_component_deltas( yield from run_attestation_component_deltas(

View File

@ -7,8 +7,7 @@ def run_get_target_deltas(spec, state):
""" """
Run ``get_target_deltas``, yielding: Run ``get_target_deltas``, yielding:
- pre-state ('pre') - pre-state ('pre')
- rewards ('rewards') - deltas ('deltas')
- penalties ('penalties')
""" """
yield from run_attestation_component_deltas( yield from run_attestation_component_deltas(

View File

@ -33,7 +33,7 @@ class Deltas(Container):
penalties: List[uint64, VALIDATOR_REGISTRY_LIMIT] penalties: List[uint64, VALIDATOR_REGISTRY_LIMIT]
``` ```
Also available as `rewards.ssz`. Also available as `deltas.ssz`.
## Condition ## Condition