@@ -731,18 +731,18 @@ func (m *Manager) execValidate(lastState types.State, header *types.SignedHeader
731731 return fmt .Errorf ("invalid height: expected %d, got %d" , expectedHeight , header .Height ())
732732 }
733733
734- // Verify that the header's timestamp is strictly greater than the last block's time
735- headerTime := header .Time ()
736- if header .Height () > 1 && lastState .LastBlockTime .After (headerTime ) {
737- return fmt .Errorf ("block time must be strictly increasing: got %v, last block time was %v" ,
738- headerTime .UnixNano (), lastState .LastBlockTime )
739- }
740-
741- // Validate that the header's AppHash matches the lastState's AppHash
742- // Note: Assumes deferred execution
743- if ! bytes .Equal (header .AppHash , lastState .AppHash ) {
744- return fmt .Errorf ("app hash mismatch: expected %x, got %x" , lastState .AppHash , header .AppHash )
745- }
734+ // // Verify that the header's timestamp is strictly greater than the last block's time
735+ // headerTime := header.Time()
736+ // if header.Height() > 1 && lastState.LastBlockTime.After(headerTime) {
737+ // return fmt.Errorf("block time must be strictly increasing: got %v, last block time was %v",
738+ // headerTime.UnixNano(), lastState.LastBlockTime)
739+ // }
740+
741+ // // Validate that the header's AppHash matches the lastState's AppHash
742+ // // Note: Assumes deferred execution
743+ // if !bytes.Equal(header.AppHash, lastState.AppHash) {
744+ // return fmt.Errorf("app hash mismatch: expected %x, got %x", lastState.AppHash, header.AppHash)
745+ // }
746746
747747 return nil
748748}
0 commit comments