@@ -31,8 +31,8 @@ def get_execution_payload_header(spec, execution_payload):
31
31
if is_post_capella (spec ):
32
32
payload_header .withdrawals_root = spec .hash_tree_root (execution_payload .withdrawals )
33
33
if is_post_deneb (spec ):
34
- payload_header .excess_data_gas = execution_payload .excess_data_gas
35
34
payload_header .data_gas_used = execution_payload .data_gas_used
35
+ payload_header .excess_data_gas = execution_payload .excess_data_gas
36
36
if is_post_eip6110 (spec ):
37
37
payload_header .deposit_receipts_root = spec .hash_tree_root (execution_payload .deposit_receipts )
38
38
return payload_header
@@ -99,8 +99,8 @@ def compute_el_header_block_hash(spec,
99
99
execution_payload_header_rlp .append ((Binary (32 , 32 ), withdrawals_trie_root ))
100
100
if is_post_deneb (spec ):
101
101
# excess_data_gas
102
- execution_payload_header_rlp .append ((big_endian_int , payload_header .excess_data_gas ))
103
102
execution_payload_header_rlp .append ((big_endian_int , payload_header .data_gas_used ))
103
+ execution_payload_header_rlp .append ((big_endian_int , payload_header .excess_data_gas ))
104
104
if is_post_eip6110 (spec ):
105
105
# deposit_receipts_root
106
106
assert deposit_receipts_trie_root is not None
@@ -203,8 +203,8 @@ def build_empty_execution_payload(spec, state, randao_mix=None):
203
203
if is_post_capella (spec ):
204
204
payload .withdrawals = spec .get_expected_withdrawals (state )
205
205
if is_post_deneb (spec ):
206
- payload .excess_data_gas = 0
207
206
payload .data_gas_used = 0
207
+ payload .excess_data_gas = 0
208
208
if is_post_eip6110 (spec ):
209
209
# just to be clear
210
210
payload .deposit_receipts = []
0 commit comments