We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c83cb72 commit 0a9b8a1Copy full SHA for 0a9b8a1
lightning-block-sync/src/lib.rs
@@ -230,7 +230,7 @@ impl Cache for HeaderCache {
230
}
231
232
fn blocks_disconnected(&mut self, fork_point: &ValidatedBlockHeader) {
233
- self.0.retain(|_, block_info| block_info.height < fork_point.height);
+ self.0.retain(|_, block_info| block_info.height <= fork_point.height);
234
235
236
@@ -244,7 +244,7 @@ impl Cache for &mut HeaderCache {
244
245
246
247
248
249
250
0 commit comments