@@ -37,6 +37,7 @@ def get_execution_payload_header(spec, execution_payload):
3737 if is_post_electra (spec ):
3838 payload_header .deposit_receipts_root = spec .hash_tree_root (execution_payload .deposit_receipts )
3939 payload_header .withdrawal_requests_root = spec .hash_tree_root (execution_payload .withdrawal_requests )
40+ payload_header .consolidation_requests_root = spec .hash_tree_root (execution_payload .consolidation_requests )
4041 return payload_header
4142
4243
@@ -59,7 +60,8 @@ def compute_el_header_block_hash(spec,
5960 transactions_trie_root ,
6061 withdrawals_trie_root = None ,
6162 deposit_receipts_trie_root = None ,
62- withdrawal_requests_root = None ):
63+ withdrawal_requests_root = None ,
64+ consolidation_requests_root = None ):
6365 """
6466 Computes the RLP execution block hash described by an `ExecutionPayloadHeader`.
6567 """
@@ -110,6 +112,8 @@ def compute_el_header_block_hash(spec,
110112 execution_payload_header_rlp .append ((Binary (32 , 32 ), deposit_receipts_trie_root ))
111113 # withdrawal requests root
112114 execution_payload_header_rlp .append ((Binary (32 , 32 ), withdrawal_requests_root ))
115+ # consolidation requests root
116+ execution_payload_header_rlp .append ((Binary (32 , 32 ), consolidation_requests_root ))
113117
114118 sedes = List ([schema for schema , _ in execution_payload_header_rlp ])
115119 values = [value for _ , value in execution_payload_header_rlp ]
0 commit comments