Repository: celestiaorg/celestia-app

Issue:
`Error: error on replay: commit failed for application: error updating consensus params: block.TimeIotaMs must be greater than 0. Got 0`
## Context

Mocha [validator-1](https://www.mintscan.io/celestia-testnet/validators/celestiavaloper1d0ekarkyayuvqeruzmk6amv28s2c2muvhpkzrj) started on v4.0.2-rc0. I later downgraded it to v3.8.1 and ran `celestia-appd start`

## Problem

```
root@Consensus-validator-1:~/celestia-app# celestia-appd start
11:51AM INF starting node with ABCI Tendermint in-process
11:51AM INF service start impl=multiAppConn module=proxy msg={}
11:51AM INF service start connection=query impl=localClient module=abci-client msg={}
11:51AM INF service start connection=snapshot impl=localClient module=abci-client msg={}
11:51AM INF service start connection=mempool impl=localClient module=abci-client msg={}
11:51AM INF service start connection=consensus impl=localClient module=abci-client msg={}
11:51AM INF service start impl=EventBus module=events msg={}
11:51AM INF service start impl=PubSub module=pubsub msg={}
11:51AM INF service start impl=IndexerService module=txindex msg={}
11:51AM INF Found local state with non-zero height, skipping state sync
11:51AM INF mounting KV stores for app version 3
11:51AM INF ABCI Replay Blocks appHeight=6379534 module=consensus stateHeight=6379534 storeHeight=6379535
11:51AM INF Replay last block using real app module=consensus
11:51AM INF minted coins from module account amount=13213665utia from=mint module=x/bank
11:51AM INF executed block height=6379535 module=consensus num_invalid_txs=0 num_valid_txs=5
Error: error on replay: commit failed for application: error updating consensus params: block.TimeIotaMs must be greater than 0. Got 0
```

## Proposal

Should it be possible to downgrade binaries from v4.x to v3.x? IMO yes considering Mocha is still on app version 3.

Note: it may be the case that the app.toml or config.toml generated on app version 4 is not compatible with a celestia-app v3 binary. 

Note: POPs also reproduced this error.

Discussion:
@rootulp: Celestia-app v4.x bumps CometBFT from v0.34.x to v0.38.x so upgraded through this.

Relevant https://github.com/tendermint/tendermint/pull/9287 which was included in CometBFT v0.37.x.

@rootulp: One potential fix is to remove the validation from celestia-core v0.34.x that errors with `block.TimeIotaMs must be greater than 0`

Solution patch:
diff --git a/go.mod b/go.mod
index c0ed0b66..26c9e264 100644
--- a/go.mod
+++ b/go.mod
@@ -259,5 +259,5 @@ replace (
 	github.com/cosmos/ibc-go/v6 => github.com/celestiaorg/ibc-go/v6 v6.2.4
 	github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
 	github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
-	github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.52.0-tm-v0.34.35
+	github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.52.1-tm-v0.34.35
 )
diff --git a/go.sum b/go.sum
index dfd3afca..9b7e992a 100644
--- a/go.sum
+++ b/go.sum
@@ -318,8 +318,8 @@ github.com/celestiaorg/bittwister v0.0.0-20231213180407-65cdbaf5b8c7 h1:nxplQi8w
 github.com/celestiaorg/bittwister v0.0.0-20231213180407-65cdbaf5b8c7/go.mod h1:1EF5MfOxVf0WC51Gb7pJ6bcZxnXKNAf9pqWtjgPBAYc=
 github.com/celestiaorg/blobstream-contracts/v3 v3.1.0 h1:h1Y4V3EMQ2mFmNtWt2sIhZIuyASInj1a9ExI8xOsTOw=
 github.com/celestiaorg/blobstream-contracts/v3 v3.1.0/go.mod h1:x4DKyfKOSv1ZJM9NwV+Pw01kH2CD7N5zTFclXIVJ6GQ=
-github.com/celestiaorg/celestia-core v1.52.0-tm-v0.34.35 h1:iU2igosCxYKzEUi85u3YqNslIO+rCXtx4GKAHUzxrDQ=
-github.com/celestiaorg/celestia-core v1.52.0-tm-v0.34.35/go.mod h1:SI38xqZZ4ccoAxszUJqsJ/a5rOkzQRijzHQQlLKkyUc=
+github.com/celestiaorg/celestia-core v1.52.1-tm-v0.34.35 h1:N+sJFu0h8okPkRjgQh/2iN4pi3atrR9a/vkXLwEKXfw=
+github.com/celestiaorg/celestia-core v1.52.1-tm-v0.34.35/go.mod h1:SI38xqZZ4ccoAxszUJqsJ/a5rOkzQRijzHQQlLKkyUc=
 github.com/celestiaorg/cosmos-sdk v1.30.0-sdk-v0.46.16 h1:ZHr6hCpaeA6Qk/BqrDknZS1pm+imO8RtMDmYuMdjLuA=
 github.com/celestiaorg/cosmos-sdk v1.30.0-sdk-v0.46.16/go.mod h1:8Wvxp2fu7ZMEz2sJVlfZiCqgdjLMNVosuE1O0X2yR5c=
 github.com/celestiaorg/go-square v1.1.1 h1:Cy3p8WVspVcyOqHM8BWFuuYPwMitO1pYGe+ImILFZRA=



Test patch:
diff --git a/test/interchain/go.mod b/test/interchain/go.mod
index 5d00f97b..8f8275d6 100644
--- a/test/interchain/go.mod
+++ b/test/interchain/go.mod
@@ -230,5 +230,5 @@ replace (
 	github.com/docker/docker => github.com/docker/docker v24.0.1+incompatible
 	github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
 	github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
-	github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.51.0-tm-v0.34.35
+	github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.52.1-tm-v0.34.35
 )
diff --git a/test/interchain/go.sum b/test/interchain/go.sum
index 1598f6b7..a9916c29 100644
--- a/test/interchain/go.sum
+++ b/test/interchain/go.sum
@@ -249,8 +249,8 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOF
 github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
 github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ=
 github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o=
-github.com/celestiaorg/celestia-core v1.51.0-tm-v0.34.35 h1:B9CRRq3VtraIe3JktqepeGo6TyuUCDivMgUgwd6vEeE=
-github.com/celestiaorg/celestia-core v1.51.0-tm-v0.34.35/go.mod h1:SI38xqZZ4ccoAxszUJqsJ/a5rOkzQRijzHQQlLKkyUc=
+github.com/celestiaorg/celestia-core v1.52.1-tm-v0.34.35 h1:N+sJFu0h8okPkRjgQh/2iN4pi3atrR9a/vkXLwEKXfw=
+github.com/celestiaorg/celestia-core v1.52.1-tm-v0.34.35/go.mod h1:SI38xqZZ4ccoAxszUJqsJ/a5rOkzQRijzHQQlLKkyUc=
 github.com/celestiaorg/cosmos-sdk v1.28.2-sdk-v0.46.16 h1:ji0bbcOla+nzu3G9Cq13O6KHGXensAi0Sf7+leW8m1Y=
 github.com/celestiaorg/cosmos-sdk v1.28.2-sdk-v0.46.16/go.mod h1:8Wvxp2fu7ZMEz2sJVlfZiCqgdjLMNVosuE1O0X2yR5c=
 github.com/celestiaorg/ibc-go/v6 v6.2.4 h1:S9jH7e+faYWF9PgDQAQnHxgm+FeDWTKcOF99Zez40bA=