mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-01 05:14:49 +00:00
minor lint
This commit is contained in:
parent
7d3147d418
commit
dad89ae926
@ -48,16 +48,9 @@ def run_attester_slashing_processing(state, attester_slashing, valid=True):
|
|||||||
|
|
||||||
if slashed_index != proposer_index:
|
if slashed_index != proposer_index:
|
||||||
# lost whistleblower reward
|
# lost whistleblower reward
|
||||||
assert (
|
assert get_balance(state, slashed_index) < pre_slashed_balance
|
||||||
get_balance(state, slashed_index) <
|
|
||||||
pre_slashed_balance
|
|
||||||
)
|
|
||||||
|
|
||||||
# gained whistleblower reward
|
# gained whistleblower reward
|
||||||
assert (
|
assert get_balance(state, proposer_index) > pre_proposer_balance
|
||||||
get_balance(state, proposer_index) >
|
|
||||||
pre_proposer_balance
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
# gained rewards for all slashings, which may include others. And only lost that of themselves.
|
# gained rewards for all slashings, which may include others. And only lost that of themselves.
|
||||||
# Netto at least 0, if more people where slashed, a balance increase.
|
# Netto at least 0, if more people where slashed, a balance increase.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user