clean up initial height bug

This commit is contained in:
Callum Waters
2021-08-27 15:06:47 +02:00
parent 31a9c5f667
commit a62c886a86
2 changed files with 19 additions and 20 deletions
+1 -3
View File
@@ -687,11 +687,9 @@ func (n *nodeImpl) OnStart() error {
return fmt.Errorf("unable to derive state: %w", err)
}
n.Logger.Info("starting state sync...")
// TODO: we may want to move these events within the respective
// reactors.
// at the beginning of the statesync start, we use the initialHeight as the event height
// At the beginning of the statesync start, we use the initialHeight as the event height
// because of the statesync doesn't have the concreate state height before fetched the snapshot.
d := types.EventDataStateSyncStatus{Complete: false, Height: state.InitialHeight}
if err := n.eventBus.PublishEventStateSyncStatus(d); err != nil {