Skip to content

Commit

Permalink
feat: created github.com/KYVENetwork/cometbft/v034x
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Apr 18, 2024
1 parent f4e7974 commit 66b91c4
Show file tree
Hide file tree
Showing 594 changed files with 3,852 additions and 3,800 deletions.
2 changes: 1 addition & 1 deletion .changelog/epilogue.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/cosmos).

For changes released before the creation of CometBFT, please refer to the
Tendermint Core
[CHANGELOG.md](https://github.com/tendermint/tendermint/blob/a9feb1c023e172b542c972605311af83b777855b/CHANGELOG.md).
[CHANGELOG.md](https://github.com/KYVENetwork/cometbft/v034x/blob/a9feb1c023e172b542c972605311af83b777855b/CHANGELOG.md).
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
send messages, as opposed to the blocking `SendEnvelope` method. It is unclear
whether this has a meaningful impact on P2P performance, but this patch does
correct the underlying behaviour to what it should be
([tendermint/tendermint\#9936](https://github.com/tendermint/tendermint/pull/9936))
([tendermint/tendermint\#9936](https://github.com/KYVENetwork/cometbft/v034x/pull/9936))
2 changes: 1 addition & 1 deletion .changelog/v0.34.27/dependencies/9787-btcec-dep-update.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- `[crypto]` Update to use btcec v2 and the latest btcutil
([tendermint/tendermint\#9787](https://github.com/tendermint/tendermint/pull/9787):
([tendermint/tendermint\#9787](https://github.com/KYVENetwork/cometbft/v034x/pull/9787):
@wcsiu)
2 changes: 1 addition & 1 deletion .changelog/v0.34.27/features/9759-kvindexer-match-event.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- `[rpc]` Add `match_event` query parameter to indicate to the RPC that it
should match events _within_ attributes, not only within a height
([tendermint/tendermint\#9759](https://github.com/tendermint/tendermint/pull/9759))
([tendermint/tendermint\#9759](https://github.com/KYVENetwork/cometbft/v034x/pull/9759))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- `[e2e]` Add functionality for uncoordinated (minor) upgrades
([\#56](https://github.com/tendermint/tendermint/pull/56))
([\#56](https://github.com/KYVENetwork/cometbft/v034x/pull/56))
2 changes: 1 addition & 1 deletion .changelog/v0.34.27/improvements/9733-consensus-metrics.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- `[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
([tendermint/tendermint\#9733](https://github.com/tendermint/tendermint/pull/9733))
([tendermint/tendermint\#9733](https://github.com/KYVENetwork/cometbft/v034x/pull/9733))
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- `[state/kvindexer]` Add `match.event` keyword to support condition evaluation
based on the event the attributes belong to
([tendermint/tendermint\#9759](https://github.com/tendermint/tendermint/pull/9759))
([tendermint/tendermint\#9759](https://github.com/KYVENetwork/cometbft/v034x/pull/9759))
2 changes: 1 addition & 1 deletion .changelog/v0.34.27/improvements/9764-p2p-fix-logspam.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- `[p2p]` Reduce log spam through reducing log level of "Dialing peer" and
"Added peer" messages from info to debug
([tendermint/tendermint\#9764](https://github.com/tendermint/tendermint/pull/9764):
([tendermint/tendermint\#9764](https://github.com/KYVENetwork/cometbft/v034x/pull/9764):
@faddat)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- `[consensus]` Reduce bandwidth consumption of consensus votes by roughly 50%
through fixing a small logic bug
([tendermint/tendermint\#9776](https://github.com/tendermint/tendermint/pull/9776))
([tendermint/tendermint\#9776](https://github.com/KYVENetwork/cometbft/v034x/pull/9776))
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ linters-settings:
- "!$test"
allow:
- $gostd
- github.com/tendermint
- github.com/cometbft
- github.com/cometbft
- github.com/cosmos
- github.com/gogo
Expand Down Expand Up @@ -97,7 +97,7 @@ linters-settings:
allow:
- $gostd
- github.com/cosmos
- github.com/tendermint
- github.com/cometbft
- github.com/cometbft
- github.com/gogo
- github.com/Workiva/go-datastructures
Expand Down
20 changes: 10 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ gossip.
([\#1584](https://github.com/cometbft/cometbft/pull/1584))
- `[config]` Add mempool parameters `experimental_max_gossip_connections_to_persistent_peers` and
`experimental_max_gossip_connections_to_non_persistent_peers` for limiting the number of peers to
which the node gossip transactions.
which the node gossip transactions.
([\#1558](https://github.com/cometbft/cometbft/pull/1558))
([\#1584](https://github.com/cometbft/cometbft/pull/1584))

Expand Down Expand Up @@ -183,7 +183,7 @@ to this release!
send messages, as opposed to the blocking `SendEnvelope` method. It is unclear
whether this has a meaningful impact on P2P performance, but this patch does
correct the underlying behaviour to what it should be
([tendermint/tendermint\#9936](https://github.com/tendermint/tendermint/pull/9936))
([tendermint/tendermint\#9936](https://github.com/KYVENetwork/cometbft/v034x/pull/9936))

### DEPENDENCIES

Expand All @@ -193,19 +193,19 @@ to this release!
- Bump tm-load-test to v1.3.0 to remove implicit dependency on Tendermint Core
([\#165](https://github.com/cometbft/cometbft/pull/165))
- `[crypto]` Update to use btcec v2 and the latest btcutil
([tendermint/tendermint\#9787](https://github.com/tendermint/tendermint/pull/9787):
([tendermint/tendermint\#9787](https://github.com/KYVENetwork/cometbft/v034x/pull/9787):
@wcsiu)

### FEATURES

- `[rpc]` Add `match_event` query parameter to indicate to the RPC that it
should match events _within_ attributes, not only within a height
([tendermint/tendermint\#9759](https://github.com/tendermint/tendermint/pull/9759))
([tendermint/tendermint\#9759](https://github.com/KYVENetwork/cometbft/v034x/pull/9759))

### IMPROVEMENTS

- `[e2e]` Add functionality for uncoordinated (minor) upgrades
([\#56](https://github.com/tendermint/tendermint/pull/56))
([\#56](https://github.com/KYVENetwork/cometbft/v034x/pull/56))
- `[tools/tm-signer-harness]` Remove the folder as it is unused
([\#136](https://github.com/cometbft/cometbft/issues/136))
- Append the commit hash to the version of CometBFT being built
Expand All @@ -216,17 +216,17 @@ to this release!
- `[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
([tendermint/tendermint\#9733](https://github.com/tendermint/tendermint/pull/9733))
([tendermint/tendermint\#9733](https://github.com/KYVENetwork/cometbft/v034x/pull/9733))
- `[state/kvindexer]` Add `match.event` keyword to support condition evaluation
based on the event the attributes belong to
([tendermint/tendermint\#9759](https://github.com/tendermint/tendermint/pull/9759))
([tendermint/tendermint\#9759](https://github.com/KYVENetwork/cometbft/v034x/pull/9759))
- `[p2p]` Reduce log spam through reducing log level of "Dialing peer" and
"Added peer" messages from info to debug
([tendermint/tendermint\#9764](https://github.com/tendermint/tendermint/pull/9764):
([tendermint/tendermint\#9764](https://github.com/KYVENetwork/cometbft/v034x/pull/9764):
@faddat)
- `[consensus]` Reduce bandwidth consumption of consensus votes by roughly 50%
through fixing a small logic bug
([tendermint/tendermint\#9776](https://github.com/tendermint/tendermint/pull/9776))
([tendermint/tendermint\#9776](https://github.com/KYVENetwork/cometbft/v034x/pull/9776))

---

Expand All @@ -241,5 +241,5 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/cosmos).

For changes released before the creation of CometBFT, please refer to the
Tendermint Core
[CHANGELOG.md](https://github.com/tendermint/tendermint/blob/a9feb1c023e172b542c972605311af83b777855b/CHANGELOG.md).
[CHANGELOG.md](https://github.com/KYVENetwork/cometbft/v034x/blob/a9feb1c023e172b542c972605311af83b777855b/CHANGELOG.md).

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ endif
proto-gen: check-proto-deps
@echo "Generating Protobuf files"
@go run github.com/bufbuild/buf/cmd/buf generate
@mv ./proto/tendermint/abci/types.pb.go ./abci/types/
@mv ./proto/cometbft/v034x/abci/types.pb.go ./abci/types/
.PHONY: proto-gen

# These targets are provided for convenience and are intended for local
Expand Down
6 changes: 3 additions & 3 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ v0.34.24, or Informal Systems' public fork), you can upgrade to CometBFT
v0.34.27 by replacing your dependency in your `go.mod` file:

```bash
go mod edit -replace github.com/tendermint/tendermint=github.com/cometbft/[email protected]
go mod edit -replace github.com/cometbft/cometbft=github.com/cometbft/[email protected]
```

We make use of the original module URL in order to minimize the impact of
Expand Down Expand Up @@ -70,9 +70,9 @@ If you run into any trouble with this upgrade, please [contact us][discussions].
For historical upgrading instructions for Tendermint Core v0.34.24 and earlier,
please see the [Tendermint Core upgrading instructions][tmupgrade].

[v03424]: https://github.com/tendermint/tendermint/releases/tag/v0.34.24
[v03424]: https://github.com/KYVENetwork/cometbft/v034x/releases/tag/v0.34.24
[v03425]: https://github.com/informalsystems/tendermint/releases/tag/v0.34.25
[v03426]: https://github.com/informalsystems/tendermint/releases/tag/v0.34.26
[discussions]: https://github.com/cometbft/cometbft/discussions
[tmupgrade]: https://github.com/tendermint/tendermint/blob/35581cf54ec436b8c37fabb43fdaa3f48339a170/UPGRADING.md
[tmupgrade]: https://github.com/KYVENetwork/cometbft/v034x/blob/35581cf54ec436b8c37fabb43fdaa3f48339a170/UPGRADING.md
[go120]: https://go.dev/blog/go1.20
8 changes: 4 additions & 4 deletions abci/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"sync"

"github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/service"
cmtsync "github.com/tendermint/tendermint/libs/sync"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
"github.com/KYVENetwork/cometbft/v034x/libs/service"
cmtsync "github.com/KYVENetwork/cometbft/v034x/libs/sync"
)

const (
Expand Down Expand Up @@ -136,7 +136,7 @@ func (r *ReqRes) InvokeCallback() {
// marked done and SetCallback is called before calling GetCallback as that
// will invoke the callback twice and create a potential race condition.
//
// ref: https://github.com/tendermint/tendermint/issues/5439
// ref: https://github.com/KYVENetwork/cometbft/v034x/issues/5439
func (r *ReqRes) GetCallback() func(*types.Response) {
r.mtx.Lock()
defer r.mtx.Unlock()
Expand Down
8 changes: 4 additions & 4 deletions abci/client/grpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"golang.org/x/net/context"
"google.golang.org/grpc"

"github.com/tendermint/tendermint/abci/types"
cmtnet "github.com/tendermint/tendermint/libs/net"
"github.com/tendermint/tendermint/libs/service"
cmtsync "github.com/tendermint/tendermint/libs/sync"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v034x/libs/net"
"github.com/KYVENetwork/cometbft/v034x/libs/service"
cmtsync "github.com/KYVENetwork/cometbft/v034x/libs/sync"
)

var _ Client = (*grpcClient)(nil)
Expand Down
6 changes: 3 additions & 3 deletions abci/client/local_client.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package abcicli

import (
types "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/service"
cmtsync "github.com/tendermint/tendermint/libs/sync"
types "github.com/KYVENetwork/cometbft/v034x/abci/types"
"github.com/KYVENetwork/cometbft/v034x/libs/service"
cmtsync "github.com/KYVENetwork/cometbft/v034x/libs/sync"
)

var _ Client = (*localClient)(nil)
Expand Down
6 changes: 3 additions & 3 deletions abci/client/mocks/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions abci/client/socket_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"reflect"
"time"

"github.com/tendermint/tendermint/abci/types"
cmtnet "github.com/tendermint/tendermint/libs/net"
"github.com/tendermint/tendermint/libs/service"
cmtsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/libs/timer"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v034x/libs/net"
"github.com/KYVENetwork/cometbft/v034x/libs/service"
cmtsync "github.com/KYVENetwork/cometbft/v034x/libs/sync"
"github.com/KYVENetwork/cometbft/v034x/libs/timer"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions abci/client/socket_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/server"
"github.com/tendermint/tendermint/abci/types"
cmtrand "github.com/tendermint/tendermint/libs/rand"
"github.com/tendermint/tendermint/libs/service"
abcicli "github.com/KYVENetwork/cometbft/v034x/abci/client"
"github.com/KYVENetwork/cometbft/v034x/abci/server"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
cmtrand "github.com/KYVENetwork/cometbft/v034x/libs/rand"
"github.com/KYVENetwork/cometbft/v034x/libs/service"
)

func TestProperSyncCalls(t *testing.T) {
Expand Down
24 changes: 12 additions & 12 deletions abci/cmd/abci-cli/abci-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ import (

"github.com/spf13/cobra"

"github.com/tendermint/tendermint/libs/log"
cmtos "github.com/tendermint/tendermint/libs/os"

abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/example/counter"
"github.com/tendermint/tendermint/abci/example/kvstore"
"github.com/tendermint/tendermint/abci/server"
servertest "github.com/tendermint/tendermint/abci/tests/server"
"github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/abci/version"
"github.com/tendermint/tendermint/proto/tendermint/crypto"
"github.com/KYVENetwork/cometbft/v034x/libs/log"
cmtos "github.com/KYVENetwork/cometbft/v034x/libs/os"

abcicli "github.com/KYVENetwork/cometbft/v034x/abci/client"
"github.com/KYVENetwork/cometbft/v034x/abci/example/code"
"github.com/KYVENetwork/cometbft/v034x/abci/example/counter"
"github.com/KYVENetwork/cometbft/v034x/abci/example/kvstore"
"github.com/KYVENetwork/cometbft/v034x/abci/server"
servertest "github.com/KYVENetwork/cometbft/v034x/abci/tests/server"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
"github.com/KYVENetwork/cometbft/v034x/abci/version"
"github.com/KYVENetwork/cometbft/v034x/proto/cometbft/v034x/crypto"
)

// client is a global variable so it can be reused by the console
Expand Down
4 changes: 2 additions & 2 deletions abci/example/counter/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/binary"
"fmt"

"github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/types"
"github.com/KYVENetwork/cometbft/v034x/abci/example/code"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
)

type Application struct {
Expand Down
16 changes: 8 additions & 8 deletions abci/example/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import (

"golang.org/x/net/context"

"github.com/tendermint/tendermint/libs/log"
cmtnet "github.com/tendermint/tendermint/libs/net"

abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/example/kvstore"
abciserver "github.com/tendermint/tendermint/abci/server"
"github.com/tendermint/tendermint/abci/types"
"github.com/KYVENetwork/cometbft/v034x/libs/log"
cmtnet "github.com/KYVENetwork/cometbft/v034x/libs/net"

abcicli "github.com/KYVENetwork/cometbft/v034x/abci/client"
"github.com/KYVENetwork/cometbft/v034x/abci/example/code"
"github.com/KYVENetwork/cometbft/v034x/abci/example/kvstore"
abciserver "github.com/KYVENetwork/cometbft/v034x/abci/server"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions abci/example/kvstore/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/tendermint/tendermint/abci/types"
cmtrand "github.com/tendermint/tendermint/libs/rand"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
cmtrand "github.com/KYVENetwork/cometbft/v034x/libs/rand"
)

// RandVal creates one random validator, with a key derived
Expand Down
6 changes: 3 additions & 3 deletions abci/example/kvstore/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

dbm "github.com/cometbft/cometbft-db"

"github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/version"
"github.com/KYVENetwork/cometbft/v034x/abci/example/code"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
"github.com/KYVENetwork/cometbft/v034x/version"
)

var (
Expand Down
16 changes: 8 additions & 8 deletions abci/example/kvstore/kvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import (

"github.com/stretchr/testify/require"

"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"

abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/example/code"
abciserver "github.com/tendermint/tendermint/abci/server"
"github.com/tendermint/tendermint/abci/types"
cmtproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/KYVENetwork/cometbft/v034x/libs/log"
"github.com/KYVENetwork/cometbft/v034x/libs/service"

abcicli "github.com/KYVENetwork/cometbft/v034x/abci/client"
"github.com/KYVENetwork/cometbft/v034x/abci/example/code"
abciserver "github.com/KYVENetwork/cometbft/v034x/abci/server"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
cmtproto "github.com/KYVENetwork/cometbft/v034x/proto/cometbft/v034x/types"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions abci/example/kvstore/persistent_kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (

dbm "github.com/cometbft/cometbft-db"

"github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/types"
cryptoenc "github.com/tendermint/tendermint/crypto/encoding"
"github.com/tendermint/tendermint/libs/log"
pc "github.com/tendermint/tendermint/proto/tendermint/crypto"
"github.com/KYVENetwork/cometbft/v034x/abci/example/code"
"github.com/KYVENetwork/cometbft/v034x/abci/types"
cryptoenc "github.com/KYVENetwork/cometbft/v034x/crypto/encoding"
"github.com/KYVENetwork/cometbft/v034x/libs/log"
pc "github.com/KYVENetwork/cometbft/v034x/proto/cometbft/v034x/crypto"
)

const (
Expand Down
Loading

0 comments on commit 66b91c4

Please sign in to comment.