We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa74cc commit bb0d8c1Copy full SHA for bb0d8c1
dash-spv/src/storage/disk/headers.rs
@@ -265,7 +265,7 @@ impl DiskStorageManager {
265
drop(cached_tip);
266
267
// Save dirty segments periodically (every 1000 headers)
268
- if headers.len() >= 1000 || blockchain_height % 1000 == 0 {
+ if headers.len() >= 1000 || blockchain_height.is_multiple_of(1000) {
269
super::segments::save_dirty_segments(self).await?;
270
}
271
0 commit comments