Submit a new payload to the Engine API
(
&self,
payload: BaseExecutionPayloadV4,
versioned_hashes: Vec<B256>,
parent_beacon_block_root: B256,
execution_requests: Requests,
)
| 151 | |
| 152 | /// Submit a new payload to the Engine API |
| 153 | pub async fn new_payload( |
| 154 | &self, |
| 155 | payload: BaseExecutionPayloadV4, |
| 156 | versioned_hashes: Vec<B256>, |
| 157 | parent_beacon_block_root: B256, |
| 158 | execution_requests: Requests, |
| 159 | ) -> eyre::Result<PayloadStatus> { |
| 160 | debug!(timestamp = %chrono::Utc::now(), "Submitting new payload"); |
| 161 | Ok(BaseEngineApiClient::<BaseEngineTypes>::new_payload_v4( |
| 162 | &self.client().await, |
| 163 | payload, |
| 164 | versioned_hashes, |
| 165 | parent_beacon_block_root, |
| 166 | execution_requests, |
| 167 | ) |
| 168 | .await?) |
| 169 | } |
| 170 | |
| 171 | /// Update forkchoice on the Engine API |
| 172 | pub async fn update_forkchoice( |
no test coverage detected