Replace tendermint with cometbft#793
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #793 +/- ##
==========================================
- Coverage 55.60% 55.36% -0.25%
==========================================
Files 63 63
Lines 6800 6808 +8
==========================================
- Hits 3781 3769 -12
- Misses 2607 2633 +26
+ Partials 412 406 -6
☔ View full report in Codecov by Sentry. |
tzdybal
left a comment
There was a problem hiding this comment.
Few things:
- Consider re-importing latest version of mempool from cometbft (as separate, follow-up PR).
tmprefix for imports should be changed - maybecometwould do the trick?cometbytes?cometmath? orcb-cbbytes, cbmath,cbquery`, etc.- Do not use
string([]byte("string")). Even in tests.
|
|
I wonder if this can be a quick "dependency hell" fix as long as the app doesn't migrate to CometBFT. cc @nashqueue |
|
CometBFT is needed because of ABCI though |
|
Yep, my point is that it can also bring additional benefit |
Core is already on comet bft celestiaorg/celestia-core#980 |
It just pulls the changes; they didn't rename the module here. Node imports it as tendermint, not comet. And if you migrate to comet, then there will be no conflicts between comet and tendermint in Rollkits dependency graph, which essentially fixes "dependency hell" |
|
Since cosmos-sdk release/v0.45.x and release/0.46.x only depend on cometbft v0.34.x, i have pushed a branch v0.34.x to https://github.com/rollkit/cometbft/tree/v0.34.x and applied the fraud proof changes from rollkit/tendermint. This PR is simply replacing the `github.com/tendermint/tendermint` with `github.com/rollkit/cometbft v0.0.0-20230523181933-31b0a76c97d9` which corresponds to latest commit from https://github.com/rollkit/cometbft/tree/v0.34.x. This builds without any issues, however some tests are failing and needs to be fixed. After this, we can release rollkit with this cometbft change and sync our cosmos-sdk forks (release/v0.45.x and release/v0.46.x) and also add the newly released rollkit (w/ cometbft). #793 PR and https://github.com/rollkit/cometbft/tree/rollkit/v0.37.0 is still needed when we add support for cosmos-sdk release/v0.47.x, which uses module `github.com/cometbft/cometbft` path and not `github.com/tendermint/tendermint` --------- Co-authored-by: Ganesha Upadhyaya <gupadhyaya@Ganeshas-MacBook-Pro-2.local>
Adapting mempool for cometbft release
7f3c210 to
48184e3
Compare
use commetbft types in rollkit in order to comply with cosmos-sdk 0.47.0 by replacing tendermint with cometbft, and then replacing cometbft with the rollkit fork of tendermint