Skip to content

Commit 12a6c8e

Browse files
chore: run cargo fmt
1 parent 89741b6 commit 12a6c8e

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

dash-spv/examples/filter_sync.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
2222
)?;
2323

2424
// Create configuration with filter support
25-
let config = ClientConfig::mainnet()
26-
.without_masternodes(); // Skip masternode sync for this example
25+
let config = ClientConfig::mainnet().without_masternodes(); // Skip masternode sync for this example
2726

2827
// Create network manager
2928
let network_manager = MultiPeerNetworkManager::new(&config).await?;

dash-spv/src/client/block_processor_test.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,8 @@ mod tests {
263263
}));
264264
let storage = Arc::new(Mutex::new(MemoryStorageManager::new().await.unwrap()));
265265

266-
let processor = BlockProcessor::new(
267-
task_rx,
268-
wallet,
269-
storage,
270-
stats,
271-
event_tx,
272-
Network::Dash,
273-
);
266+
let processor =
267+
BlockProcessor::new(task_rx, wallet, storage, stats, event_tx, Network::Dash);
274268

275269
let block_hash = create_test_block(Network::Dash).block_hash();
276270
let filter_data = vec![1, 2, 3, 4, 5];

dash-spv/src/sync/filters.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//! Filter synchronization functionality.
22
33
use dashcore::{
4-
BlockHash, ScriptBuf,
54
bip158::{BlockFilterReader, Error as Bip158Error},
65
hash_types::FilterHeader,
76
network::message::NetworkMessage,
87
network::message_blockdata::Inventory,
98
network::message_filter::{CFHeaders, GetCFHeaders, GetCFilters},
9+
BlockHash, ScriptBuf,
1010
};
11-
use dashcore_hashes::{Hash, sha256d};
11+
use dashcore_hashes::{sha256d, Hash};
1212
use std::collections::{HashMap, HashSet, VecDeque};
1313
use tokio::sync::mpsc;
1414

dash-spv/src/sync/sequential/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ use transitions::TransitionManager;
3737
const CHAINLOCK_VALIDATION_MASTERNODE_OFFSET: u32 = 8;
3838

3939
/// Manages sequential synchronization of all data types
40-
pub struct SequentialSyncManager<
41-
S: StorageManager,
42-
N: NetworkManager,
43-
W: WalletInterface,
44-
> {
40+
pub struct SequentialSyncManager<S: StorageManager, N: NetworkManager, W: WalletInterface> {
4541
_phantom_s: std::marker::PhantomData<S>,
4642
_phantom_n: std::marker::PhantomData<N>,
4743
/// Current synchronization phase

0 commit comments

Comments
 (0)