|
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 |
|
@@ -428,14 +429,15 @@ mod tests { |
428 | 429 | use reth::tasks::TokioTaskExecutor; |
429 | 430 | use reth_chain_state::ExecutedBlockWithTrieUpdates; |
430 | 431 | use reth_node_api::NodePrimitives; |
431 | | - use reth_optimism_payload_builder::payload::OpPayloadBuilderAttributes; |
432 | | - use reth_optimism_payload_builder::OpPayloadPrimitives; |
| 432 | + use reth_optimism_payload_builder::{payload::OpPayloadBuilderAttributes, OpPayloadPrimitives}; |
433 | 433 | use reth_optimism_primitives::OpPrimitives; |
434 | 434 | use reth_primitives::SealedBlock; |
435 | 435 | use reth_provider::test_utils::MockEthProvider; |
436 | 436 | use reth_testing_utils::generators::{random_block_range, BlockRangeParams}; |
437 | | - use tokio::task; |
438 | | - use tokio::time::{sleep, Duration}; |
| 437 | + use tokio::{ |
| 438 | + task, |
| 439 | + time::{sleep, Duration}, |
| 440 | + }; |
439 | 441 |
|
440 | 442 | #[tokio::test] |
441 | 443 | async fn test_block_cell_wait_for_value() { |
|
0 commit comments