Skip to content

Commit

Permalink
feat: support newest celestia-core version
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Jun 17, 2024
1 parent 800924f commit d235cb8
Show file tree
Hide file tree
Showing 689 changed files with 3,629 additions and 3,620 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Rename binary to `cometbft` and Docker image to `cometbft/cometbft`
([\#152](https://github.com/cometbft/cometbft/pull/152))
([\#152](https://github.com/KYVENetwork/tendermint/pull/152))
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- The `TMHOME` environment variable was renamed to `CMTHOME`, and all
environment variables starting with `TM_` are instead prefixed with `CMT_`
([\#211](https://github.com/cometbft/cometbft/issues/211))
([\#211](https://github.com/KYVENetwork/tendermint/issues/211))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Use Go 1.19 to build CometBFT, since Go 1.18 has reached end-of-life.
([\#360](https://github.com/cometbft/cometbft/issues/360))
([\#360](https://github.com/KYVENetwork/tendermint/issues/360))
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- `[state/kvindexer]` Resolved crashes when event values contained slashes,
introduced after adding event sequences.
(\#[383](https://github.com/cometbft/cometbft/pull/383): @jmalicevic)
(\#[383](https://github.com/KYVENetwork/tendermint/pull/383): @jmalicevic)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- `[consensus]` Short-term fix for the case when `needProofBlock` cannot find
previous block meta by defaulting to the creation of a new proof block.
([\#386](https://github.com/cometbft/cometbft/pull/386): @adizere)
([\#386](https://github.com/KYVENetwork/tendermint/pull/386): @adizere)
- Special thanks to the [Vega.xyz](https://vega.xyz/) team, and in particular
to Zohar (@ze97286), for reporting the problem and working with us to get to
a fix.
2 changes: 1 addition & 1 deletion .changelog/v0.34.27/dependencies/160-tmdb-to-cometbftdb.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- Replace [tm-db](https://github.com/tendermint/tm-db) with
[cometbft-db](https://github.com/cometbft/cometbft-db)
([\#160](https://github.com/cometbft/cometbft/pull/160))
([\#160](https://github.com/KYVENetwork/tendermint/pull/160))
2 changes: 1 addition & 1 deletion .changelog/v0.34.27/dependencies/165-bump-tmloadtest.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Bump tm-load-test to v1.3.0 to remove implicit dependency on Tendermint Core
([\#165](https://github.com/cometbft/cometbft/pull/165))
([\#165](https://github.com/KYVENetwork/tendermint/pull/165))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- `[tools/tm-signer-harness]` Remove the folder as it is unused
([\#136](https://github.com/cometbft/cometbft/issues/136))
([\#136](https://github.com/KYVENetwork/tendermint/issues/136))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Append the commit hash to the version of CometBFT being built
([\#204](https://github.com/cometbft/cometbft/pull/204))
([\#204](https://github.com/KYVENetwork/tendermint/pull/204))
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- `[mempool/v1]` Suppress "rejected bad transaction" in priority mempool logs by
reducing log level from info to debug
([\#314](https://github.com/cometbft/cometbft/pull/314): @JayT106)
([\#314](https://github.com/KYVENetwork/tendermint/pull/314): @JayT106)
2 changes: 1 addition & 1 deletion .changelog/v0.34.27/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ our [upgrading guidelines](./UPGRADING.md).

If you have any questions, comments, concerns or feedback on this release, we
would love to hear from you! Please contact us via [GitHub
Discussions](https://github.com/cometbft/cometbft/discussions),
Discussions](https://github.com/KYVENetwork/tendermint/discussions),
[Discord](https://discord.gg/cosmosnetwork) (in the `#cometbft` channel) or
[Telegram](https://t.me/CometBFT).

Expand Down
2 changes: 1 addition & 1 deletion .changelog/v0.34.28/breaking-changes/558-tm10011.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- `[crypto/merkle]` Do not allow verification of Merkle Proofs against empty trees (`nil` root). `Proof.ComputeRootHash` now panics when it encounters an error, but `Proof.Verify` does not panic
([\#558](https://github.com/cometbft/cometbft/issues/558))
([\#558](https://github.com/KYVENetwork/tendermint/issues/558))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- `[consensus]` Unexpected error conditions in `ApplyBlock` are non-recoverable, so ignoring the error and carrying on is a bug. We replaced a `return` that disregarded the error by a `panic`.
([\#496](https://github.com/cometbft/cometbft/pull/496))
([\#496](https://github.com/KYVENetwork/tendermint/pull/496))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- `[consensus]` Rename `(*PeerState).ToJSON` to `MarshalJSON` to fix a logging data race
([\#524](https://github.com/cometbft/cometbft/pull/524))
([\#524](https://github.com/KYVENetwork/tendermint/pull/524))
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
not yet have any data. The light client will now, correctly, not panic
_and_ keep the node in its list of providers in the same way it would if
it queried a node starting from height zero that does not yet have data
([\#575](https://github.com/cometbft/cometbft/issues/575))
([\#575](https://github.com/KYVENetwork/tendermint/issues/575))
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- `[crypto/sr25519]` Upgrade to [email protected] ([\#475](https://github.com/cometbft/cometbft/issues/475))
- `[crypto/sr25519]` Upgrade to [email protected] ([\#475](https://github.com/KYVENetwork/tendermint/issues/475))
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- `[jsonrpc/client]` Improve the error message for client errors stemming from
bad HTTP responses.
([cometbft/cometbft\#638](https://github.com/cometbft/cometbft/pull/638))
([cometbft/cometbft\#638](https://github.com/KYVENetwork/tendermint/pull/638))
2 changes: 1 addition & 1 deletion .github/workflows/janitor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Janitor
# Janitor cleans up previous runs of various workflows
# To add more workflows to cancel visit https://api.github.com/repos/cometbft/cometbft/actions/workflows and find the actions name
# To add more workflows to cancel visit https://api.github.com/repos/KYVENetwork/tendermint/actions/workflows and find the actions name
on:
pull_request:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Generate release notes
run: |
VERSION="${GITHUB_REF#refs/tags/}"
CHANGELOG_URL="https://github.com/cometbft/cometbft/blob/${VERSION}/CHANGELOG.md"
CHANGELOG_URL="https://github.com/KYVENetwork/tendermint/blob/${VERSION}/CHANGELOG.md"
echo "See the [CHANGELOG](${CHANGELOG_URL}) for changes available in this pre-release, but not yet officially released." > ../release_notes.md
- name: Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
VERSION="${GITHUB_REF#refs/tags/}"
VERSION_REF="${VERSION//[\.]/}"
CHANGELOG_URL="https://github.com/cometbft/cometbft/blob/${VERSION}/CHANGELOG.md#${VERSION_REF}"
CHANGELOG_URL="https://github.com/KYVENetwork/tendermint/blob/${VERSION}/CHANGELOG.md#${VERSION_REF}"
echo "See the [CHANGELOG](${CHANGELOG_URL}) for this release." > ../release_notes.md
- name: Release
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ builds:
- id: "cometbft"
main: ./cmd/cometbft/main.go
ldflags:
- -s -w -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Version }}
- -s -w -X github.com/KYVENetwork/tendermint/version.TMCoreSemVer={{ .Version }}
env:
- CGO_ENABLED=0
goos:
Expand Down
34 changes: 17 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ that code.
### BREAKING CHANGES

- `[crypto/merkle]` Do not allow verification of Merkle Proofs against empty trees (`nil` root). `Proof.ComputeRootHash` now panics when it encounters an error, but `Proof.Verify` does not panic
([\#558](https://github.com/cometbft/cometbft/issues/558))
([\#558](https://github.com/KYVENetwork/tendermint/issues/558))

### BUG FIXES

- `[consensus]` Unexpected error conditions in `ApplyBlock` are non-recoverable, so ignoring the error and carrying on is a bug. We replaced a `return` that disregarded the error by a `panic`.
([\#496](https://github.com/cometbft/cometbft/pull/496))
([\#496](https://github.com/KYVENetwork/tendermint/pull/496))
- `[consensus]` Rename `(*PeerState).ToJSON` to `MarshalJSON` to fix a logging data race
([\#524](https://github.com/cometbft/cometbft/pull/524))
([\#524](https://github.com/KYVENetwork/tendermint/pull/524))
- `[light]` Fixed an edge case where a light client would panic when attempting
to query a node that (1) has started from a non-zero height and (2) does
not yet have any data. The light client will now, correctly, not panic
_and_ keep the node in its list of providers in the same way it would if
it queried a node starting from height zero that does not yet have data
([\#575](https://github.com/cometbft/cometbft/issues/575))
([\#575](https://github.com/KYVENetwork/tendermint/issues/575))

### IMPROVEMENTS

- `[crypto/sr25519]` Upgrade to [email protected] ([\#475](https://github.com/cometbft/cometbft/issues/475))
- `[crypto/sr25519]` Upgrade to [email protected] ([\#475](https://github.com/KYVENetwork/tendermint/issues/475))
- `[jsonrpc/client]` Improve the error message for client errors stemming from
bad HTTP responses.
([cometbft/cometbft\#638](https://github.com/cometbft/cometbft/pull/638))
([cometbft/cometbft\#638](https://github.com/KYVENetwork/tendermint/pull/638))

## v0.34.27

Expand All @@ -47,7 +47,7 @@ our [upgrading guidelines](./UPGRADING.md).

If you have any questions, comments, concerns or feedback on this release, we
would love to hear from you! Please contact us via [GitHub
Discussions](https://github.com/cometbft/cometbft/discussions),
Discussions](https://github.com/KYVENetwork/tendermint/discussions),
[Discord](https://discord.gg/cosmosnetwork) (in the `#cometbft` channel) or
[Telegram](https://t.me/CometBFT).

Expand All @@ -57,12 +57,12 @@ to this release!
### BREAKING CHANGES

- Rename binary to `cometbft` and Docker image to `cometbft/cometbft`
([\#152](https://github.com/cometbft/cometbft/pull/152))
([\#152](https://github.com/KYVENetwork/tendermint/pull/152))
- The `TMHOME` environment variable was renamed to `CMTHOME`, and all
environment variables starting with `TM_` are instead prefixed with `CMT_`
([\#211](https://github.com/cometbft/cometbft/issues/211))
([\#211](https://github.com/KYVENetwork/tendermint/issues/211))
- Use Go 1.19 to build CometBFT, since Go 1.18 has reached end-of-life.
([\#360](https://github.com/cometbft/cometbft/issues/360))
([\#360](https://github.com/KYVENetwork/tendermint/issues/360))

### BUG FIXES

Expand All @@ -71,10 +71,10 @@ to this release!
([\#4](https://github.com/informalsystems/tendermint/pull/4))
- `[state/kvindexer]` Resolved crashes when event values contained slashes,
introduced after adding event sequences.
(\#[383](https://github.com/cometbft/cometbft/pull/383): @jmalicevic)
(\#[383](https://github.com/KYVENetwork/tendermint/pull/383): @jmalicevic)
- `[consensus]` Short-term fix for the case when `needProofBlock` cannot find
previous block meta by defaulting to the creation of a new proof block.
([\#386](https://github.com/cometbft/cometbft/pull/386): @adizere)
([\#386](https://github.com/KYVENetwork/tendermint/pull/386): @adizere)
- Special thanks to the [Vega.xyz](https://vega.xyz/) team, and in particular
to Zohar (@ze97286), for reporting the problem and working with us to get to
a fix.
Expand All @@ -88,9 +88,9 @@ to this release!

- Replace [tm-db](https://github.com/tendermint/tm-db) with
[cometbft-db](https://github.com/cometbft/cometbft-db)
([\#160](https://github.com/cometbft/cometbft/pull/160))
([\#160](https://github.com/KYVENetwork/tendermint/pull/160))
- Bump tm-load-test to v1.3.0 to remove implicit dependency on Tendermint Core
([\#165](https://github.com/cometbft/cometbft/pull/165))
([\#165](https://github.com/KYVENetwork/tendermint/pull/165))
- `[crypto]` Update to use btcec v2 and the latest btcutil
([tendermint/tendermint\#9787](https://github.com/tendermint/tendermint/pull/9787):
@wcsiu)
Expand All @@ -106,12 +106,12 @@ to this release!
- `[e2e]` Add functionality for uncoordinated (minor) upgrades
([\#56](https://github.com/tendermint/tendermint/pull/56))
- `[tools/tm-signer-harness]` Remove the folder as it is unused
([\#136](https://github.com/cometbft/cometbft/issues/136))
([\#136](https://github.com/KYVENetwork/tendermint/issues/136))
- Append the commit hash to the version of CometBFT being built
([\#204](https://github.com/cometbft/cometbft/pull/204))
([\#204](https://github.com/KYVENetwork/tendermint/pull/204))
- `[mempool/v1]` Suppress "rejected bad transaction" in priority mempool logs by
reducing log level from info to debug
([\#314](https://github.com/cometbft/cometbft/pull/314): @JayT106)
([\#314](https://github.com/KYVENetwork/tendermint/pull/314): @JayT106)
- `[consensus]` Add `consensus_block_gossip_parts_received` and
`consensus_step_duration_seconds` metrics in order to aid in investigating the
impact of database compaction on consensus performance
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ CometBFT project or a potential fork. When targeting the main CometBFT project,
the following process leads to the best chance of landing changes in `main`.

All work on the code base should be motivated by a [GitHub
Issue](https://github.com/cometbft/cometbft/issues).
[Search](https://github.com/cometbft/cometbft/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
Issue](https://github.com/KYVENetwork/tendermint/issues).
[Search](https://github.com/KYVENetwork/tendermint/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
is a good place to start when looking for places to contribute. If you would
like to work on an issue which already exists, please indicate so by leaving a
comment.

All new contributions should start with a [GitHub
Issue](https://github.com/cometbft/cometbft/issues/new/choose). The issue helps
Issue](https://github.com/KYVENetwork/tendermint/issues/new/choose). The issue helps
capture the problem you're trying to solve and allows for early feedback. Once
the issue is created the process can proceed in different directions depending
on how well defined the problem and potential solution are. If the change is
Expand All @@ -25,7 +25,7 @@ heartfelt emoji.

If the issue would benefit from thorough discussion, maintainers may request
that you create a [Request For
Comment](https://github.com/cometbft/cometbft/tree/main/docs/rfc) in the
Comment](https://github.com/KYVENetwork/tendermint/tree/main/docs/rfc) in the
CometBFT repo. Discussion at the RFC stage will build collective
understanding of the dimensions of the problems and help structure conversations
around trade-offs.
Expand Down
16 changes: 8 additions & 8 deletions DOCKER/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

## Supported tags and respective `Dockerfile` links

DockerHub tags for official releases are [here](https://hub.docker.com/r/cometbft/cometbft/tags/). The "latest" tag will always point to the highest version number.
DockerHub tags for official releases are [here](https://hub.docker.com/r/KYVENetwork/tendermint/tags/). The "latest" tag will always point to the highest version number.

Official releases can be found [here](https://github.com/cometbft/cometbft/releases).
Official releases can be found [here](https://github.com/KYVENetwork/tendermint/releases).

The Dockerfile for CometBFT is not expected to change in the near future. The main file used for all builds can be found [here](https://raw.githubusercontent.com/cometbft/cometbft/main/DOCKER/Dockerfile).
The Dockerfile for CometBFT is not expected to change in the near future. The main file used for all builds can be found [here](https://raw.githubusercontent.com/KYVENetwork/tendermint/main/DOCKER/Dockerfile).

Respective versioned files can be found <https://raw.githubusercontent.com/cometbft/cometbft/vX.XX.XX/DOCKER/Dockerfile> (replace the Xs with the version number).
Respective versioned files can be found <https://raw.githubusercontent.com/KYVENetwork/tendermint/vX.XX.XX/DOCKER/Dockerfile> (replace the Xs with the version number).

## Quick reference

- **Where to get help:** <https://cometbft.com/>
- **Where to file issues:** <https://github.com/cometbft/cometbft/issues>
- **Where to file issues:** <https://github.com/KYVENetwork/tendermint/issues>
- **Supported Docker versions:** [the latest release](https://github.com/moby/moby/releases) (down to 1.6 on a best-effort basis)

## CometBFT
Expand All @@ -37,7 +37,7 @@ docker run -it --rm -v "/tmp:/cometbft" cometbft/cometbft node --proxy_app=kvsto

## Local cluster

To run a 4-node network, see the `Makefile` in the root of [the repo](https://github.com/cometbft/cometbft/blob/v0.34.x/Makefile) and run:
To run a 4-node network, see the `Makefile` in the root of [the repo](https://github.com/KYVENetwork/tendermint/blob/v0.34.x/Makefile) and run:

```sh
make build-linux
Expand All @@ -49,8 +49,8 @@ Note that this will build and use a different image than the ones provided here.

## License

- CometBFT's license is [Apache 2.0](https://github.com/cometbft/cometbft/blob/main/LICENSE).
- CometBFT's license is [Apache 2.0](https://github.com/KYVENetwork/tendermint/blob/main/LICENSE).

## Contributing

Contributions are most welcome! See the [contributing file](https://github.com/cometbft/cometbft/blob/v0.34.x/CONTRIBUTING.md) for more information.
Contributions are most welcome! See the [contributing file](https://github.com/KYVENetwork/tendermint/blob/v0.34.x/CONTRIBUTING.md) for more information.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OUTPUT?=$(BUILDDIR)/cometbft
BUILD_TAGS?=cometbft

COMMIT_HASH := $(shell git rev-parse --short HEAD)
LD_FLAGS = -X github.com/cometbft/cometbft/version.TMGitCommitHash=$(COMMIT_HASH)
LD_FLAGS = -X github.com/KYVENetwork/tendermint/version.TMGitCommitHash=$(COMMIT_HASH)
BUILD_FLAGS = -mod=readonly -ldflags "$(LD_FLAGS)"
HTTPS_GIT := https://github.com/cometbft/cometbft.git
CGO_ENABLED ?= 0
Expand Down Expand Up @@ -207,7 +207,7 @@ go.sum: go.mod
draw_deps:
@# requires brew install graphviz or apt-get install graphviz
go get github.com/RobotsAndPencils/goviz
@goviz -i github.com/cometbft/cometbft/cmd/cometbft -d 3 | dot -Tpng -o dependency-graph.png
@goviz -i github.com/KYVENetwork/tendermint/cmd/cometbft -d 3 | dot -Tpng -o dependency-graph.png
.PHONY: draw_deps

get_deps_bin_size:
Expand Down
Loading

0 comments on commit d235cb8

Please sign in to comment.