Skip to content

Commit 1472af9

Browse files
dcgclaude
authored andcommitted
chore(dash-spv): remove more vestigial test code
- Removed phase2_integration_test.rs and phase3_integration_test.rs These tests were for deleted features (parallel, recovery, scheduler, batching) - Fixed some import paths in chainlock_validation_test.rs - Updated DashSpvClient::new() calls to use single-argument API Progress: Reduced test errors from 227 to 212 Main code still compiles and baseline sync verified: Headers: 1306365 🤖 Generated with Claude Code: https://claude.ai/code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ab316e5 commit 1472af9

File tree

3 files changed

+7
-341
lines changed

3 files changed

+7
-341
lines changed

dash-spv/tests/chainlock_validation_test.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ use dash_spv::storage::{DiskStorageManager, StorageManager};
77
use dash_spv::types::{ChainState, ValidationMode};
88
use dashcore::block::Header;
99
use dashcore::blockdata::constants::genesis_block;
10-
use dashcore::network::Network;
10+
use dashcore::Network;
1111
use dashcore::sml::masternode_list_engine::MasternodeListEngine;
12-
use dashcore::{BlockHash, ChainLock, UInt256};
12+
use dashcore::{BlockHash, ChainLock};
1313
use std::sync::Arc;
1414
use std::time::Duration;
1515
use tempfile::TempDir;
@@ -157,7 +157,7 @@ async fn test_chainlock_validation_without_masternode_engine() {
157157
};
158158

159159
// Create the SPV client
160-
let mut client = DashSpvClient::new(config, storage, network).await.unwrap();
160+
let mut client = DashSpvClient::new(config).await.unwrap();
161161

162162
// Add a test header to storage
163163
let genesis = genesis_block(Network::Dash).header;
@@ -209,7 +209,7 @@ async fn test_chainlock_validation_with_masternode_engine() {
209209
};
210210

211211
// Create the SPV client
212-
let mut client = DashSpvClient::new(config, storage, network).await.unwrap();
212+
let mut client = DashSpvClient::new(config).await.unwrap();
213213

214214
// Add genesis header
215215
let storage = client.storage_mut();
@@ -267,7 +267,7 @@ async fn test_chainlock_queue_and_process_flow() {
267267
};
268268

269269
// Create the SPV client
270-
let client = DashSpvClient::new(config, storage, network).await.unwrap();
270+
let client = DashSpvClient::new(config).await.unwrap();
271271
let chainlock_manager = client.chainlock_manager();
272272

273273
// Queue multiple ChainLocks
@@ -322,7 +322,7 @@ async fn test_chainlock_manager_cache_operations() {
322322
};
323323

324324
// Create the SPV client
325-
let client = DashSpvClient::new(config, storage, network).await.unwrap();
325+
let client = DashSpvClient::new(config).await.unwrap();
326326
let chainlock_manager = client.chainlock_manager();
327327

328328
// Add test headers
@@ -376,7 +376,7 @@ async fn test_client_chainlock_update_flow() {
376376
};
377377

378378
// Create the SPV client
379-
let mut client = DashSpvClient::new(config, storage, network).await.unwrap();
379+
let mut client = DashSpvClient::new(config).await.unwrap();
380380

381381
// Initially, update should fail (no masternode engine)
382382
let updated = client.update_chainlock_validation().unwrap();

dash-spv/tests/phase2_integration_test.rs

Lines changed: 0 additions & 162 deletions
This file was deleted.

dash-spv/tests/phase3_integration_test.rs

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)