Skip to content

Commit aaa74cc

Browse files
fix warnings
1 parent 5c86456 commit aaa74cc

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

dash-spv-ffi/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ pub unsafe extern "C" fn dash_spv_ffi_client_record_send(
14511451
}
14521452
};
14531453

1454-
let txid = match Txid::from_str(txid_str) {
1454+
let _txid = match Txid::from_str(txid_str) {
14551455
Ok(t) => t,
14561456
Err(e) => {
14571457
set_last_error(&format!("Invalid txid: {}", e));

dash-spv/src/client/lifecycle.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
1111
use std::collections::HashSet;
1212
use std::sync::Arc;
13-
use std::time::Duration;
1413
use tokio::sync::{mpsc, Mutex, RwLock};
1514

1615
use crate::chain::ChainLockManager;

dash-spv/src/client/mempool.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
use std::collections::HashSet;
1010
use std::sync::Arc;
11-
use std::time::Duration;
1211

1312
use crate::error::Result;
1413
use crate::mempool_filter::MempoolFilter;

dash-spv/src/sync/filters/headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ impl<S: StorageManager + Send + Sync + 'static, N: NetworkManager + Send + Sync
11251125
storage: &mut S,
11261126
) -> SyncResult<(usize, u32)> {
11271127
// Get the original height range for this CFHeaders batch
1128-
let (original_start_height, stop_height, _header_tip_height) =
1128+
let (original_start_height, _stop_height, _header_tip_height) =
11291129
self.get_batch_height_range(cf_headers, storage).await?;
11301130

11311131
// Determine how many headers overlap with what we already have

dash-spv/src/validation/instantlock.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ impl InstantLockValidator {
152152
mod tests {
153153
use super::*;
154154
use dashcore::blockdata::constants::COIN_VALUE;
155-
use dashcore::bls_sig_utils::BLSPublicKey;
156-
use dashcore::{BlockHash, OutPoint, ScriptBuf, Transaction, TxIn, TxOut};
155+
use dashcore::{OutPoint, ScriptBuf, Transaction, TxIn, TxOut};
157156
use dashcore_hashes::{sha256d, Hash};
158157

159158
/// Helper to create a test transaction

0 commit comments

Comments
 (0)