Skip to content

Commit c1c7884

Browse files
authored
Merge branch 'main' into marko/docs_rewrite
2 parents 8805024 + 4cf1c92 commit c1c7884

91 files changed

Lines changed: 5202 additions & 716 deletions

Some content is hidden

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

.mockery.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ packages:
2323
dir: ./test/mocks
2424
pkgname: mocks
2525
filename: p2p.go
26+
github.com/evstack/ev-node/pkg/raft:
27+
interfaces:
28+
sourceNode:
29+
config:
30+
dir: ./pkg/raft
31+
pkgname: raft
32+
filename: node_mock.go
2633
github.com/evstack/ev-node/pkg/store:
2734
interfaces:
2835
Store:

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
## v1.0.0-rc.1
13+
1214
### Added
1315

1416
- Implement forced inclusion and based sequencing ([#2797](https://github.com/evstack/ev-node/pull/2797))
15-
This changes requires to add a `da_epoch_forced_inclusion` field in `genesis.json` file.
16-
To enable this feature, set the force inclusion namespace in the `evnode.yaml`.
17+
**This change requires to add a `da_epoch_forced_inclusion` field in node's `genesis.json` file.**
18+
To enable this feature, set the force inclusion namespace in the `evnode.yaml` (enableable from rc.2).
1719
- Added `post-tx` command and force inclusion server to submit transaction directly to the DA layer. ([#2888](https://github.com/evstack/ev-node/pull/2888))
1820
Additionally, modified the core package to support marking transactions as forced included transactions.
1921
The execution client ought to perform basic validation on those transactions as they have skipped the execution client's mempool.

apps/evm/cmd/run.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
da "github.com/evstack/ev-node/pkg/da/types"
2626
"github.com/evstack/ev-node/pkg/genesis"
2727
genesispkg "github.com/evstack/ev-node/pkg/genesis"
28-
"github.com/evstack/ev-node/pkg/p2p"
2928
"github.com/evstack/ev-node/pkg/p2p/key"
3029
"github.com/evstack/ev-node/pkg/sequencers/based"
3130
"github.com/evstack/ev-node/pkg/sequencers/single"
@@ -99,11 +98,6 @@ var RunCmd = &cobra.Command{
9998
return err
10099
}
101100

102-
p2pClient, err := p2p.NewClient(nodeConfig.P2P, nodeKey.PrivKey, datastore, genesis.ChainID, logger, nil)
103-
if err != nil {
104-
return err
105-
}
106-
107101
// Start force inclusion API server if address is provided
108102
forceInclusionAddr, err := cmd.Flags().GetString(flagForceInclusionServer)
109103
if err != nil {
@@ -142,7 +136,7 @@ var RunCmd = &cobra.Command{
142136
}()
143137
}
144138

145-
return rollcmd.StartNode(logger, cmd, executor, sequencer, p2pClient, datastore, nodeConfig, genesis, node.NodeOptions{})
139+
return rollcmd.StartNode(logger, cmd, executor, sequencer, nodeKey, datastore, nodeConfig, genesis, node.NodeOptions{})
146140
},
147141
}
148142

apps/evm/entrypoint.sh

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,31 @@ get_home_dir() {
3030
# Get the home directory (either from --home flag or default)
3131
CONFIG_HOME=$(get_home_dir "$@")
3232

33+
# Create config directory
34+
mkdir -p "$CONFIG_HOME"
35+
36+
# Create passphrase file if environment variable is set
37+
PASSPHRASE_FILE="$CONFIG_HOME/passphrase.txt"
38+
if [ -n "$EVM_SIGNER_PASSPHRASE" ]; then
39+
echo "$EVM_SIGNER_PASSPHRASE" > "$PASSPHRASE_FILE"
40+
chmod 600 "$PASSPHRASE_FILE"
41+
fi
42+
43+
# Create JWT secret file if environment variable is set
44+
JWT_SECRET_FILE="$CONFIG_HOME/jwt.hex"
45+
if [ -n "$EVM_JWT_SECRET" ]; then
46+
echo "$EVM_JWT_SECRET" > "$JWT_SECRET_FILE"
47+
chmod 600 "$JWT_SECRET_FILE"
48+
fi
49+
3350
if [ ! -f "$CONFIG_HOME/config/node_key.json" ]; then
3451

3552
# Build init flags array
3653
init_flags="--home=$CONFIG_HOME"
3754

3855
# Add required flags if environment variables are set
3956
if [ -n "$EVM_SIGNER_PASSPHRASE" ]; then
40-
init_flags="$init_flags --rollkit.node.aggregator=true --rollkit.signer.passphrase $EVM_SIGNER_PASSPHRASE"
57+
init_flags="$init_flags --evnode.node.aggregator=true --evnode.signer.passphrase_file $PASSPHRASE_FILE"
4158
fi
4259

4360
INIT_COMMAND="evm init $init_flags"
@@ -52,7 +69,7 @@ default_flags="--home=$CONFIG_HOME"
5269

5370
# Add required flags if environment variables are set
5471
if [ -n "$EVM_JWT_SECRET" ]; then
55-
default_flags="$default_flags --evm.jwt-secret $EVM_JWT_SECRET"
72+
default_flags="$default_flags --evm.jwt-secret-file $JWT_SECRET_FILE"
5673
fi
5774

5875
if [ -n "$EVM_GENESIS_HASH" ]; then
@@ -68,28 +85,28 @@ if [ -n "$EVM_ETH_URL" ]; then
6885
fi
6986

7087
if [ -n "$EVM_BLOCK_TIME" ]; then
71-
default_flags="$default_flags --rollkit.node.block_time $EVM_BLOCK_TIME"
88+
default_flags="$default_flags --evnode.node.block_time $EVM_BLOCK_TIME"
7289
fi
7390

7491
if [ -n "$EVM_SIGNER_PASSPHRASE" ]; then
75-
default_flags="$default_flags --rollkit.node.aggregator=true --rollkit.signer.passphrase $EVM_SIGNER_PASSPHRASE"
92+
default_flags="$default_flags --evnode.node.aggregator=true --evnode.signer.passphrase_file $PASSPHRASE_FILE"
7693
fi
7794

7895
# Conditionally add DA-related flags
7996
if [ -n "$DA_ADDRESS" ]; then
80-
default_flags="$default_flags --rollkit.da.address $DA_ADDRESS"
97+
default_flags="$default_flags --evnode.da.address $DA_ADDRESS"
8198
fi
8299

83100
if [ -n "$DA_AUTH_TOKEN" ]; then
84-
default_flags="$default_flags --rollkit.da.auth_token $DA_AUTH_TOKEN"
101+
default_flags="$default_flags --evnode.da.auth_token $DA_AUTH_TOKEN"
85102
fi
86103

87104
if [ -n "$DA_NAMESPACE" ]; then
88-
default_flags="$default_flags --rollkit.da.namespace $DA_NAMESPACE"
105+
default_flags="$default_flags --evnode.da.namespace $DA_NAMESPACE"
89106
fi
90107

91108
if [ -n "$DA_SIGNING_ADDRESSES" ]; then
92-
default_flags="$default_flags --rollkit.da.signing_addresses $DA_SIGNING_ADDRESSES"
109+
default_flags="$default_flags --evnode.da.signing_addresses $DA_SIGNING_ADDRESSES"
93110
fi
94111

95112
# If no arguments passed, show help

apps/evm/go.mod

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@ module github.com/evstack/ev-node/apps/evm
22

33
go 1.25.0
44

5-
replace (
6-
github.com/evstack/ev-node => ../../
7-
github.com/evstack/ev-node/core => ../../core
8-
github.com/evstack/ev-node/execution/evm => ../../execution/evm
9-
)
10-
115
require (
12-
github.com/celestiaorg/go-header v0.8.0
6+
github.com/celestiaorg/go-header v0.8.1
137
github.com/ethereum/go-ethereum v1.16.8
14-
github.com/evstack/ev-node v1.0.0-beta.10
15-
github.com/evstack/ev-node/core v1.0.0-beta.5
16-
github.com/evstack/ev-node/execution/evm v1.0.0-beta.3
8+
github.com/evstack/ev-node v1.0.0-rc.1
9+
github.com/evstack/ev-node/core v1.0.0-rc.1
10+
github.com/evstack/ev-node/execution/evm v1.0.0-rc.1
1711
github.com/ipfs/go-datastore v0.9.0
1812
github.com/rs/zerolog v1.34.0
1913
github.com/spf13/cobra v1.10.2
@@ -26,9 +20,11 @@ require (
2620
github.com/Microsoft/go-winio v0.6.2 // indirect
2721
github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtime v0.0.0-20251001021608-1fe7b43fc4d6 // indirect
2822
github.com/StackExchange/wmi v1.2.1 // indirect
23+
github.com/armon/go-metrics v0.4.1 // indirect
2924
github.com/benbjohnson/clock v1.3.5 // indirect
3025
github.com/beorn7/perks v1.0.1 // indirect
3126
github.com/bits-and-blooms/bitset v1.20.0 // indirect
27+
github.com/boltdb/bolt v1.3.1 // indirect
3228
github.com/celestiaorg/go-libp2p-messenger v0.2.2 // indirect
3329
github.com/celestiaorg/go-square/merkle v0.0.0-20240627094109-7d01436067a3 // indirect
3430
github.com/celestiaorg/go-square/v3 v3.0.2 // indirect
@@ -48,6 +44,7 @@ require (
4844
github.com/emicklei/dot v1.6.2 // indirect
4945
github.com/ethereum/c-kzg-4844/v2 v2.1.5 // indirect
5046
github.com/ethereum/go-verkle v0.2.2 // indirect
47+
github.com/fatih/color v1.16.0 // indirect
5148
github.com/ferranbt/fastssz v0.1.4 // indirect
5249
github.com/filecoin-project/go-clock v0.1.0 // indirect
5350
github.com/filecoin-project/go-jsonrpc v0.10.0 // indirect
@@ -70,8 +67,15 @@ require (
7067
github.com/google/uuid v1.6.0 // indirect
7168
github.com/gorilla/websocket v1.5.3 // indirect
7269
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect
70+
github.com/hashicorp/go-hclog v1.6.2 // indirect
71+
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
72+
github.com/hashicorp/go-metrics v0.5.4 // indirect
73+
github.com/hashicorp/go-msgpack v0.5.5 // indirect
74+
github.com/hashicorp/go-msgpack/v2 v2.1.2 // indirect
7375
github.com/hashicorp/golang-lru v1.0.2 // indirect
7476
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
77+
github.com/hashicorp/raft v1.7.3 // indirect
78+
github.com/hashicorp/raft-boltdb v0.0.0-20251103221153-05f9dd7a5148 // indirect
7579
github.com/holiman/uint256 v1.3.2 // indirect
7680
github.com/huin/goupnp v1.3.0 // indirect
7781
github.com/inconshreveable/mousetrap v1.1.0 // indirect

0 commit comments

Comments
 (0)