|
1 |
| -use futures_util::Future; |
2 |
| -use futures_util::FutureExt; |
3 |
| -use reth::providers::BlockReaderIdExt; |
4 |
| -use reth::{providers::StateProviderFactory, tasks::TaskSpawner}; |
5 |
| -use reth_basic_payload_builder::HeaderForPayload; |
6 |
| -use reth_basic_payload_builder::{BasicPayloadJobGeneratorConfig, PayloadConfig}; |
7 |
| -use reth_node_api::PayloadBuilderAttributes; |
8 |
| -use reth_node_api::PayloadKind; |
9 |
| -use reth_payload_builder::PayloadJobGenerator; |
10 |
| -use reth_payload_builder::{KeepPayloadJobAlive, PayloadBuilderError, PayloadJob}; |
| 1 | +use futures_util::{Future, FutureExt}; |
| 2 | +use reth::{ |
| 3 | + providers::{BlockReaderIdExt, StateProviderFactory}, |
| 4 | + tasks::TaskSpawner, |
| 5 | +}; |
| 6 | +use reth_basic_payload_builder::{BasicPayloadJobGeneratorConfig, HeaderForPayload, PayloadConfig}; |
| 7 | +use reth_node_api::{PayloadBuilderAttributes, PayloadKind}; |
| 8 | +use reth_payload_builder::{ |
| 9 | + KeepPayloadJobAlive, PayloadBuilderError, PayloadJob, PayloadJobGenerator, |
| 10 | +}; |
11 | 11 | use reth_payload_primitives::BuiltPayload;
|
12 | 12 | use reth_primitives_traits::HeaderTy;
|
13 | 13 | use reth_revm::cached::CachedReads;
|
14 |
| -use std::sync::{Arc, Mutex}; |
15 |
| -use std::time::SystemTime; |
16 |
| -use std::time::UNIX_EPOCH; |
17 |
| -use tokio::sync::oneshot; |
18 |
| -use tokio::sync::Notify; |
19 |
| -use tokio::time::Duration; |
20 |
| -use tokio::time::Sleep; |
| 14 | +use std::{ |
| 15 | + sync::{Arc, Mutex}, |
| 16 | + time::{SystemTime, UNIX_EPOCH}, |
| 17 | +}; |
| 18 | +use tokio::{ |
| 19 | + sync::{oneshot, Notify}, |
| 20 | + time::{Duration, Sleep}, |
| 21 | +}; |
21 | 22 | use tokio_util::sync::CancellationToken;
|
22 | 23 | use tracing::info;
|
23 | 24 |
|
@@ -424,14 +425,15 @@ mod tests {
|
424 | 425 | use reth::tasks::TokioTaskExecutor;
|
425 | 426 | use reth_chain_state::ExecutedBlockWithTrieUpdates;
|
426 | 427 | use reth_node_api::NodePrimitives;
|
427 |
| - use reth_optimism_payload_builder::payload::OpPayloadBuilderAttributes; |
428 |
| - use reth_optimism_payload_builder::OpPayloadPrimitives; |
| 428 | + use reth_optimism_payload_builder::{payload::OpPayloadBuilderAttributes, OpPayloadPrimitives}; |
429 | 429 | use reth_optimism_primitives::OpPrimitives;
|
430 | 430 | use reth_primitives::SealedBlock;
|
431 | 431 | use reth_provider::test_utils::MockEthProvider;
|
432 | 432 | use reth_testing_utils::generators::{random_block_range, BlockRangeParams};
|
433 |
| - use tokio::task; |
434 |
| - use tokio::time::{sleep, Duration}; |
| 433 | + use tokio::{ |
| 434 | + task, |
| 435 | + time::{sleep, Duration}, |
| 436 | + }; |
435 | 437 |
|
436 | 438 | #[tokio::test]
|
437 | 439 | async fn test_block_cell_wait_for_value() {
|
|
0 commit comments