Skip to content

Commit 183c9d3

Browse files
committed
cleanup
1 parent cb761f6 commit 183c9d3

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

block/internal/executing/executor.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -809,15 +809,6 @@ func (e *Executor) recordBlockMetrics(newState types.State, data *types.Data) {
809809
e.metrics.CommittedHeight.Set(float64(data.Metadata.Height))
810810
}
811811

812-
// IsSynced checks if the last block height in the stored state matches the expected height and returns true if they are equal.
813-
func (e *Executor) IsSynced(expHeight uint64) bool {
814-
state, err := e.store.GetState(e.ctx)
815-
if err != nil {
816-
return false
817-
}
818-
return state.LastBlockHeight == expHeight
819-
}
820-
821812
// IsSyncedWithRaft checks if the local state is synced with the given raft state, including hash check.
822813
func (e *Executor) IsSyncedWithRaft(raftState *raft.RaftBlockState) (int, error) {
823814
state, err := e.store.GetState(e.ctx)

0 commit comments

Comments
 (0)