From 77fb5d6454b90f061343677d29da0e5231541936 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Tue, 30 Apr 2024 10:03:54 +0300 Subject: [PATCH] Add debug message about segment indices length --- .../src/bin/subspace-farmer/commands/shared/network.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/subspace-farmer/src/bin/subspace-farmer/commands/shared/network.rs b/crates/subspace-farmer/src/bin/subspace-farmer/commands/shared/network.rs index 37ed853d6d..1a77b01705 100644 --- a/crates/subspace-farmer/src/bin/subspace-farmer/commands/shared/network.rs +++ b/crates/subspace-farmer/src/bin/subspace-farmer/commands/shared/network.rs @@ -164,6 +164,11 @@ where let internal_result = match req { SegmentHeaderRequest::SegmentIndexes { segment_indexes } => { if segment_indexes.len() as u64 > SEGMENT_HEADER_NUMBER_LIMIT { + debug!( + "segment_indexes length exceed the limit: {} ", + segment_indexes.len() + ); + return None; }