github.com/badrootd/celestia-core@v0.0.0-20240305091328-aa4207a4b25d/docs/introduction/upgrading-from-tm.md (about) 1 --- 2 order: 4 3 --- 4 5 # Upgrading from Tendermint Core 6 7 CometBFT was originally forked from [Tendermint Core v0.34.24][v03424] and 8 subsequently updated in Informal Systems' public fork of Tendermint Core for 9 [v0.34.25][v03425] and [v0.34.26][v03426]. 10 11 If you already make use of Tendermint Core (either the original Tendermint Core 12 v0.34.24, or Informal Systems' public fork), you can upgrade to CometBFT 13 v0.34.27 by replacing your dependency in your `go.mod` file: 14 15 ```bash 16 go mod edit -replace github.com/cometbft/cometbft=github.com/cometbft/cometbft@v0.34.27 17 ``` 18 19 We make use of the original module URL in order to minimize the impact of 20 switching to CometBFT. This is only possible in our v0.34 release series, and we 21 will be switching our module URL to `github.com/cometbft/cometbft` in the next 22 major release. 23 24 ## Home directory 25 26 CometBFT, by default, will consider its home directory in `~/.cometbft` from now 27 on instead of `~/.tendermint`. 28 29 ## Environment variables 30 31 The environment variable prefixes have now changed from `TM` to `CMT`. For 32 example, `TMHOME` or `TM_HOME` become `CMTHOME` or `CMT_HOME`. 33 34 We have implemented a fallback check in case `TMHOME` is still set and `CMTHOME` 35 is not, but you will start to see a warning message in the logs if the old 36 `TMHOME` variable is set. This fallback check will be removed entirely in a 37 subsequent major release of CometBFT. 38 39 ## Building CometBFT 40 41 If you are building CometBFT from scratch, pls observe that it must be compiled 42 using Go 1.19 or higher. The use of Go 1.18 is not supported, since this version 43 has reached end-of-life with the release of Go 1.20. 44 45 46 [v03424]: https://github.com/cometbft/cometbft/releases/tag/v0.34.24 47 [v03425]: https://github.com/informalsystems/tendermint/releases/tag/v0.34.25 48 [v03426]: https://github.com/informalsystems/tendermint/releases/tag/v0.34.26