Skip to content

Commit bbd3b9b

Browse files
tac0turtlechattonMarko BaricevicMarko Baricevicjulienrbrt
authored
chore: put celestia features into 0.38.x (#1672)
## Description This Pr took the diff files from 0.34.x -> 0.34.x-celestia and applied the changes on top of 0.38.x branch of comet. This contains 95% of the changes. Missing Features that will be PRed into this branch - cat mempool - priority mempool --------- Co-authored-by: chatton <github.qpeyb@simplelogin.fr> Co-authored-by: Marko Baricevic <markobaricevic@Markos-MacBook-Pro.local> Co-authored-by: Marko Baricevic <markobaricevic@Markos-MacBook-Pro.fritz.box> Co-authored-by: julienrbrt <julien@rbrt.fr>
1 parent 9a3c516 commit bbd3b9b

File tree

145 files changed

+21572
-2910
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+21572
-2910
lines changed

.github/workflows/govulncheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/setup-go@v5
1818
with:
19-
go-version: "1.22"
19+
go-version: "1.23"
2020
check-latest: true
2121
- uses: actions/checkout@v4
2222
- uses: technote-space/get-diff-action@v6

.golangci.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ linters:
66
- dogsled
77
- dupl
88
- errcheck
9-
# - copyloopvar
109
- goconst
1110
- gofmt
1211
- goimports
13-
# - gosec
1412
- gosimple
1513
- govet
1614
- ineffassign
@@ -19,7 +17,6 @@ linters:
1917
- nolintlint
2018
- prealloc
2119
- staticcheck
22-
# - structcheck // to be fixed by golangci-lint
2320
- stylecheck
2421
- typecheck
2522
- unconvert
@@ -35,12 +32,8 @@ issues:
3532
linters-settings:
3633
dogsled:
3734
max-blank-identifiers: 3
38-
golint:
39-
min-confidence: 0
4035
goconst:
4136
ignore-tests: true
42-
maligned:
43-
suggest-new: true
4437
misspell:
4538
locale: US
4639
depguard:
@@ -51,7 +44,12 @@ linters-settings:
5144
- "!$test"
5245
allow:
5346
- $gostd
47+
- go/
48+
- google.golang.org/grpc
5449
- github.com/cometbft
50+
- google.golang.org/
51+
- golang.org/x
52+
- go.opentelemetry.io/otel
5553
- github.com/cosmos
5654
- github.com/btcsuite/btcd/btcec/v2
5755
- github.com/BurntSushi/toml
@@ -77,12 +75,26 @@ linters-settings:
7775
- github.com/stretchr/testify/require
7876
- github.com/syndtr/goleveldb
7977
- github.com/decred/dcrd/dcrec/secp256k1/v4
78+
- github.com/aws/aws-sdk-go-v2/aws
79+
- github.com/aws/aws-sdk-go-v2/config
80+
- github.com/aws/aws-sdk-go-v2/credentials
81+
- github.com/grafana/pyroscope-go
82+
- github.com/aws/aws-sdk-go-v2/service/s3
83+
- github.com/grafana/otel-profiling-go
84+
- github.com/celestiaorg/nmt
85+
- google.golang.org/protobuf/proto
86+
- google.golang.org/protobuf/types/known/timestamppb
87+
- gonum.org/v1/gonum/stat
88+
- github.com/celestiaorg/go-square/v2
8089
test:
8190
files:
8291
- "$test"
8392
allow:
8493
- $gostd
8594
- github.com/cosmos
95+
- google.golang.org/grpc
96+
- golang.org/x/crypto/
97+
- google.golang.org/protobuf/types
8698
- github.com/cometbft
8799
- github.com/adlio/schema
88100
- github.com/btcsuite/btcd
@@ -98,7 +110,7 @@ linters-settings:
98110
- github.com/spf13
99111
- github.com/stretchr/testify
100112
- github.com/decred/dcrd/dcrec/secp256k1/v4
101-
113+
- github.com/celestiaorg/go-square/v2
102114
revive:
103115
enable-all-rules: true
104116
rules:

abci/client/grpc_client_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package abcicli_test
22

33
import (
4+
"context"
45
"fmt"
56
"math/rand"
67
"net"
@@ -12,8 +13,6 @@ import (
1213

1314
"google.golang.org/grpc"
1415

15-
"golang.org/x/net/context"
16-
1716
"github.com/cometbft/cometbft/libs/log"
1817
cmtnet "github.com/cometbft/cometbft/libs/net"
1918

abci/server/grpc_server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111
"github.com/cometbft/cometbft/libs/service"
1212
)
1313

14+
const mebibyte = 1024 * 1024
15+
1416
type GRPCServer struct {
1517
service.BaseService
1618

@@ -43,7 +45,9 @@ func (s *GRPCServer) OnStart() error {
4345
}
4446

4547
s.listener = ln
46-
s.server = grpc.NewServer()
48+
s.server = grpc.NewServer(
49+
grpc.MaxRecvMsgSize(75 * mebibyte),
50+
)
4751
types.RegisterABCIServer(s.server, &gRPCApplication{s.app})
4852

4953
s.Logger.Info("Listening", "proto", s.proto, "addr", s.addr)

0 commit comments

Comments
 (0)