Skip to content

Commit

Permalink
fix(transition-frontier): Add the best tip at the end of the pending …
Browse files Browse the repository at this point in the history
…blocks chain with `FetchSuccess` state
  • Loading branch information
tizoc committed Mar 28, 2024
1 parent 0d33551 commit 22d3994
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/logger/logger_effects.rs
Expand Up @@ -1213,7 +1213,7 @@ pub fn logger_effects<S: Service>(store: &Store<S>, action: ActionWithMetaRef<'_
kind = kind.to_string(),
summary = "Transition frontier root ledger sync success".to_string(),
),
_other => openmina_core::log::debug!(
_other => openmina_core::log::info!(
meta.time();
node_id = node_id,
kind = kind.to_string(),
Expand Down
Expand Up @@ -424,6 +424,11 @@ impl TransitionFrontierSyncState {
}
}));

chain.push(TransitionFrontierSyncBlockState::FetchSuccess {
time: meta.time(),
block: best_tip,
});

*self = Self::BlocksPending {
time: meta.time(),
chain,
Expand Down

0 comments on commit 22d3994

Please sign in to comment.