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 c3f33b4 commit c6e912eCopy full SHA for c6e912e
rust/cardano-chain-follower/src/follow.rs
@@ -109,9 +109,11 @@ impl ChainFollower {
109
}
110
111
112
- if (self.mithril_tip.is_none() || current_mithril_tip > self.mithril_tip)
113
- && self.current < self.mithril_tip
114
- {
+ let rollforward_condition = if let Some(mithril_tip) = &self.mithril_tip {
+ current_mithril_tip > *mithril_tip && *mithril_tip > self.current
+ } else { true };
115
+
116
+ if rollforward_condition {
117
let snapshot = MithrilSnapshot::new(self.chain);
118
if let Some(block) = snapshot.read_block_at(¤t_mithril_tip).await {
119
// The Mithril Tip has moved forwards.
0 commit comments