Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions dash-spv/src/sync/message_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,20 +629,6 @@ impl<
stats_lock.last_filter_received_time = Some(std::time::Instant::now());
}

// Get the shared filter heights arc from stats
let stats_lock = self.stats.read().await;
let received_filter_heights = stats_lock.received_filter_heights.clone();
drop(stats_lock); // Release the stats lock before acquiring the mutex

// Now lock the heights and insert
let mut heights = received_filter_heights.lock().await;
heights.insert(height);
tracing::trace!(
"📊 Recorded filter received at height {} for block {}",
height,
cfilter.block_hash
);

if matches {
// Update filter match statistics
{
Expand Down