build base reth with flashbots

This commit is contained in:
goldsquid
2025-08-01 17:40:35 +07:00
parent c70dc219c9
commit d35f94db80
7 changed files with 36 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ x-logging-defaults: &logging-defaults
services: services:
base-mainnet-op-reth: base-mainnet-op-reth:
image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_MAINNET_RETH_VERSION:-v1.6.0} image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_MAINNET_RETH_VERSION:-v0.1.6}
sysctls: sysctls:
# TCP Performance # TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
@@ -53,7 +53,7 @@ services:
- 8545 - 8545
- 9001 - 9001
- 8551 - 8551
entrypoint: [op-reth, node] entrypoint: [base-reth-node, node]
command: command:
- --chain=base - --chain=base
- --datadir=/root/.local/share/reth - --datadir=/root/.local/share/reth
@@ -70,7 +70,6 @@ services:
- --rpc.max-blocks-per-filter=0 - --rpc.max-blocks-per-filter=0
- --rpc.max-connections=50000 - --rpc.max-connections=50000
- --rpc.max-logs-per-response=0 - --rpc.max-logs-per-response=0
- --websocket-url=wss://mainnet.flashblocks.base.org/ws
- --http - --http
- --http.addr=0.0.0.0 - --http.addr=0.0.0.0
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev - --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev

View File

@@ -30,7 +30,17 @@ x-logging-defaults: &logging-defaults
services: services:
base-mainnet-op-reth-minimal: base-mainnet-op-reth-minimal:
image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_MAINNET_RETH_VERSION:-v1.6.0} build:
context: ./
dockerfile: reth.Dockerfile
args:
LLVM_IMAGE: ${LLVM_IMAGE:-snowstep/llvm}
LLVM_VERSION: ${LLVM_VERSION:-20250514100911}
RETH_VERSION: ${BASE_MAINNET_RETH_VERSION:-v0.1.6}
RETH_REPO: ${BASE_MAINNET_RETH_REPO:-https://github.com/base/node-reth.git}
ARCH_TARGET: ${ARCH_TARGET:-native}
PROFILE: ${RETH_BUILD_PROFILE:-maxperf}
BUILD_OP_RETH: true
sysctls: sysctls:
# TCP Performance # TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
@@ -53,7 +63,7 @@ services:
- 8545 - 8545
- 9001 - 9001
- 8551 - 8551
entrypoint: [op-reth, node] entrypoint: [base-reth-node, node]
command: command:
- --chain=base - --chain=base
- --datadir=/root/.local/share/reth - --datadir=/root/.local/share/reth

View File

@@ -30,7 +30,17 @@ x-logging-defaults: &logging-defaults
services: services:
base-mainnet-op-reth-pruned: base-mainnet-op-reth-pruned:
image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_MAINNET_RETH_VERSION:-v1.6.0} build:
context: ./
dockerfile: reth.Dockerfile
args:
LLVM_IMAGE: ${LLVM_IMAGE:-snowstep/llvm}
LLVM_VERSION: ${LLVM_VERSION:-20250514100911}
RETH_VERSION: ${BASE_MAINNET_RETH_VERSION:-v0.1.6}
RETH_REPO: ${BASE_MAINNET_RETH_REPO:-https://github.com/base/node-reth.git}
ARCH_TARGET: ${ARCH_TARGET:-native}
PROFILE: ${RETH_BUILD_PROFILE:-maxperf}
BUILD_OP_RETH: true
sysctls: sysctls:
# TCP Performance # TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
@@ -53,7 +63,7 @@ services:
- 8545 - 8545
- 9001 - 9001
- 8551 - 8551
entrypoint: [op-reth, node] entrypoint: [base-reth-node, node]
command: command:
- --chain=base - --chain=base
- --datadir=/root/.local/share/reth - --datadir=/root/.local/share/reth

View File

@@ -30,7 +30,7 @@ x-logging-defaults: &logging-defaults
services: services:
base-sepolia-op-reth: base-sepolia-op-reth:
image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_SEPOLIA_RETH_VERSION:-v1.6.0} image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_SEPOLIA_RETH_VERSION:-v0.1.6}
sysctls: sysctls:
# TCP Performance # TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
@@ -53,7 +53,7 @@ services:
- 8545 - 8545
- 9001 - 9001
- 8551 - 8551
entrypoint: [op-reth, node] entrypoint: [base-reth-node, node]
command: command:
- --chain=base-sepolia - --chain=base-sepolia
- --datadir=/root/.local/share/reth - --datadir=/root/.local/share/reth
@@ -70,7 +70,6 @@ services:
- --rpc.max-blocks-per-filter=0 - --rpc.max-blocks-per-filter=0
- --rpc.max-connections=50000 - --rpc.max-connections=50000
- --rpc.max-logs-per-response=0 - --rpc.max-logs-per-response=0
- --websocket-url=wss://sepolia.flashblocks.base.org/ws
- --http - --http
- --http.addr=0.0.0.0 - --http.addr=0.0.0.0
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev - --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev

View File

@@ -30,7 +30,7 @@ x-logging-defaults: &logging-defaults
services: services:
base-sepolia-op-reth-minimal: base-sepolia-op-reth-minimal:
image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_SEPOLIA_RETH_VERSION:-v1.6.0} image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_SEPOLIA_RETH_VERSION:-v0.1.6}
sysctls: sysctls:
# TCP Performance # TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
@@ -53,7 +53,7 @@ services:
- 8545 - 8545
- 9001 - 9001
- 8551 - 8551
entrypoint: [op-reth, node] entrypoint: [base-reth-node, node]
command: command:
- --chain=base-sepolia - --chain=base-sepolia
- --datadir=/root/.local/share/reth - --datadir=/root/.local/share/reth
@@ -70,7 +70,6 @@ services:
- --rpc.max-blocks-per-filter=0 - --rpc.max-blocks-per-filter=0
- --rpc.max-connections=50000 - --rpc.max-connections=50000
- --rpc.max-logs-per-response=0 - --rpc.max-logs-per-response=0
- --websocket-url=wss://sepolia.flashblocks.base.org/ws
- --http - --http
- --http.addr=0.0.0.0 - --http.addr=0.0.0.0
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev - --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev

View File

@@ -30,7 +30,7 @@ x-logging-defaults: &logging-defaults
services: services:
base-sepolia-op-reth-pruned: base-sepolia-op-reth-pruned:
image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_SEPOLIA_RETH_VERSION:-v1.6.0} image: ${BASE_RETH_IMAGE:-ghcr.io/paradigmxyz/op-reth}:${BASE_SEPOLIA_RETH_VERSION:-v0.1.6}
sysctls: sysctls:
# TCP Performance # TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
@@ -53,7 +53,7 @@ services:
- 8545 - 8545
- 9001 - 9001
- 8551 - 8551
entrypoint: [op-reth, node] entrypoint: [base-reth-node, node]
command: command:
- --chain=base-sepolia - --chain=base-sepolia
- --datadir=/root/.local/share/reth - --datadir=/root/.local/share/reth
@@ -71,7 +71,6 @@ services:
- --rpc.max-blocks-per-filter=0 - --rpc.max-blocks-per-filter=0
- --rpc.max-connections=50000 - --rpc.max-connections=50000
- --rpc.max-logs-per-response=0 - --rpc.max-logs-per-response=0
- --websocket-url=wss://sepolia.flashblocks.base.org/ws
- --http - --http
- --http.addr=0.0.0.0 - --http.addr=0.0.0.0
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev - --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev

View File

@@ -255,6 +255,10 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
echo "Building op-reth with optimism feature" && \ echo "Building op-reth with optimism feature" && \
cargo build --profile $PROFILE --locked --bin op-reth --features jemalloc,asm-keccak --manifest-path crates/optimism/bin/Cargo.toml && \ cargo build --profile $PROFILE --locked --bin op-reth --features jemalloc,asm-keccak --manifest-path crates/optimism/bin/Cargo.toml && \
cp target/$PROFILE/op-reth /usr/local/bin/op-reth; \ cp target/$PROFILE/op-reth /usr/local/bin/op-reth; \
elif [ "$BUILD_BASE_RETH" = "true" ]; then \
echo "Building base-reth-node with flashbots feature" && \
cargo build --profile $PROFILE --bin base-reth-node --release && \
cp target/$PROFILE/op-reth /usr/local/bin/base-reth-node; \
else \ else \
echo "Building standard reth" && \ echo "Building standard reth" && \
cargo build --profile $PROFILE --locked --bin reth --features jemalloc,asm-keccak && \ cargo build --profile $PROFILE --locked --bin reth --features jemalloc,asm-keccak && \