From 1fc997462362ef2d50553dcdc4568da1863429b3 Mon Sep 17 00:00:00 2001 From: goldsquid Date: Sat, 13 Sep 2025 21:06:12 +0700 Subject: [PATCH] debug --- bsc/reth/bsc-mainnet-reth-archive-trace.yml | 1 + bsc/reth/bsc-mainnet-reth-pruned-trace.yml | 1 + reth.Dockerfile | 8 +++++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bsc/reth/bsc-mainnet-reth-archive-trace.yml b/bsc/reth/bsc-mainnet-reth-archive-trace.yml index fa1cd678..8d36f6d4 100644 --- a/bsc/reth/bsc-mainnet-reth-archive-trace.yml +++ b/bsc/reth/bsc-mainnet-reth-archive-trace.yml @@ -54,6 +54,7 @@ services: ARCH_TARGET: ${ARCH_TARGET:-native} PROFILE: ${RETH_BUILD_PROFILE:-maxperf} BUILD_OP_RETH: false + BUILD_BASE_RETH: false BUILD_BSC_RETH: true sysctls: # TCP Performance diff --git a/bsc/reth/bsc-mainnet-reth-pruned-trace.yml b/bsc/reth/bsc-mainnet-reth-pruned-trace.yml index f9d5e63f..93771b1a 100644 --- a/bsc/reth/bsc-mainnet-reth-pruned-trace.yml +++ b/bsc/reth/bsc-mainnet-reth-pruned-trace.yml @@ -54,6 +54,7 @@ services: ARCH_TARGET: ${ARCH_TARGET:-native} PROFILE: ${RETH_BUILD_PROFILE:-maxperf} BUILD_OP_RETH: false + BUILD_BASE_RETH: false BUILD_BSC_RETH: true sysctls: # TCP Performance diff --git a/reth.Dockerfile b/reth.Dockerfile index 003c832a..1459d38c 100644 --- a/reth.Dockerfile +++ b/reth.Dockerfile @@ -253,20 +253,26 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ fi && \ export RUSTFLAGS CFLAGS CXXFLAGS && \ echo "Building with RUSTFLAGS: $RUSTFLAGS" && \ + echo "DEBUG: BUILD_OP_RETH=[$BUILD_OP_RETH]" && \ + echo "DEBUG: BUILD_BASE_RETH=[$BUILD_BASE_RETH]" && \ + echo "DEBUG: BUILD_BSC_RETH=[$BUILD_BSC_RETH]" && \ if [ "$BUILD_OP_RETH" = "true" ]; then \ + echo "DEBUG: Taking OP_RETH branch" && \ 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 && \ cp target/$PROFILE/op-reth /usr/local/bin/op-reth; \ elif [ "$BUILD_BASE_RETH" = "true" ]; then \ + echo "DEBUG: Taking BASE_RETH branch" && \ echo "Building base-reth-node with flashbots feature" && \ cargo build --bin base-reth-node --release && \ cp target/release/base-reth-node /usr/local/bin/base-reth-node; \ elif [ "$BUILD_BSC_RETH" = "true" ]; then \ + echo "DEBUG: Taking BSC_RETH branch" && \ echo "Building bsc-reth" && \ cargo build --profile $PROFILE --locked --bin bsc-reth --features jemalloc,asm-keccak && \ cp target/$PROFILE/bsc-reth /usr/local/bin/reth; \ - else \ + echo "DEBUG: Taking DEFAULT branch" && \ echo "Building standard reth" && \ cargo build --profile $PROFILE --locked --bin reth --features jemalloc,asm-keccak && \ cp target/$PROFILE/reth /usr/local/bin/reth; \