File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -945,14 +945,11 @@ def process_transaction(
945
945
coinbase_balance_after_mining_fee = get_account (
946
946
block_env .state , block_env .coinbase
947
947
).balance + U256 (transaction_fee )
948
- if coinbase_balance_after_mining_fee != 0 :
949
- set_account_balance (
950
- block_env .state ,
951
- block_env .coinbase ,
952
- coinbase_balance_after_mining_fee ,
953
- )
954
- elif account_exists_and_is_empty (block_env .state , block_env .coinbase ):
955
- destroy_account (block_env .state , block_env .coinbase )
948
+ set_account_balance (
949
+ block_env .state ,
950
+ block_env .coinbase ,
951
+ coinbase_balance_after_mining_fee ,
952
+ )
956
953
957
954
for address in tx_output .accounts_to_delete :
958
955
destroy_account (block_env .state , address )
@@ -997,9 +994,6 @@ def increase_recipient_balance(recipient: Account) -> None:
997
994
998
995
modify_state (block_env .state , wd .address , increase_recipient_balance )
999
996
1000
- if account_exists_and_is_empty (block_env .state , wd .address ):
1001
- destroy_account (block_env .state , wd .address )
1002
-
1003
997
1004
998
def check_gas_limit (gas_limit : Uint , parent_gas_limit : Uint ) -> bool :
1005
999
"""
You can’t perform that action at this time.
0 commit comments