Skip to content

Commit 6906314

Browse files
authored
fix: remove --flashblocks.fixed (#170)
1 parent 809f3dd commit 6906314

11 files changed

Lines changed: 52 additions & 155 deletions

File tree

.github/workflows/_build-binaries.yaml

Lines changed: 15 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Reusable workflow for building all binaries
2-
# This workflow is called by other workflows to build reth, geth, builder, op-program, and contracts
2+
# This workflow is called by other workflows to build reth, geth, base-reth-node, base-builder, op-program, and contracts
33
name: Build Binaries
44

55
on:
@@ -15,11 +15,6 @@ on:
1515
required: false
1616
type: string
1717
default: "6cbfcd5161083bcd4052edc3022d9f99c6fe40e0"
18-
builder_version:
19-
description: "Builder version to build"
20-
required: false
21-
type: string
22-
default: "23f42c8e78ba3abb45a8840df7037a27e196e601"
2318
base_reth_node_version:
2419
description: "Base Reth Node version to build"
2520
required: false
@@ -145,46 +140,6 @@ jobs:
145140
path: ~/bin/geth
146141
retention-days: 1
147142

148-
build-builder:
149-
runs-on: ubuntu-latest
150-
permissions:
151-
contents: read
152-
actions: write # Required for artifact upload
153-
steps:
154-
- name: Harden the runner (Audit all outbound calls)
155-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
156-
with:
157-
egress-policy: audit
158-
159-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
160-
161-
- name: Set up Rust
162-
uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
163-
164-
- name: Cache builder binary
165-
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
166-
id: cache-builder
167-
with:
168-
path: ~/bin/builder
169-
key: ${{ runner.os }}-builder-${{ inputs.builder_version }}
170-
171-
- name: Build builder
172-
if: steps.cache-builder.outputs.cache-hit != 'true'
173-
run: |
174-
unset CI
175-
mkdir -p ~/bin
176-
cd clients
177-
BUILDER_VERSION=${{ inputs.builder_version }} OUTPUT_DIR=~/bin ./build-builder.sh
178-
# Rename op-rbuilder to builder for consistency
179-
[ -f ~/bin/op-rbuilder ] && mv ~/bin/op-rbuilder ~/bin/builder || true
180-
181-
- name: Upload builder artifact
182-
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
183-
with:
184-
name: builder
185-
path: ~/bin/builder
186-
retention-days: 1
187-
188143
build-base-reth-node:
189144
runs-on: ubuntu-latest
190145
permissions:
@@ -201,20 +156,23 @@ jobs:
201156
- name: Set up Rust
202157
uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
203158

204-
- name: Cache base-reth-node binary
159+
- name: Cache base-reth-node binaries
205160
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
206161
id: cache-base-reth-node
207162
with:
208-
path: ~/bin/base-reth-node
209-
key: ${{ runner.os }}-base-reth-node-${{ inputs.base_reth_node_version }}
163+
path: |
164+
~/bin/base-reth-node
165+
~/bin/builder
166+
key: ${{ runner.os }}-base-reth-node-builder-${{ inputs.base_reth_node_version }}
210167

211-
- name: Build base-reth-node
168+
- name: Build base-reth-node and base-builder
212169
if: steps.cache-base-reth-node.outputs.cache-hit != 'true'
213170
run: |
214171
unset CI
215172
mkdir -p ~/bin
216173
cd clients
217174
BASE_RETH_NODE_VERSION=${{ inputs.base_reth_node_version }} OUTPUT_DIR=~/bin ./build-base-reth-node.sh
175+
[ -f ~/bin/base-builder ] && mv ~/bin/base-builder ~/bin/builder || true
218176
219177
- name: Upload base-reth-node artifact
220178
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
@@ -223,6 +181,13 @@ jobs:
223181
path: ~/bin/base-reth-node
224182
retention-days: 1
225183

184+
- name: Upload builder artifact
185+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
186+
with:
187+
name: builder
188+
path: ~/bin/builder
189+
retention-days: 1
190+
226191
build-op-program:
227192
runs-on: ubuntu-latest
228193
permissions:

.github/workflows/build.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ jobs:
7171
with:
7272
optimism_version: 3019251e80aa248e91743addd3e833190acb26f1
7373
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
74-
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
7574
base_reth_node_version: main
7675

7776
basic-benchmarks:

.github/workflows/examples.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
with:
1919
optimism_version: 3019251e80aa248e91743addd3e833190acb26f1
2020
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
21-
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
2221
base_reth_node_version: main
2322

2423
example-benchmarks:

.github/workflows/public-benchmarks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
optimism_version: 3019251e80aa248e91743addd3e833190acb26f1
2020
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
21-
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
21+
base_reth_node_version: main
2222

2323
basic-benchmarks:
2424
runs-on: ubuntu-latest

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ build-reth:
4747
build-geth:
4848
cd clients && ./build-geth.sh
4949

50-
.PHONY: build-builder
51-
build-builder:
52-
cd clients && ./build-builder.sh
50+
.PHONY: build-base-reth-node
51+
build-base-reth-node:
52+
cd clients && ./build-base-reth-node.sh
5353

5454
.PHONY: build-binaries
55-
build-binaries: build-reth build-geth build-builder
55+
build-binaries: build-reth build-geth build-base-reth-node
5656

5757
.PHONY: build-frontend
5858
build-frontend:

clients/README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ Builds the op-geth binary from the Ethereum Optimism op-geth repository using ju
2020
- Version: `optimism`
2121
- Build tool: `go run build/ci.go install`
2222

23-
### build-builder.sh
24-
Builds the builder binary from the op-rbuilder repository using Cargo.
23+
### build-base-reth-node.sh
24+
Builds the base-reth-node and base-builder binaries from the base repository using Cargo.
2525

2626
**Default Configuration:**
27-
- Repository: `https://github.com/base/op-rbuilder`
27+
- Repository: `https://github.com/base/base`
2828
- Version: `main`
2929
- Build tool: `cargo`
3030

@@ -42,8 +42,8 @@ make build-reth
4242
# Build only geth
4343
make build-geth
4444

45-
# Build only builder
46-
make build-builder
45+
# Build base-reth-node and base-builder
46+
make build-base-reth-node
4747
```
4848

4949
### Direct Script Execution
@@ -56,8 +56,8 @@ cd clients
5656
# Build geth with defaults
5757
./build-geth.sh
5858

59-
# Build builder with defaults
60-
./build-builder.sh
59+
# Build base-reth-node and base-builder with defaults
60+
./build-base-reth-node.sh
6161
```
6262

6363
## Version Management
@@ -75,7 +75,7 @@ Modify the `versions.env` file to change defaults for all builds:
7575
# Edit versions.env to update default versions
7676
OPTIMISM_VERSION="v0.2.0-beta.5"
7777
GETH_VERSION="v1.13.0"
78-
BUILDER_VERSION="your-commit-hash"
78+
BASE_RETH_NODE_VERSION="your-commit-hash"
7979
```
8080

8181
#### 2. Environment Variables
@@ -88,8 +88,8 @@ OPTIMISM_REPO="https://github.com/ethereum-optimism/optimism/" OPTIMISM_VERSION=
8888
# Build geth from a fork
8989
GETH_REPO="https://github.com/your-fork/op-geth/" GETH_VERSION="your-branch" ./build-geth.sh
9090

91-
# Build builder from a different commit
92-
BUILDER_VERSION="main" ./build-builder.sh
91+
# Build base-reth-node and base-builder from a different commit
92+
BASE_RETH_NODE_VERSION="your-commit-hash" ./build-base-reth-node.sh
9393
```
9494

9595
### Available Environment Variables
@@ -106,9 +106,9 @@ BUILDER_VERSION="main" ./build-builder.sh
106106
- `BUILD_DIR`: Directory for source code (default: ./build)
107107
- `OUTPUT_DIR`: Directory for built binaries (default: ../bin)
108108

109-
#### For builder (build-builder.sh):
110-
- `BUILDER_REPO`: Git repository URL (default: https://github.com/base/op-rbuilder)
111-
- `BUILDER_VERSION`: Git branch, tag, or commit hash (default: main)
109+
#### For base-reth-node (build-base-reth-node.sh):
110+
- `BASE_RETH_NODE_REPO`: Git repository URL (default: https://github.com/base/base)
111+
- `BASE_RETH_NODE_VERSION`: Git branch, tag, or commit hash (default: main)
112112
- `BUILD_DIR`: Directory for source code (default: ./build)
113113
- `OUTPUT_DIR`: Directory for built binaries (default: ../bin)
114114

@@ -122,7 +122,7 @@ BUILDER_VERSION="main" ./build-builder.sh
122122
- Go toolchain
123123
- Git
124124

125-
### For builder:
125+
### For base-reth-node:
126126
- Rust and Cargo installed
127127
- Git
128128

@@ -131,4 +131,5 @@ BUILDER_VERSION="main" ./build-builder.sh
131131
Built binaries will be placed in the `bin/` directory at the project root:
132132
- `bin/reth` - The reth binary
133133
- `bin/geth` - The op-geth binary
134-
- `bin/op-rbuilder` - The builder binary
134+
- `bin/base-reth-node` - The base reth node binary
135+
- `bin/base-builder` - The builder binary

clients/build-base-reth-node.sh

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ BASE_RETH_NODE_VERSION="${BASE_RETH_NODE_VERSION:-main}"
1313
BUILD_DIR="${BUILD_DIR:-./build}"
1414
OUTPUT_DIR="${OUTPUT_DIR:-../bin}"
1515

16-
echo "Building base-reth-node binary..."
16+
echo "Building base-reth-node and base-builder binaries..."
1717
echo "Repository: $BASE_RETH_NODE_REPO"
1818
echo "Version/Commit: $BASE_RETH_NODE_VERSION"
1919
echo "Build directory: $BUILD_DIR"
@@ -42,13 +42,13 @@ fi
4242
echo "Checking out version: $BASE_RETH_NODE_VERSION"
4343
git checkout -f "$BASE_RETH_NODE_VERSION"
4444

45-
# Build the binary using cargo
46-
echo "Building base-reth-node with cargo..."
45+
# Build the binaries using cargo
46+
echo "Building base-reth-node and base-builder with cargo..."
4747
# Build with maxperf profile
48-
cargo build --bin base-reth-node --profile maxperf
48+
cargo build --bin base-reth-node --bin base-builder --profile maxperf
4949

50-
# Copy binary to output directory
51-
echo "Copying binary to output directory..."
50+
# Copy binaries to output directory
51+
echo "Copying binaries to output directory..."
5252
# Handle absolute paths correctly
5353
if [[ "$OUTPUT_DIR" == /* ]]; then
5454
# Absolute path - use directly
@@ -59,12 +59,19 @@ else
5959
fi
6060
mkdir -p "$FINAL_OUTPUT_DIR"
6161

62-
# Find the built binary and copy it
62+
# Find the built binaries and copy them
6363
if [ -f "target/maxperf/base-reth-node" ]; then
6464
cp target/maxperf/base-reth-node "$FINAL_OUTPUT_DIR/"
6565
else
6666
echo "No base-reth-node binary found"
6767
exit 1
6868
fi
6969

70-
echo "base-reth-node binary built successfully and placed in $FINAL_OUTPUT_DIR/base-reth-node"
70+
if [ -f "target/maxperf/base-builder" ]; then
71+
cp target/maxperf/base-builder "$FINAL_OUTPUT_DIR/"
72+
else
73+
echo "No base-builder binary found"
74+
exit 1
75+
fi
76+
77+
echo "base-reth-node and base-builder binaries built successfully and placed in $FINAL_OUTPUT_DIR/"

clients/build-builder.sh

Lines changed: 0 additions & 70 deletions
This file was deleted.

clients/versions.env

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ OPTIMISM_VERSION="3019251e80aa248e91743addd3e833190acb26f1"
1010
GETH_REPO="https://github.com/ethereum-optimism/op-geth/"
1111
GETH_VERSION="v1.101604.0"
1212

13-
# Builder Configuration
14-
BUILDER_REPO="https://github.com/base/op-rbuilder"
15-
BUILDER_VERSION="main"
16-
1713
# Base Reth Node Configuration
1814
BASE_RETH_NODE_REPO="https://github.com/base/base"
1915
BASE_RETH_NODE_VERSION="main"

runner/clients/baserethnode/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func (r *BaseRethNodeClient) Run(ctx context.Context, cfg *types.RuntimeConfig)
8888
// increase mempool size
8989
args = append(args, "--txpool.pending-max-count", "100000000")
9090
args = append(args, "--txpool.queued-max-count", "100000000")
91+
args = append(args, "--txpool.max-account-slots", "100000000")
9192
args = append(args, "--txpool.pending-max-size", "100")
9293
args = append(args, "--txpool.queued-max-size", "100")
9394

0 commit comments

Comments
 (0)