NOTE: this should only be used for testing purposes because this doesn't have access to L1 system txs, hence on_missing_payload we return [MissingPayloadBehaviour::AwaitInProgress].
(
&self,
config: PayloadConfig<Self::Attributes, N::BlockHeader>,
)
| 279 | // NOTE: this should only be used for testing purposes because this doesn't have access to L1 |
| 280 | // system txs, hence on_missing_payload we return [MissingPayloadBehaviour::AwaitInProgress]. |
| 281 | fn build_empty_payload( |
| 282 | &self, |
| 283 | config: PayloadConfig<Self::Attributes, N::BlockHeader>, |
| 284 | ) -> Result<Self::BuiltPayload, PayloadBuilderError> { |
| 285 | let args = BuildArguments { |
| 286 | config, |
| 287 | cached_reads: Default::default(), |
| 288 | execution_cache: None, |
| 289 | trie_handle: None, |
| 290 | cancel: Default::default(), |
| 291 | best_payload: None, |
| 292 | }; |
| 293 | self.build_payload(args, |_| NoopPayloadTransactions::<Pool::Transaction>::default())? |
| 294 | .into_payload() |
| 295 | .ok_or_else(|| PayloadBuilderError::MissingPayload) |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | /// The type that builds the payload. |
nothing calls this directly
no test coverage detected