Skip to content

Commit 473ac84

Browse files
authored
Merge branch 'main' into perf-badger-options-bench
2 parents aac357d + 453a8a4 commit 473ac84

Some content is hidden

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

62 files changed

+6210
-265
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
coverage.txt
2+
*.out
23
proto/pb
34
proto/tendermint
45
types/pb/tendermint
@@ -30,3 +31,4 @@ docs/.vitepress/cache
3031
.claude
3132
.gocache
3233
.gomodcache
34+
/.cache

CLAUDE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ The project uses a zero-dependency core package pattern:
4444

4545
- **core/** - Contains only interfaces and types, no external dependencies
4646
- **block/** - Block management, creation, validation, and synchronization
47-
- **p2p/** - Networking layer built on libp2p
48-
- **sequencing/** - Modular sequencer implementations
49-
- **testapp/** - Reference implementation for testing
47+
- **pkg/p2p/** - Networking layer built on libp2p
48+
- **pkg/sequencers/** - Modular sequencer implementations
49+
- **apps/testapp/** - Reference implementation for testing
5050

5151
### Key Interfaces
5252

53-
- **Executor** (core/executor.go) - Handles state transitions
54-
- **Sequencer** (core/sequencer.go) - Orders transactions
55-
- **DA** (pkg/da/types) - Data availability layer abstraction
53+
- **Executor** (`core/executor.go`) - Handles state transitions
54+
- **Sequencer** (`core/sequencer.go`) - Orders transactions
55+
- **DA** (`pkg/da/types`) - Data availability layer abstraction
5656

5757
### Modular Design
5858

apps/evm/cmd/run.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/rs/zerolog"
1414
"github.com/spf13/cobra"
1515

16+
"github.com/evstack/ev-node/apps/evm/server"
1617
"github.com/evstack/ev-node/block"
1718
"github.com/evstack/ev-node/core/execution"
1819
coresequencer "github.com/evstack/ev-node/core/sequencer"
@@ -26,11 +27,9 @@ import (
2627
genesispkg "github.com/evstack/ev-node/pkg/genesis"
2728
"github.com/evstack/ev-node/pkg/p2p"
2829
"github.com/evstack/ev-node/pkg/p2p/key"
30+
"github.com/evstack/ev-node/pkg/sequencers/based"
31+
"github.com/evstack/ev-node/pkg/sequencers/single"
2932
"github.com/evstack/ev-node/pkg/store"
30-
"github.com/evstack/ev-node/sequencers/based"
31-
"github.com/evstack/ev-node/sequencers/single"
32-
33-
"github.com/evstack/ev-node/apps/evm/server"
3433
)
3534

3635
const (
@@ -56,7 +55,8 @@ var RunCmd = &cobra.Command{
5655
return err
5756
}
5857

59-
executor, err := createExecutionClient(cmd, datastore)
58+
tracingEnabled := nodeConfig.Instrumentation.IsTracingEnabled()
59+
executor, err := createExecutionClient(cmd, datastore, tracingEnabled)
6060
if err != nil {
6161
return err
6262
}
@@ -201,7 +201,7 @@ func createSequencer(
201201
return sequencer, nil
202202
}
203203

204-
func createExecutionClient(cmd *cobra.Command, db datastore.Batching) (execution.Executor, error) {
204+
func createExecutionClient(cmd *cobra.Command, db datastore.Batching, tracingEnabled bool) (execution.Executor, error) {
205205
// Read execution client parameters from flags
206206
ethURL, err := cmd.Flags().GetString(evm.FlagEvmEthURL)
207207
if err != nil {
@@ -246,7 +246,7 @@ func createExecutionClient(cmd *cobra.Command, db datastore.Batching) (execution
246246
genesisHash := common.HexToHash(genesisHashStr)
247247
feeRecipient := common.HexToAddress(feeRecipientStr)
248248

249-
return evm.NewEngineExecutionClient(ethURL, engineURL, jwtSecret, genesisHash, feeRecipient, db)
249+
return evm.NewEngineExecutionClient(ethURL, engineURL, jwtSecret, genesisHash, feeRecipient, db, tracingEnabled)
250250
}
251251

252252
// addFlags adds flags related to the EVM execution client

apps/evm/go.mod

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ require (
3535
github.com/celestiaorg/go-square/merkle v0.0.0-20240627094109-7d01436067a3 // indirect
3636
github.com/celestiaorg/go-square/v3 v3.0.2 // indirect
3737
github.com/celestiaorg/nmt v0.24.2 // indirect
38+
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
3839
github.com/cespare/xxhash/v2 v2.3.0 // indirect
3940
github.com/consensys/gnark-crypto v0.18.0 // indirect
4041
github.com/crate-crypto/go-eth-kzg v1.4.0 // indirect
@@ -70,6 +71,7 @@ require (
7071
github.com/google/gopacket v1.1.19 // indirect
7172
github.com/google/uuid v1.6.0 // indirect
7273
github.com/gorilla/websocket v1.5.3 // indirect
74+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
7375
github.com/hashicorp/golang-lru v1.0.2 // indirect
7476
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
7577
github.com/holiman/uint256 v1.3.2 // indirect
@@ -171,9 +173,13 @@ require (
171173
github.com/wlynxg/anet v0.0.5 // indirect
172174
go.opencensus.io v0.24.0 // indirect
173175
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
174-
go.opentelemetry.io/otel v1.38.0 // indirect
175-
go.opentelemetry.io/otel/metric v1.38.0 // indirect
176-
go.opentelemetry.io/otel/trace v1.38.0 // indirect
176+
go.opentelemetry.io/otel v1.39.0 // indirect
177+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.38.0 // indirect
178+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.38.0 // indirect
179+
go.opentelemetry.io/otel/metric v1.39.0 // indirect
180+
go.opentelemetry.io/otel/sdk v1.38.0 // indirect
181+
go.opentelemetry.io/otel/trace v1.39.0 // indirect
182+
go.opentelemetry.io/proto/otlp v1.7.1 // indirect
177183
go.uber.org/dig v1.19.0 // indirect
178184
go.uber.org/fx v1.24.0 // indirect
179185
go.uber.org/mock v0.5.2 // indirect
@@ -193,8 +199,18 @@ require (
193199
golang.org/x/tools v0.39.0 // indirect
194200
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
195201
gonum.org/v1/gonum v0.16.0 // indirect
202+
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5 // indirect
203+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
204+
google.golang.org/grpc v1.75.0 // indirect
196205
google.golang.org/protobuf v1.36.10 // indirect
197206
gopkg.in/yaml.v2 v2.4.0 // indirect
198207
gopkg.in/yaml.v3 v3.0.1 // indirect
199208
lukechampine.com/blake3 v1.4.1 // indirect
200209
)
210+
211+
// pin google genproto to a single version to avoid ambiguous imports pulled by transitive deps
212+
replace (
213+
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9
214+
google.golang.org/genproto/googleapis/api => google.golang.org/genproto/googleapis/api v0.0.0-20240213162025-012b6fc9bca9
215+
google.golang.org/genproto/googleapis/rpc => google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9
216+
)

0 commit comments

Comments
 (0)