@@ -18,6 +18,7 @@ engine_newPayloadV3 : This is called to store(not commit) and validate blocks re
1818
1919*/
2020use alloy_eips:: eip4895:: Withdrawal ;
21+ use alloy_primitives:: { Address , FixedBytes } ;
2122use alloy_provider:: { ProviderBuilder , RootProvider , ext:: EngineApi } ;
2223use alloy_rpc_types_engine:: {
2324 ExecutionPayloadEnvelopeV4 , ForkchoiceState , PayloadAttributes , PayloadId , PayloadStatus ,
@@ -34,6 +35,8 @@ pub trait EngineClient: Clone + Send + Sync + 'static {
3435 fork_choice_state : ForkchoiceState ,
3536 timestamp : u64 ,
3637 withdrawals : Vec < Withdrawal > ,
38+ suggested_fee_recipient : Address ,
39+ parent_beacon_block_root : Option < FixedBytes < 32 > > ,
3740 #[ cfg( feature = "bench" ) ] height : u64 ,
3841 ) -> impl Future < Output = Option < PayloadId > > + Send ;
3942
@@ -90,16 +93,18 @@ impl EngineClient for RethEngineClient {
9093 fork_choice_state : ForkchoiceState ,
9194 timestamp : u64 ,
9295 withdrawals : Vec < Withdrawal > ,
96+ suggested_fee_recipient : Address ,
97+ parent_beacon_block_root : Option < FixedBytes < 32 > > ,
9398 #[ cfg( feature = "bench" ) ] _height : u64 ,
9499 ) -> Option < PayloadId > {
95100 let payload_attributes = PayloadAttributes {
96101 timestamp,
97102 prev_randao : [ 0 ; 32 ] . into ( ) ,
98103 // todo(dalton): this should be the validators public key
99- suggested_fee_recipient : [ 1 ; 20 ] . into ( ) ,
104+ suggested_fee_recipient,
100105 withdrawals : Some ( withdrawals) ,
101106 // todo(dalton): we should make this something that we can associate with the simplex height
102- parent_beacon_block_root : Some ( [ 1 ; 32 ] . into ( ) ) ,
107+ parent_beacon_block_root,
103108 } ;
104109
105110 let res = match self
@@ -195,7 +200,7 @@ pub mod benchmarking {
195200 use crate :: { Block , Digest } ;
196201 use alloy_eips:: eip4895:: Withdrawal ;
197202 use alloy_eips:: eip7685:: Requests ;
198- use alloy_primitives:: { B256 , FixedBytes , U256 } ;
203+ use alloy_primitives:: { Address , B256 , FixedBytes , U256 } ;
199204 use alloy_provider:: { ProviderBuilder , RootProvider , ext:: EngineApi } ;
200205 use alloy_rpc_types_engine:: {
201206 ExecutionPayloadEnvelopeV3 , ExecutionPayloadEnvelopeV4 , ExecutionPayloadV3 ,
@@ -230,6 +235,8 @@ pub mod benchmarking {
230235 _fork_choice_state : ForkchoiceState ,
231236 _timestamp : u64 ,
232237 _withdrawals : Vec < Withdrawal > ,
238+ _suggested_fee_recipient : Address ,
239+ _parent_beacon_block_hash : Option < FixedBytes < 32 > > ,
233240 #[ cfg( feature = "bench" ) ] height : u64 ,
234241 ) -> Option < PayloadId > {
235242 let next_block_num = height + 1 ;
0 commit comments