diff --git a/consensus/bor/bor.go b/consensus/bor/bor.go index f2ba5cdb04..15c94e6d53 100644 --- a/consensus/bor/bor.go +++ b/consensus/bor/bor.go @@ -1086,7 +1086,7 @@ func (c *Bor) CommitStates( } from := *lastSync - to := time.Unix(int64(chain.Chain.GetHeaderByNumber(number-1).Time), 0) + to := time.Unix(int64(chain.Chain.GetHeaderByNumber(number-c.config.Sprint).Time), 0) lastStateID := _lastStateID.Uint64() if !from.Before(to) { return nil