Skip to content

Commit c26abcc

Browse files
committed
fix
1 parent bb04076 commit c26abcc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dash-spv/src/sync/masternodes.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,8 @@ impl<S: StorageManager + Send + Sync + 'static, N: NetworkManager + Send + Sync
182182
)
183183
})?;
184184

185-
if latest_height >= target_height {
186-
tracing::debug!(
187-
"Engine already has masternode list at or beyond height {}",
188-
target_height
189-
);
185+
if engine.masternode_lists.contains_key(&target_height) {
186+
tracing::debug!("Engine already has masternode list at height {}", target_height);
190187
return Ok(());
191188
}
192189

0 commit comments

Comments
 (0)