From dad89ae926988fa4a484c301e24f57646d8980a2 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Tue, 21 May 2019 23:20:12 -0600 Subject: [PATCH] minor lint --- .../test_process_attester_slashing.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test_libs/pyspec/eth2spec/test/block_processing/test_process_attester_slashing.py b/test_libs/pyspec/eth2spec/test/block_processing/test_process_attester_slashing.py index 1481c2b87..28e232277 100644 --- a/test_libs/pyspec/eth2spec/test/block_processing/test_process_attester_slashing.py +++ b/test_libs/pyspec/eth2spec/test/block_processing/test_process_attester_slashing.py @@ -48,16 +48,9 @@ def run_attester_slashing_processing(state, attester_slashing, valid=True): if slashed_index != proposer_index: # lost whistleblower reward - assert ( - get_balance(state, slashed_index) < - pre_slashed_balance - ) - + assert get_balance(state, slashed_index) < pre_slashed_balance # gained whistleblower reward - assert ( - get_balance(state, proposer_index) > - pre_proposer_balance - ) + assert get_balance(state, proposer_index) > pre_proposer_balance else: # 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.