Skip to content

Commit 8009033

Browse files
fix: FILTER_REQUEST_BATCH_SIZE should be 1000, not 100 (#260)
* fix: FILTER_REQUEST_BATCH_SIZE should be 1000, not 100. * chore: remove unused constant
1 parent 1439955 commit 8009033

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,5 @@ pub use types::{
3737
};
3838
pub use types::{
3939
DEFAULT_FILTER_SYNC_RANGE, FILTER_BATCH_SIZE, FILTER_REQUEST_BATCH_SIZE, FILTER_RETRY_DELAY_MS,
40-
MAX_CONCURRENT_FILTER_REQUESTS, MAX_FILTER_REQUEST_SIZE, REQUEST_TIMEOUT_SECONDS,
41-
SYNC_TIMEOUT_SECONDS,
40+
MAX_CONCURRENT_FILTER_REQUESTS, REQUEST_TIMEOUT_SECONDS, SYNC_TIMEOUT_SECONDS,
4241
};

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ pub const SYNC_TIMEOUT_SECONDS: u64 = 5;
2020
pub const DEFAULT_FILTER_SYNC_RANGE: u32 = 100;
2121

2222
/// Batch size for compact filter requests (CFilters).
23-
pub const FILTER_REQUEST_BATCH_SIZE: u32 = 100;
24-
25-
/// Maximum filters per CFilter request (Dash Core limit).
26-
pub const MAX_FILTER_REQUEST_SIZE: u32 = 1000;
23+
pub const FILTER_REQUEST_BATCH_SIZE: u32 = 1000;
2724

2825
/// Maximum concurrent filter batches allowed.
2926
pub const MAX_CONCURRENT_FILTER_REQUESTS: usize = 50;

0 commit comments

Comments
 (0)